Changeset 52558 in webkit


Ignore:
Timestamp:
Dec 25, 2009 6:58:54 AM (14 years ago)
Author:
pfeldman@chromium.org
Message:

2009-12-25 Alexander Pavlov <apavlov@chromium.org>

Reviewed by Pavel Feldman.

AuditsPanel for Web Inspector (hidden, no preset audits).

https://bugs.webkit.org/show_bug.cgi?id=31665

Location:
trunk/WebCore
Files:
4 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r52556 r52558  
     12009-12-25  Alexander Pavlov  <apavlov@chromium.org>
     2
     3        Reviewed by Pavel Feldman.
     4
     5        AuditsPanel for Web Inspector (hidden, no preset audits).
     6
     7        https://bugs.webkit.org/show_bug.cgi?id=31665
     8
     9        * English.lproj/localizedStrings.js:
     10        * WebCore.gypi:
     11        * WebCore.vcproj/WebCore.vcproj:
     12        * inspector/front-end/AuditLauncherView.js: Added.
     13        (WebInspector.AuditLauncherView.categorySortFunction):
     14        (WebInspector.AuditLauncherView):
     15        (WebInspector.AuditLauncherView.prototype.updateResourceTrackingState):
     16        (WebInspector.AuditLauncherView.prototype._setAuditRunning):
     17        (WebInspector.AuditLauncherView.prototype._launchButtonClicked.profilingFinishedCallback):
     18        (WebInspector.AuditLauncherView.prototype._launchButtonClicked):
     19        (WebInspector.AuditLauncherView.prototype._selectAllClicked):
     20        (WebInspector.AuditLauncherView.prototype._categoryClicked):
     21        (WebInspector.AuditLauncherView.prototype._createCategoryElement):
     22        (WebInspector.AuditLauncherView.prototype._createLauncherUI):
     23        (WebInspector.AuditLauncherView.prototype._updateButton):
     24        (WebInspector.AuditLauncherView.prototype.resize):
     25        * inspector/front-end/AuditResultView.js: Added.
     26        (WebInspector.AuditResultView.entrySortFunction):
     27        (WebInspector.AuditResultView):
     28        (WebInspector.AuditCategoryResultPane):
     29        (WebInspector.AuditRuleResultPane):
     30        (WebInspector.AuditRuleResultPane.prototype._decorateRuleResult):
     31        (WebInspector.AuditRuleResultChildSection):
     32        (WebInspector.AuditRuleResultChildSection.prototype.set title):
     33        (WebInspector.AuditRuleResultChildSection.prototype.expand):
     34        * inspector/front-end/AuditsPanel.js: Added.
     35        (WebInspector.AuditsPanel):
     36        (WebInspector.AuditsPanel.prototype.toolbarItemClass.get toolbarItemLabel):
     37        (WebInspector.AuditsPanel.prototype.get statusBarItems):
     38        (WebInspector.AuditsPanel.prototype.get mainResourceLoadTime):
     39        (WebInspector.AuditsPanel.prototype.set mainResourceLoadTime):
     40        (WebInspector.AuditsPanel.prototype.get mainResourceDOMContentTime):
     41        (WebInspector.AuditsPanel.prototype.set mainResourceDOMContentTime):
     42        (WebInspector.AuditsPanel.prototype.get categoriesById):
     43        (WebInspector.AuditsPanel.prototype.get visibleView):
     44        (WebInspector.AuditsPanel.prototype._constructCategories):
     45        (WebInspector.AuditsPanel.prototype._executeAudit.ruleResultReadyCallback):
     46        (WebInspector.AuditsPanel.prototype._executeAudit):
     47        (WebInspector.AuditsPanel.prototype._auditFinishedCallback):
     48        (WebInspector.AuditsPanel.prototype.initiateAudit.initiateAuditCallback):
     49        (WebInspector.AuditsPanel.prototype.initiateAudit):
     50        (WebInspector.AuditsPanel.prototype._reloadResources):
     51        (WebInspector.AuditsPanel.prototype._didMainResourceLoad):
     52        (WebInspector.AuditsPanel.prototype.showResults):
     53        (WebInspector.AuditsPanel.prototype.showLauncherView):
     54        (WebInspector.AuditsPanel.prototype.showView):
     55        (WebInspector.AuditsPanel.prototype.show):
     56        (WebInspector.AuditsPanel.prototype.attach):
     57        (WebInspector.AuditsPanel.prototype.resize):
     58        (WebInspector.AuditsPanel.prototype.updateMainViewWidth):
     59        (WebInspector.AuditsPanel.prototype._updateLauncherViewControls):
     60        (WebInspector.AuditsPanel.prototype._clearButtonClicked):
     61        (WebInspector.AuditsPanel.prototype._closeVisibleView):
     62        (WebInspector.AuditCategory):
     63        (WebInspector.AuditCategory.prototype.get id):
     64        (WebInspector.AuditCategory.prototype.get displayName):
     65        (WebInspector.AuditCategory.prototype.get ruleCount):
     66        (WebInspector.AuditCategory.prototype.addRule):
     67        (WebInspector.AuditCategory.prototype.runRules):
     68        (WebInspector.AuditRule):
     69        (WebInspector.AuditRule.prototype.get id):
     70        (WebInspector.AuditRule.prototype.get displayName):
     71        (WebInspector.AuditRule.prototype.run):
     72        (WebInspector.AuditRule.prototype.doRun):
     73        (WebInspector.AuditRule.prototype.getValue):
     74        (WebInspector.AuditCategoryResult):
     75        (WebInspector.AuditCategoryResult.prototype.addEntry):
     76        (WebInspector.AuditRuleResult):
     77        (WebInspector.AuditRuleResult.prototype.appendChild):
     78        (WebInspector.AuditRuleResult.prototype.set type):
     79        (WebInspector.AuditRuleResult.prototype.get type):
     80        (WebInspector.AuditsSidebarTreeElement):
     81        (WebInspector.AuditsSidebarTreeElement.prototype.onattach):
     82        (WebInspector.AuditsSidebarTreeElement.prototype.onselect):
     83        (WebInspector.AuditsSidebarTreeElement.prototype.get selectable):
     84        (WebInspector.AuditsSidebarTreeElement.prototype.refresh):
     85        (WebInspector.AuditResultSidebarTreeElement):
     86        (WebInspector.AuditResultSidebarTreeElement.prototype.onselect):
     87        (WebInspector.AuditResultSidebarTreeElement.prototype.get selectable):
     88        * inspector/front-end/WebKit.qrc:
     89        * inspector/front-end/audits.css: Added.
     90        * inspector/front-end/inspector.html:
     91        * inspector/front-end/inspector.js:
     92        (WebInspector._createPanels):
     93        (WebInspector.updateResource):
     94
    1952009-12-25  Pavel Feldman  <pfeldman@chromium.org>
    296
  • trunk/WebCore/WebCore.gypi

    r52547 r52558  
    36473647            'inspector/front-end/inspector.html',
    36483648            'inspector/front-end/AbstractTimelinePanel.js',
     3649            'inspector/front-end/AuditLauncherView.js',
     3650            'inspector/front-end/AuditResultView.js',
     3651            'inspector/front-end/AuditsPanel.js',
    36493652            'inspector/front-end/BottomUpProfileDataGridTree.js',
    36503653            'inspector/front-end/Breakpoint.js',
     
    37223725            'inspector/front-end/View.js',
    37233726            'inspector/front-end/WatchExpressionsSidebarPane.js',
     3727            'inspector/front-end/audits.css',
    37243728            'inspector/front-end/inspector.css',
    37253729            'inspector/front-end/inspectorSyntaxHighlight.css',
  • trunk/WebCore/WebCore.vcproj/WebCore.vcproj

    r52547 r52558  
    4270942709                                </File>
    4271042710                                <File
     42711                                        RelativePath="..\inspector\front-end\AuditLauncherView.js"
     42712                                        >
     42713                                </File>
     42714                                <File
     42715                                        RelativePath="..\inspector\front-end\AuditResultView.js"
     42716                                        >
     42717                                </File>
     42718                                <File
     42719                                        RelativePath="..\inspector\front-end\audits.css"
     42720                                        >
     42721                                </File>
     42722                                <File
     42723                                        RelativePath="..\inspector\front-end\AuditsPanel.js"
     42724                                        >
     42725                                </File>
     42726                                <File
    4271142727                                        RelativePath="..\inspector\front-end\BottomUpProfileDataGridTree.js"
    4271242728                                        >
  • trunk/WebCore/inspector/front-end/WebKit.qrc

    r52547 r52558  
    33    <file>inspector.html</file>
    44    <file>AbstractTimelinePanel.js</file>
     5    <file>AuditLauncherView.js</file>
     6    <file>AuditResultView.js</file>
     7    <file>AuditsPanel.js</file>
    58    <file>BottomUpProfileDataGridTree.js</file>
    69    <file>Breakpoint.js</file>
     
    7881    <file>View.js</file>
    7982    <file>WatchExpressionsSidebarPane.js</file>
     83    <file>audits.css</file>
    8084    <file>inspector.css</file>
    8185    <file>inspectorSyntaxHighlight.css</file>
  • trunk/WebCore/inspector/front-end/inspector.html

    r52547 r52558  
    3030<head>
    3131    <meta http-equiv="content-type" content="text/html; charset=utf-8">
     32    <link rel="stylesheet" type="text/css" href="audits.css">
    3233    <link rel="stylesheet" type="text/css" href="inspector.css">
    3334    <link rel="stylesheet" type="text/css" href="inspectorSyntaxHighlight.css">
     
    8687    <script type="text/javascript" src="ProfilesPanel.js"></script>
    8788    <script type="text/javascript" src="ConsolePanel.js"></script>
     89    <script type="text/javascript" src="AuditsPanel.js"></script>
     90    <script type="text/javascript" src="AuditResultView.js"></script>
     91    <script type="text/javascript" src="AuditLauncherView.js"></script>
    8892    <script type="text/javascript" src="ResourceView.js"></script>
    8993    <script type="text/javascript" src="SourceFrame.js"></script>
  • trunk/WebCore/inspector/front-end/inspector.js

    r52556 r52558  
    178178        if (hiddenPanels.indexOf("storage") === -1 && hiddenPanels.indexOf("databases") === -1)
    179179            this.panels.storage = new WebInspector.StoragePanel();
     180
     181        // FIXME: Uncomment when ready.
     182        // if (hiddenPanels.indexOf("audits") === -1)
     183        //    this.panels.audits = new WebInspector.AuditsPanel();
     184
    180185        if (hiddenPanels.indexOf("console") === -1)
    181186            this.panels.console = new WebInspector.ConsolePanel();
     
    968973
    969974    if (payload.didRequestChange) {
    970         resource.host = payload.domain;
     975        resource.domain = payload.host;
    971976        resource.path = payload.path;
    972977        resource.lastPathComponent = payload.lastPathComponent;
     
    10221027            if (this.panels.resources)
    10231028                this.panels.resources.mainResourceLoadTime = payload.loadEventTime;
     1029            if (this.panels.audits)
     1030                this.panels.audits.mainResourceLoadTime = payload.loadEventTime;
    10241031        }
    10251032
     
    10291036            if (this.panels.resources)
    10301037                this.panels.resources.mainResourceDOMContentTime = payload.domContentEventTime;
     1038            if (this.panels.audits)
     1039                this.panels.audits.mainResourceDOMContentTime = payload.domContentEventTime;
    10311040        }
    10321041    }
Note: See TracChangeset for help on using the changeset viewer.