| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org> | 3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org> |
| 4 * Copyright (C) 2011 Google Inc. All rights reserved. | 4 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 { | 353 { |
| 354 if (this._networkItemView && event.keyCode === WebInspector.KeyboardShor
tcut.Keys.Esc.code) { | 354 if (this._networkItemView && event.keyCode === WebInspector.KeyboardShor
tcut.Keys.Esc.code) { |
| 355 this._showRequest(null); | 355 this._showRequest(null); |
| 356 event.handled = true; | 356 event.handled = true; |
| 357 return; | 357 return; |
| 358 } | 358 } |
| 359 | 359 |
| 360 WebInspector.Panel.prototype.handleShortcut.call(this, event); | 360 WebInspector.Panel.prototype.handleShortcut.call(this, event); |
| 361 }, | 361 }, |
| 362 | 362 |
| 363 /** |
| 364 * @override |
| 365 */ |
| 363 wasShown: function() | 366 wasShown: function() |
| 364 { | 367 { |
| 365 WebInspector.context.setFlavor(WebInspector.NetworkPanel, this); | 368 WebInspector.context.setFlavor(WebInspector.NetworkPanel, this); |
| 366 }, | 369 }, |
| 367 | 370 |
| 371 /** |
| 372 * @override |
| 373 */ |
| 368 willHide: function() | 374 willHide: function() |
| 369 { | 375 { |
| 370 WebInspector.context.setFlavor(WebInspector.NetworkPanel, null); | 376 WebInspector.context.setFlavor(WebInspector.NetworkPanel, null); |
| 371 }, | 377 }, |
| 372 | 378 |
| 373 /** | 379 /** |
| 374 * @param {!WebInspector.NetworkRequest} request | 380 * @param {!WebInspector.NetworkRequest} request |
| 375 */ | 381 */ |
| 376 revealAndHighlightRequest: function(request) | 382 revealAndHighlightRequest: function(request) |
| 377 { | 383 { |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 768 * @return {boolean} | 774 * @return {boolean} |
| 769 */ | 775 */ |
| 770 handleAction: function(context, actionId) | 776 handleAction: function(context, actionId) |
| 771 { | 777 { |
| 772 var panel = WebInspector.context.flavor(WebInspector.NetworkPanel); | 778 var panel = WebInspector.context.flavor(WebInspector.NetworkPanel); |
| 773 console.assert(panel && panel instanceof WebInspector.NetworkPanel); | 779 console.assert(panel && panel instanceof WebInspector.NetworkPanel); |
| 774 panel._toggleRecording(); | 780 panel._toggleRecording(); |
| 775 return true; | 781 return true; |
| 776 } | 782 } |
| 777 }; | 783 }; |
| OLD | NEW |