| 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 25 matching lines...) Expand all Loading... |
| 36 * @param {string} src | 36 * @param {string} src |
| 37 * @param {string} className | 37 * @param {string} className |
| 38 */ | 38 */ |
| 39 WebInspector.ExtensionView = function(server, id, src, className) | 39 WebInspector.ExtensionView = function(server, id, src, className) |
| 40 { | 40 { |
| 41 WebInspector.View.call(this); | 41 WebInspector.View.call(this); |
| 42 this.element.className = "extension-view fill"; // Override | 42 this.element.className = "extension-view fill"; // Override |
| 43 | 43 |
| 44 this._server = server; | 44 this._server = server; |
| 45 this._id = id; | 45 this._id = id; |
| 46 this._iframe = document.createElement("iframe"); | 46 this._iframe = createElement("iframe"); |
| 47 this._iframe.addEventListener("load", this._onLoad.bind(this), false); | 47 this._iframe.addEventListener("load", this._onLoad.bind(this), false); |
| 48 this._iframe.src = src; | 48 this._iframe.src = src; |
| 49 this._iframe.className = className; | 49 this._iframe.className = className; |
| 50 this.setDefaultFocusedElement(this._iframe); | 50 this.setDefaultFocusedElement(this._iframe); |
| 51 | 51 |
| 52 this.element.appendChild(this._iframe); | 52 this.element.appendChild(this._iframe); |
| 53 } | 53 } |
| 54 | 54 |
| 55 WebInspector.ExtensionView.prototype = { | 55 WebInspector.ExtensionView.prototype = { |
| 56 wasShown: function() | 56 wasShown: function() |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 this._server.notifyViewShown(this._id); | 96 this._server.notifyViewShown(this._id); |
| 97 }, | 97 }, |
| 98 | 98 |
| 99 willHide: function() | 99 willHide: function() |
| 100 { | 100 { |
| 101 this._server.notifyViewHidden(this._id); | 101 this._server.notifyViewHidden(this._id); |
| 102 }, | 102 }, |
| 103 | 103 |
| 104 __proto__: WebInspector.VBox.prototype | 104 __proto__: WebInspector.VBox.prototype |
| 105 } | 105 } |
| OLD | NEW |