| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 Loading... |
| 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 }; |
| OLD | NEW |