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 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 { | 473 { |
474 this.dispatchEventToListeners(WebInspector.ResourceTreeModel.EventTypes.
WillReloadPage); | 474 this.dispatchEventToListeners(WebInspector.ResourceTreeModel.EventTypes.
WillReloadPage); |
475 this._agent.reload(ignoreCache, scriptToEvaluateOnLoad, scriptPreprocess
or); | 475 this._agent.reload(ignoreCache, scriptToEvaluateOnLoad, scriptPreprocess
or); |
476 }, | 476 }, |
477 | 477 |
478 __proto__: WebInspector.Object.prototype | 478 __proto__: WebInspector.Object.prototype |
479 } | 479 } |
480 | 480 |
481 /** | 481 /** |
482 * @constructor | 482 * @constructor |
| 483 * @implements {WebInspector.ActionDelegate} |
| 484 */ |
| 485 WebInspector.ResourceTreeModel.ReloadPageActionDelegate = function() |
| 486 { |
| 487 } |
| 488 |
| 489 WebInspector.ResourceTreeModel.ReloadPageActionDelegate.prototype = { |
| 490 /** |
| 491 * @param {!KeyboardEvent=} keyEvent |
| 492 * @return {boolean} |
| 493 */ |
| 494 handleAction: function(keyEvent) |
| 495 { |
| 496 WebInspector.resourceTreeModel.reloadPage(keyEvent.ctrlKey || keyEvent.s
hiftKey); |
| 497 return true; |
| 498 } |
| 499 } |
| 500 |
| 501 /** |
| 502 * @constructor |
483 * @param {!WebInspector.ResourceTreeModel} model | 503 * @param {!WebInspector.ResourceTreeModel} model |
484 * @param {?WebInspector.ResourceTreeFrame} parentFrame | 504 * @param {?WebInspector.ResourceTreeFrame} parentFrame |
485 * @param {!PageAgent.FrameId} frameId | 505 * @param {!PageAgent.FrameId} frameId |
486 * @param {!PageAgent.Frame=} payload | 506 * @param {!PageAgent.Frame=} payload |
487 */ | 507 */ |
488 WebInspector.ResourceTreeFrame = function(model, parentFrame, frameId, payload) | 508 WebInspector.ResourceTreeFrame = function(model, parentFrame, frameId, payload) |
489 { | 509 { |
490 this._model = model; | 510 this._model = model; |
491 this._parentFrame = parentFrame; | 511 this._parentFrame = parentFrame; |
492 this._id = frameId; | 512 this._id = frameId; |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
807 screencastVisibilityChanged: function(visible) | 827 screencastVisibilityChanged: function(visible) |
808 { | 828 { |
809 this._resourceTreeModel.dispatchEventToListeners(WebInspector.ResourceTr
eeModel.EventTypes.ScreencastVisibilityChanged, {visible:visible}); | 829 this._resourceTreeModel.dispatchEventToListeners(WebInspector.ResourceTr
eeModel.EventTypes.ScreencastVisibilityChanged, {visible:visible}); |
810 } | 830 } |
811 } | 831 } |
812 | 832 |
813 /** | 833 /** |
814 * @type {!WebInspector.ResourceTreeModel} | 834 * @type {!WebInspector.ResourceTreeModel} |
815 */ | 835 */ |
816 WebInspector.resourceTreeModel; | 836 WebInspector.resourceTreeModel; |
OLD | NEW |