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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 { | 454 { |
455 this.dispatchEventToListeners(WebInspector.ResourceTreeModel.EventTypes.
WillReloadPage); | 455 this.dispatchEventToListeners(WebInspector.ResourceTreeModel.EventTypes.
WillReloadPage); |
456 PageAgent.reload(ignoreCache, scriptToEvaluateOnLoad, scriptPreprocessor
); | 456 PageAgent.reload(ignoreCache, scriptToEvaluateOnLoad, scriptPreprocessor
); |
457 }, | 457 }, |
458 | 458 |
459 __proto__: WebInspector.Object.prototype | 459 __proto__: WebInspector.Object.prototype |
460 } | 460 } |
461 | 461 |
462 /** | 462 /** |
463 * @constructor | 463 * @constructor |
| 464 * @implements {WebInspector.ActionDelegate} |
| 465 */ |
| 466 WebInspector.ResourceTreeModel.ReloadPageActionDelegate = function() |
| 467 { |
| 468 } |
| 469 |
| 470 WebInspector.ResourceTreeModel.ReloadPageActionDelegate.prototype = { |
| 471 /** |
| 472 * @param {!KeyboardEvent=} keyEvent |
| 473 * @return {boolean} |
| 474 */ |
| 475 handleAction: function(keyEvent) |
| 476 { |
| 477 WebInspector.resourceTreeModel.reloadPage(keyEvent.ctrlKey || keyEvent.s
hiftKey); |
| 478 return true; |
| 479 } |
| 480 } |
| 481 |
| 482 /** |
| 483 * @constructor |
464 * @param {!WebInspector.ResourceTreeModel} model | 484 * @param {!WebInspector.ResourceTreeModel} model |
465 * @param {?WebInspector.ResourceTreeFrame} parentFrame | 485 * @param {?WebInspector.ResourceTreeFrame} parentFrame |
466 * @param {!PageAgent.FrameId} frameId | 486 * @param {!PageAgent.FrameId} frameId |
467 * @param {!PageAgent.Frame=} payload | 487 * @param {!PageAgent.Frame=} payload |
468 */ | 488 */ |
469 WebInspector.ResourceTreeFrame = function(model, parentFrame, frameId, payload) | 489 WebInspector.ResourceTreeFrame = function(model, parentFrame, frameId, payload) |
470 { | 490 { |
471 this._model = model; | 491 this._model = model; |
472 this._parentFrame = parentFrame; | 492 this._parentFrame = parentFrame; |
473 this._id = frameId; | 493 this._id = frameId; |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
788 screencastVisibilityChanged: function(visible) | 808 screencastVisibilityChanged: function(visible) |
789 { | 809 { |
790 this._resourceTreeModel.dispatchEventToListeners(WebInspector.ResourceTr
eeModel.EventTypes.ScreencastVisibilityChanged, {visible:visible}); | 810 this._resourceTreeModel.dispatchEventToListeners(WebInspector.ResourceTr
eeModel.EventTypes.ScreencastVisibilityChanged, {visible:visible}); |
791 } | 811 } |
792 } | 812 } |
793 | 813 |
794 /** | 814 /** |
795 * @type {!WebInspector.ResourceTreeModel} | 815 * @type {!WebInspector.ResourceTreeModel} |
796 */ | 816 */ |
797 WebInspector.resourceTreeModel; | 817 WebInspector.resourceTreeModel; |
OLD | NEW |