| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 13 matching lines...) Expand all Loading... |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 /** | 31 /** |
| 32 * @unrestricted | 32 * @unrestricted |
| 33 */ | 33 */ |
| 34 WebInspector.ExtensionView = class extends WebInspector.Widget { | 34 Extensions.ExtensionView = class extends UI.Widget { |
| 35 /** | 35 /** |
| 36 * @param {!WebInspector.ExtensionServer} server | 36 * @param {!Extensions.ExtensionServer} server |
| 37 * @param {string} id | 37 * @param {string} id |
| 38 * @param {string} src | 38 * @param {string} src |
| 39 * @param {string} className | 39 * @param {string} className |
| 40 */ | 40 */ |
| 41 constructor(server, id, src, className) { | 41 constructor(server, id, src, className) { |
| 42 super(); | 42 super(); |
| 43 this.setHideOnDetach(); | 43 this.setHideOnDetach(); |
| 44 this.element.className = 'vbox flex-auto'; // Override | 44 this.element.className = 'vbox flex-auto'; // Override |
| 45 | 45 |
| 46 this._server = server; | 46 this._server = server; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 74 var frames = /** @type {!Array.<!Window>} */ (window.frames); | 74 var frames = /** @type {!Array.<!Window>} */ (window.frames); |
| 75 this._frameIndex = Array.prototype.indexOf.call(frames, this._iframe.content
Window); | 75 this._frameIndex = Array.prototype.indexOf.call(frames, this._iframe.content
Window); |
| 76 if (this.isShowing()) | 76 if (this.isShowing()) |
| 77 this._server.notifyViewShown(this._id, this._frameIndex); | 77 this._server.notifyViewShown(this._id, this._frameIndex); |
| 78 } | 78 } |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 /** | 81 /** |
| 82 * @unrestricted | 82 * @unrestricted |
| 83 */ | 83 */ |
| 84 WebInspector.ExtensionNotifierView = class extends WebInspector.VBox { | 84 Extensions.ExtensionNotifierView = class extends UI.VBox { |
| 85 /** | 85 /** |
| 86 * @param {!WebInspector.ExtensionServer} server | 86 * @param {!Extensions.ExtensionServer} server |
| 87 * @param {string} id | 87 * @param {string} id |
| 88 */ | 88 */ |
| 89 constructor(server, id) { | 89 constructor(server, id) { |
| 90 super(); | 90 super(); |
| 91 | 91 |
| 92 this._server = server; | 92 this._server = server; |
| 93 this._id = id; | 93 this._id = id; |
| 94 } | 94 } |
| 95 | 95 |
| 96 /** | 96 /** |
| 97 * @override | 97 * @override |
| 98 */ | 98 */ |
| 99 wasShown() { | 99 wasShown() { |
| 100 this._server.notifyViewShown(this._id); | 100 this._server.notifyViewShown(this._id); |
| 101 } | 101 } |
| 102 | 102 |
| 103 /** | 103 /** |
| 104 * @override | 104 * @override |
| 105 */ | 105 */ |
| 106 willHide() { | 106 willHide() { |
| 107 this._server.notifyViewHidden(this._id); | 107 this._server.notifyViewHidden(this._id); |
| 108 } | 108 } |
| 109 }; | 109 }; |
| OLD | NEW |