Chromium Code Reviews| 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 * @implements {Common.App} | 5 * @implements {Common.App} |
| 6 * @unrestricted | 6 * @unrestricted |
| 7 */ | 7 */ |
| 8 Emulation.AdvancedApp = class { | 8 Emulation.AdvancedApp = class { |
| 9 constructor() { | 9 constructor() { |
| 10 Components.dockController.addEventListener( | 10 Components.dockController.addEventListener( |
| 11 Components.DockController.Events.BeforeDockSideChanged, this._openToolbo xWindow, this); | 11 Components.DockController.Events.BeforeDockSideChanged, this._openToolbo xWindow, this); |
| 12 } | 12 } |
| 13 | 13 |
| 14 /** | 14 /** |
| 15 * @return {!Emulation.AdvancedApp} | 15 * @return {!Emulation.AdvancedApp} |
| 16 */ | 16 */ |
| 17 static _instance() { | 17 static _instance() { |
| 18 if (!Emulation.AdvancedApp._appInstance) | 18 if (!Emulation.AdvancedApp._appInstance) |
| 19 Emulation.AdvancedApp._appInstance = new Emulation.AdvancedApp(); | 19 Emulation.AdvancedApp._appInstance = new Emulation.AdvancedApp(); |
| 20 return Emulation.AdvancedApp._appInstance; | 20 return Emulation.AdvancedApp._appInstance; |
| 21 } | 21 } |
| 22 | 22 |
| 23 /** | 23 /** |
| 24 * @override | 24 * @override |
| 25 * @param {!Document} document | 25 * @param {!Document} document |
| 26 */ | 26 */ |
| 27 presentUI(document) { | 27 presentUI(document) { |
| 28 var rootView = new UI.RootView(); | 28 var rootView = new UI.RootView(); |
| 29 | 29 |
| 30 this._rootSplitWidget = new UI.SplitWidget(false, true, 'InspectorView.split ViewState', 555, 300, true); | 30 this._rootSplitWidget = new UI.SplitWidget(false, true, 'InspectorView.split ViewState', 555, 300, true, 10); |
|
einbinder
2017/01/04 00:26:26
There is a click area of 5px, down from 6px.
| |
| 31 this._rootSplitWidget.show(rootView.element); | 31 this._rootSplitWidget.show(rootView.element); |
| 32 this._rootSplitWidget.setSidebarWidget(UI.inspectorView); | 32 this._rootSplitWidget.setSidebarWidget(UI.inspectorView); |
| 33 this._rootSplitWidget.setDefaultFocusedChild(UI.inspectorView); | 33 this._rootSplitWidget.setDefaultFocusedChild(UI.inspectorView); |
| 34 UI.inspectorView.setOwnerSplit(this._rootSplitWidget); | 34 UI.inspectorView.setOwnerSplit(this._rootSplitWidget); |
| 35 | 35 |
| 36 this._inspectedPagePlaceholder = new Emulation.InspectedPagePlaceholder(); | 36 this._inspectedPagePlaceholder = new Emulation.InspectedPagePlaceholder(); |
| 37 this._inspectedPagePlaceholder.addEventListener( | 37 this._inspectedPagePlaceholder.addEventListener( |
| 38 Emulation.InspectedPagePlaceholder.Events.Update, this._onSetInspectedPa geBounds.bind(this), this); | 38 Emulation.InspectedPagePlaceholder.Events.Update, this._onSetInspectedPa geBounds.bind(this), this); |
| 39 this._deviceModeView = new Emulation.DeviceModeWrapper(this._inspectedPagePl aceholder); | 39 this._deviceModeView = new Emulation.DeviceModeWrapper(this._inspectedPagePl aceholder); |
| 40 | 40 |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 186 */ | 186 */ |
| 187 Emulation.AdvancedAppProvider = class { | 187 Emulation.AdvancedAppProvider = class { |
| 188 /** | 188 /** |
| 189 * @override | 189 * @override |
| 190 * @return {!Common.App} | 190 * @return {!Common.App} |
| 191 */ | 191 */ |
| 192 createApp() { | 192 createApp() { |
| 193 return Emulation.AdvancedApp._instance(); | 193 return Emulation.AdvancedApp._instance(); |
| 194 } | 194 } |
| 195 }; | 195 }; |
| OLD | NEW |