| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 /** |
| 95 * @override |
| 96 */ |
| 94 wasShown: function() | 97 wasShown: function() |
| 95 { | 98 { |
| 96 this.element.ownerDocument.addEventListener("keydown", this._keyDownBoun
d, false); | 99 this.element.ownerDocument.addEventListener("keydown", this._keyDownBoun
d, false); |
| 97 }, | 100 }, |
| 98 | 101 |
| 102 /** |
| 103 * @override |
| 104 */ |
| 99 willHide: function() | 105 willHide: function() |
| 100 { | 106 { |
| 101 this.element.ownerDocument.removeEventListener("keydown", this._keyDownB
ound, false); | 107 this.element.ownerDocument.removeEventListener("keydown", this._keyDownB
ound, false); |
| 102 }, | 108 }, |
| 103 | 109 |
| 104 /** | 110 /** |
| 105 * @override | 111 * @override |
| 106 * @param {string} locationName | 112 * @param {string} locationName |
| 107 * @return {?WebInspector.ViewLocation} | 113 * @return {?WebInspector.ViewLocation} |
| 108 */ | 114 */ |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 var panelName = this._tabbedPane.allTabs()[panelIndex]; | 262 var panelName = this._tabbedPane.allTabs()[panelIndex]; |
| 257 if (panelName) { | 263 if (panelName) { |
| 258 if (!WebInspector.Dialog.hasInstance() && !this._currentPane
lLocked) | 264 if (!WebInspector.Dialog.hasInstance() && !this._currentPane
lLocked) |
| 259 this.showPanel(panelName); | 265 this.showPanel(panelName); |
| 260 event.consume(true); | 266 event.consume(true); |
| 261 } | 267 } |
| 262 } | 268 } |
| 263 } | 269 } |
| 264 }, | 270 }, |
| 265 | 271 |
| 272 /** |
| 273 * @override |
| 274 */ |
| 266 onResize: function() | 275 onResize: function() |
| 267 { | 276 { |
| 268 WebInspector.Dialog.modalHostRepositioned(); | 277 WebInspector.Dialog.modalHostRepositioned(); |
| 269 }, | 278 }, |
| 270 | 279 |
| 271 /** | 280 /** |
| 272 * @return {!Element} | 281 * @return {!Element} |
| 273 */ | 282 */ |
| 274 topResizerElement: function() | 283 topResizerElement: function() |
| 275 { | 284 { |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 */ | 344 */ |
| 336 handleAction: function(context, actionId) | 345 handleAction: function(context, actionId) |
| 337 { | 346 { |
| 338 if (WebInspector.inspectorView.drawerVisible()) | 347 if (WebInspector.inspectorView.drawerVisible()) |
| 339 WebInspector.inspectorView._closeDrawer(); | 348 WebInspector.inspectorView._closeDrawer(); |
| 340 else | 349 else |
| 341 WebInspector.inspectorView._showDrawer(true); | 350 WebInspector.inspectorView._showDrawer(true); |
| 342 return true; | 351 return true; |
| 343 } | 352 } |
| 344 }; | 353 }; |
| OLD | NEW |