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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/ui/InspectorView.js

Issue 2658383002: [DevTools] Make UI.GlassPane position contentElement for different overlay controls. (Closed)
Patch Set: rebased Created 3 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 16 matching lines...) Expand all
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 /** 30 /**
31 * @implements {UI.ViewLocationResolver} 31 * @implements {UI.ViewLocationResolver}
32 * @unrestricted 32 * @unrestricted
33 */ 33 */
34 UI.InspectorView = class extends UI.VBox { 34 UI.InspectorView = class extends UI.VBox {
35 constructor() { 35 constructor() {
36 super(); 36 super();
37 UI.Dialog.setModalHostView(this); 37 UI.GlassPane.setContainer(this.element);
38 this.setMinimumSize(240, 72); 38 this.setMinimumSize(240, 72);
39 39
40 // DevTools sidebar is a vertical split of panels tabbed pane and a drawer. 40 // DevTools sidebar is a vertical split of panels tabbed pane and a drawer.
41 this._drawerSplitWidget = new UI.SplitWidget(false, true, 'Inspector.drawerS plitViewState', 200, 200); 41 this._drawerSplitWidget = new UI.SplitWidget(false, true, 'Inspector.drawerS plitViewState', 200, 200);
42 this._drawerSplitWidget.hideSidebar(); 42 this._drawerSplitWidget.hideSidebar();
43 this._drawerSplitWidget.hideDefaultResizer(); 43 this._drawerSplitWidget.hideDefaultResizer();
44 this._drawerSplitWidget.enableShowModeSaving(); 44 this._drawerSplitWidget.enableShowModeSaving();
45 this._drawerSplitWidget.show(this.element); 45 this._drawerSplitWidget.show(this.element);
46 46
47 // Create drawer tabbed pane. 47 // Create drawer tabbed pane.
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 if (event.key === ']') { 261 if (event.key === ']') {
262 this._tabbedPane.selectNextTab(); 262 this._tabbedPane.selectNextTab();
263 event.consume(true); 263 event.consume(true);
264 } 264 }
265 } 265 }
266 266
267 /** 267 /**
268 * @override 268 * @override
269 */ 269 */
270 onResize() { 270 onResize() {
271 UI.Dialog.modalHostRepositioned(); 271 UI.GlassPane.containerMoved(this.element);
272 } 272 }
273 273
274 /** 274 /**
275 * @return {!Element} 275 * @return {!Element}
276 */ 276 */
277 topResizerElement() { 277 topResizerElement() {
278 return this._tabbedPane.headerElement(); 278 return this._tabbedPane.headerElement();
279 } 279 }
280 280
281 toolbarItemResized() { 281 toolbarItemResized() {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 * @return {boolean} 326 * @return {boolean}
327 */ 327 */
328 handleAction(context, actionId) { 328 handleAction(context, actionId) {
329 if (UI.inspectorView.drawerVisible()) 329 if (UI.inspectorView.drawerVisible())
330 UI.inspectorView._closeDrawer(); 330 UI.inspectorView._closeDrawer();
331 else 331 else
332 UI.inspectorView._showDrawer(true); 332 UI.inspectorView._showDrawer(true);
333 return true; 333 return true;
334 } 334 }
335 }; 335 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698