| 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 } | 220 } |
| 221 | 221 |
| 222 /** | 222 /** |
| 223 * @return {boolean} | 223 * @return {boolean} |
| 224 */ | 224 */ |
| 225 isDrawerMinimized() { | 225 isDrawerMinimized() { |
| 226 return this._drawerSplitWidget.isSidebarMinimized(); | 226 return this._drawerSplitWidget.isSidebarMinimized(); |
| 227 } | 227 } |
| 228 | 228 |
| 229 /** | 229 /** |
| 230 * @param {string} id |
| 231 * @param {boolean=} userGesture |
| 232 */ |
| 233 closeDrawerTab(id, userGesture) { |
| 234 this._drawerTabbedPane.closeTab(id, userGesture); |
| 235 } |
| 236 |
| 237 /** |
| 230 * @param {!Event} event | 238 * @param {!Event} event |
| 231 */ | 239 */ |
| 232 _keyDown(event) { | 240 _keyDown(event) { |
| 233 var keyboardEvent = /** @type {!KeyboardEvent} */ (event); | 241 var keyboardEvent = /** @type {!KeyboardEvent} */ (event); |
| 234 if (!UI.KeyboardShortcut.eventHasCtrlOrMeta(keyboardEvent) || event.altKey |
| event.shiftKey) | 242 if (!UI.KeyboardShortcut.eventHasCtrlOrMeta(keyboardEvent) || event.altKey |
| event.shiftKey) |
| 235 return; | 243 return; |
| 236 | 244 |
| 237 // Ctrl/Cmd + 1-9 should show corresponding panel. | 245 // Ctrl/Cmd + 1-9 should show corresponding panel. |
| 238 var panelShortcutEnabled = Common.moduleSetting('shortcutPanelSwitch').get()
; | 246 var panelShortcutEnabled = Common.moduleSetting('shortcutPanelSwitch').get()
; |
| 239 if (panelShortcutEnabled) { | 247 if (panelShortcutEnabled) { |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 * @return {boolean} | 335 * @return {boolean} |
| 328 */ | 336 */ |
| 329 handleAction(context, actionId) { | 337 handleAction(context, actionId) { |
| 330 if (UI.inspectorView.drawerVisible()) | 338 if (UI.inspectorView.drawerVisible()) |
| 331 UI.inspectorView._closeDrawer(); | 339 UI.inspectorView._closeDrawer(); |
| 332 else | 340 else |
| 333 UI.inspectorView._showDrawer(true); | 341 UI.inspectorView._showDrawer(true); |
| 334 return true; | 342 return true; |
| 335 } | 343 } |
| 336 }; | 344 }; |
| OLD | NEW |