Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/emulation/AdvancedApp.js

Issue 2609353002: DevTools: Remove left margin when DevTools is docked (Closed)
Patch Set: Use css Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeWrapper.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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(
(...skipping 10 matching lines...) Expand all
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);
31 this._rootSplitWidget.element.classList.add('root-split-widget');
31 this._rootSplitWidget.show(rootView.element); 32 this._rootSplitWidget.show(rootView.element);
32 this._rootSplitWidget.setSidebarWidget(UI.inspectorView); 33 this._rootSplitWidget.setSidebarWidget(UI.inspectorView);
33 this._rootSplitWidget.setDefaultFocusedChild(UI.inspectorView); 34 this._rootSplitWidget.setDefaultFocusedChild(UI.inspectorView);
34 UI.inspectorView.setOwnerSplit(this._rootSplitWidget); 35 UI.inspectorView.setOwnerSplit(this._rootSplitWidget);
35 36
36 this._inspectedPagePlaceholder = new Emulation.InspectedPagePlaceholder(); 37 this._inspectedPagePlaceholder = new Emulation.InspectedPagePlaceholder();
37 this._inspectedPagePlaceholder.addEventListener( 38 this._inspectedPagePlaceholder.addEventListener(
38 Emulation.InspectedPagePlaceholder.Events.Update, this._onSetInspectedPa geBounds.bind(this), this); 39 Emulation.InspectedPagePlaceholder.Events.Update, this._onSetInspectedPa geBounds.bind(this), this);
39 this._deviceModeView = new Emulation.DeviceModeWrapper(this._inspectedPagePl aceholder); 40 this._deviceModeView = new Emulation.DeviceModeWrapper(this._inspectedPagePl aceholder);
40 41
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 */ 187 */
187 Emulation.AdvancedAppProvider = class { 188 Emulation.AdvancedAppProvider = class {
188 /** 189 /**
189 * @override 190 * @override
190 * @return {!Common.App} 191 * @return {!Common.App}
191 */ 192 */
192 createApp() { 193 createApp() {
193 return Emulation.AdvancedApp._instance(); 194 return Emulation.AdvancedApp._instance();
194 } 195 }
195 }; 196 };
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeWrapper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698