| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 willHide() { | 104 willHide() { |
| 105 this.element.ownerDocument.removeEventListener('keydown', this._keyDownBound
, false); | 105 this.element.ownerDocument.removeEventListener('keydown', this._keyDownBound
, false); |
| 106 } | 106 } |
| 107 | 107 |
| 108 /** | 108 /** |
| 109 * @override | 109 * @override |
| 110 * @param {string} locationName | 110 * @param {string} locationName |
| 111 * @return {?UI.ViewLocation} | 111 * @return {?UI.ViewLocation} |
| 112 */ | 112 */ |
| 113 resolveLocation(locationName) { | 113 resolveLocation(locationName) { |
| 114 return this._drawerTabbedLocation; | 114 if (locationName === 'drawer-view') |
| 115 return this._drawerTabbedLocation; |
| 116 if (locationName === 'panel') |
| 117 return this._tabbedLocation; |
| 118 return null; |
| 115 } | 119 } |
| 116 | 120 |
| 117 createToolbars() { | 121 createToolbars() { |
| 118 this._tabbedPane.leftToolbar().appendLocationItems('main-toolbar-left'); | 122 this._tabbedPane.leftToolbar().appendLocationItems('main-toolbar-left'); |
| 119 this._tabbedPane.rightToolbar().appendLocationItems('main-toolbar-right'); | 123 this._tabbedPane.rightToolbar().appendLocationItems('main-toolbar-right'); |
| 120 } | 124 } |
| 121 | 125 |
| 122 /** | 126 /** |
| 123 * @param {!UI.View} view | 127 * @param {!UI.View} view |
| 124 */ | 128 */ |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 * @return {boolean} | 339 * @return {boolean} |
| 336 */ | 340 */ |
| 337 handleAction(context, actionId) { | 341 handleAction(context, actionId) { |
| 338 if (UI.inspectorView.drawerVisible()) | 342 if (UI.inspectorView.drawerVisible()) |
| 339 UI.inspectorView._closeDrawer(); | 343 UI.inspectorView._closeDrawer(); |
| 340 else | 344 else |
| 341 UI.inspectorView._showDrawer(true); | 345 UI.inspectorView._showDrawer(true); |
| 342 return true; | 346 return true; |
| 343 } | 347 } |
| 344 }; | 348 }; |
| OLD | NEW |