| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 73 |
| 74 /** | 74 /** |
| 75 * @this {WebInspector.InspectorView} | 75 * @this {WebInspector.InspectorView} |
| 76 * @param {!WebInspector.Event} event | 76 * @param {!WebInspector.Event} event |
| 77 */ | 77 */ |
| 78 function showPanel(event) | 78 function showPanel(event) |
| 79 { | 79 { |
| 80 var panelName = /** @type {string} */ (event.data); | 80 var panelName = /** @type {string} */ (event.data); |
| 81 this.showPanel(panelName); | 81 this.showPanel(panelName); |
| 82 } | 82 } |
| 83 } | 83 }; |
| 84 | 84 |
| 85 /** | 85 /** |
| 86 * @return {!WebInspector.InspectorView} | 86 * @return {!WebInspector.InspectorView} |
| 87 */ | 87 */ |
| 88 WebInspector.InspectorView.instance = function() | 88 WebInspector.InspectorView.instance = function() |
| 89 { | 89 { |
| 90 return /** @type {!WebInspector.InspectorView} */ (self.runtime.sharedInstan
ce(WebInspector.InspectorView)); | 90 return /** @type {!WebInspector.InspectorView} */ (self.runtime.sharedInstan
ce(WebInspector.InspectorView)); |
| 91 } | 91 }; |
| 92 | 92 |
| 93 WebInspector.InspectorView.prototype = { | 93 WebInspector.InspectorView.prototype = { |
| 94 wasShown: function() | 94 wasShown: function() |
| 95 { | 95 { |
| 96 this.element.ownerDocument.addEventListener("keydown", this._keyDownBoun
d, false); | 96 this.element.ownerDocument.addEventListener("keydown", this._keyDownBoun
d, false); |
| 97 }, | 97 }, |
| 98 | 98 |
| 99 willHide: function() | 99 willHide: function() |
| 100 { | 100 { |
| 101 this.element.ownerDocument.removeEventListener("keydown", this._keyDownB
ound, false); | 101 this.element.ownerDocument.removeEventListener("keydown", this._keyDownB
ound, false); |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 * @type {!WebInspector.InspectorView} | 317 * @type {!WebInspector.InspectorView} |
| 318 */ | 318 */ |
| 319 WebInspector.inspectorView; | 319 WebInspector.inspectorView; |
| 320 | 320 |
| 321 /** | 321 /** |
| 322 * @constructor | 322 * @constructor |
| 323 * @implements {WebInspector.ActionDelegate} | 323 * @implements {WebInspector.ActionDelegate} |
| 324 */ | 324 */ |
| 325 WebInspector.InspectorView.DrawerToggleActionDelegate = function() | 325 WebInspector.InspectorView.DrawerToggleActionDelegate = function() |
| 326 { | 326 { |
| 327 } | 327 }; |
| 328 | 328 |
| 329 WebInspector.InspectorView.DrawerToggleActionDelegate.prototype = { | 329 WebInspector.InspectorView.DrawerToggleActionDelegate.prototype = { |
| 330 /** | 330 /** |
| 331 * @override | 331 * @override |
| 332 * @param {!WebInspector.Context} context | 332 * @param {!WebInspector.Context} context |
| 333 * @param {string} actionId | 333 * @param {string} actionId |
| 334 * @return {boolean} | 334 * @return {boolean} |
| 335 */ | 335 */ |
| 336 handleAction: function(context, actionId) | 336 handleAction: function(context, actionId) |
| 337 { | 337 { |
| 338 if (WebInspector.inspectorView.drawerVisible()) | 338 if (WebInspector.inspectorView.drawerVisible()) |
| 339 WebInspector.inspectorView._closeDrawer(); | 339 WebInspector.inspectorView._closeDrawer(); |
| 340 else | 340 else |
| 341 WebInspector.inspectorView._showDrawer(true); | 341 WebInspector.inspectorView._showDrawer(true); |
| 342 return true; | 342 return true; |
| 343 } | 343 } |
| 344 } | 344 }; |
| OLD | NEW |