| 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 { |
| 11 WebInspector.dockController.addEventListener(WebInspector.DockController.Eve
nts.BeforeDockSideChanged, this._openToolboxWindow, this); | 11 WebInspector.dockController.addEventListener(WebInspector.DockController.Eve
nts.BeforeDockSideChanged, this._openToolboxWindow, this); |
| 12 }; | 12 }; |
| 13 | 13 |
| 14 WebInspector.AdvancedApp.prototype = { | 14 WebInspector.AdvancedApp.prototype = { |
| 15 /** | 15 /** |
| 16 * @override | 16 * @override |
| 17 * @param {!Document} document | 17 * @param {!Document} document |
| 18 */ | 18 */ |
| 19 presentUI: function(document) | 19 presentUI: function(document) |
| 20 { | 20 { |
| 21 var rootView = new WebInspector.RootView(); | 21 var rootView = new WebInspector.RootView(); |
| 22 | 22 |
| 23 this._rootSplitWidget = new WebInspector.SplitWidget(false, true, "Inspe
ctorView.splitViewState", 555, 300, true); | 23 this._rootSplitWidget = new WebInspector.SplitWidget(false, true, "Inspe
ctorView.splitViewState", 555, 300, true); |
| 24 this._rootSplitWidget.show(rootView.element); | 24 this._rootSplitWidget.show(rootView.element); |
| 25 | 25 |
| 26 this._rootSplitWidget.setSidebarWidget(WebInspector.inspectorView); | 26 this._rootSplitWidget.setSidebarWidget(WebInspector.inspectorView); |
| 27 WebInspector.inspectorView.setOwnerSplit(this._rootSplitWidget); |
| 27 | 28 |
| 28 this._inspectedPagePlaceholder = new WebInspector.InspectedPagePlacehold
er(); | 29 this._inspectedPagePlaceholder = new WebInspector.InspectedPagePlacehold
er(); |
| 29 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); |
| 30 this._deviceModeView = new WebInspector.DeviceModeWrapper(this._inspecte
dPagePlaceholder); | 31 this._deviceModeView = new WebInspector.DeviceModeWrapper(this._inspecte
dPagePlaceholder); |
| 31 | 32 |
| 32 WebInspector.dockController.addEventListener(WebInspector.DockController
.Events.BeforeDockSideChanged, this._onBeforeDockSideChange, this); | 33 WebInspector.dockController.addEventListener(WebInspector.DockController
.Events.BeforeDockSideChanged, this._onBeforeDockSideChange, this); |
| 33 WebInspector.dockController.addEventListener(WebInspector.DockController
.Events.DockSideChanged, this._onDockSideChange, this); | 34 WebInspector.dockController.addEventListener(WebInspector.DockController
.Events.DockSideChanged, this._onDockSideChange, this); |
| 34 WebInspector.dockController.addEventListener(WebInspector.DockController
.Events.AfterDockSideChanged, this._onAfterDockSideChange, this); | 35 WebInspector.dockController.addEventListener(WebInspector.DockController
.Events.AfterDockSideChanged, this._onAfterDockSideChange, this); |
| 35 this._onDockSideChange(); | 36 this._onDockSideChange(); |
| 36 | 37 |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 WebInspector.AdvancedAppProvider.prototype = { | 194 WebInspector.AdvancedAppProvider.prototype = { |
| 194 /** | 195 /** |
| 195 * @override | 196 * @override |
| 196 * @return {!WebInspector.App} | 197 * @return {!WebInspector.App} |
| 197 */ | 198 */ |
| 198 createApp: function() | 199 createApp: function() |
| 199 { | 200 { |
| 200 return WebInspector.AdvancedApp._instance(); | 201 return WebInspector.AdvancedApp._instance(); |
| 201 } | 202 } |
| 202 }; | 203 }; |
| OLD | NEW |