OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * @constructor | 6 * @constructor |
7 * @implements {WebInspector.App} | 7 * @implements {WebInspector.App} |
8 */ | 8 */ |
9 WebInspector.AdvancedApp = function() | 9 WebInspector.AdvancedApp = function() |
10 { | 10 { |
(...skipping 10 matching lines...) Expand all Loading... |
21 { | 21 { |
22 var rootView = new WebInspector.RootView(); | 22 var rootView = new WebInspector.RootView(); |
23 | 23 |
24 this._rootSplitWidget = new WebInspector.SplitWidget(false, true, "Inspe
ctorView.splitViewState", 555, 300, true); | 24 this._rootSplitWidget = new WebInspector.SplitWidget(false, true, "Inspe
ctorView.splitViewState", 555, 300, true); |
25 this._rootSplitWidget.show(rootView.element); | 25 this._rootSplitWidget.show(rootView.element); |
26 | 26 |
27 this._rootSplitWidget.setSidebarWidget(WebInspector.inspectorView); | 27 this._rootSplitWidget.setSidebarWidget(WebInspector.inspectorView); |
28 | 28 |
29 this._inspectedPagePlaceholder = new WebInspector.InspectedPagePlacehold
er(); | 29 this._inspectedPagePlaceholder = new WebInspector.InspectedPagePlacehold
er(); |
30 this._inspectedPagePlaceholder.addEventListener(WebInspector.InspectedPa
gePlaceholder.Events.Update, this._onSetInspectedPageBounds.bind(this), this); | 30 this._inspectedPagePlaceholder.addEventListener(WebInspector.InspectedPa
gePlaceholder.Events.Update, this._onSetInspectedPageBounds.bind(this), this); |
31 this._deviceModeView = new WebInspector.DeviceModeView.Wrapper(this._ins
pectedPagePlaceholder); | 31 this._deviceModeView = new WebInspector.DeviceModeWrapper(this._inspecte
dPagePlaceholder); |
32 | 32 |
33 WebInspector.dockController.addEventListener(WebInspector.DockController
.Events.BeforeDockSideChanged, this._onBeforeDockSideChange, this); | 33 WebInspector.dockController.addEventListener(WebInspector.DockController
.Events.BeforeDockSideChanged, this._onBeforeDockSideChange, this); |
34 WebInspector.dockController.addEventListener(WebInspector.DockController
.Events.DockSideChanged, this._onDockSideChange, this); | 34 WebInspector.dockController.addEventListener(WebInspector.DockController
.Events.DockSideChanged, this._onDockSideChange, this); |
35 WebInspector.dockController.addEventListener(WebInspector.DockController
.Events.AfterDockSideChanged, this._onAfterDockSideChange, this); | 35 WebInspector.dockController.addEventListener(WebInspector.DockController
.Events.AfterDockSideChanged, this._onAfterDockSideChange, this); |
36 this._onDockSideChange(); | 36 this._onDockSideChange(); |
37 | 37 |
38 WebInspector.inspectorView.showInitialPanel(); | 38 WebInspector.inspectorView.showInitialPanel(); |
39 console.timeStamp("AdvancedApp.attachToBody"); | 39 console.timeStamp("AdvancedApp.attachToBody"); |
40 rootView.attachToDocument(document); | 40 rootView.attachToDocument(document); |
41 this._inspectedPagePlaceholder.update(); | 41 this._inspectedPagePlaceholder.update(); |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 WebInspector.AdvancedAppProvider.prototype = { | 205 WebInspector.AdvancedAppProvider.prototype = { |
206 /** | 206 /** |
207 * @override | 207 * @override |
208 * @return {!WebInspector.App} | 208 * @return {!WebInspector.App} |
209 */ | 209 */ |
210 createApp: function() | 210 createApp: function() |
211 { | 211 { |
212 return WebInspector.AdvancedApp._instance(); | 212 return WebInspector.AdvancedApp._instance(); |
213 } | 213 } |
214 }; | 214 }; |
OLD | NEW |