| 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 29 matching lines...) Expand all Loading... |
| 40 { | 40 { |
| 41 WebInspector.Panel.call(this, id); | 41 WebInspector.Panel.call(this, id); |
| 42 this._server = server; | 42 this._server = server; |
| 43 this.setHideOnDetach(); | 43 this.setHideOnDetach(); |
| 44 this.element.classList.add("extension-panel"); | 44 this.element.classList.add("extension-panel"); |
| 45 this._panelStatusBarElement = this.element.createChild("div", "panel-status-
bar hidden"); | 45 this._panelStatusBarElement = this.element.createChild("div", "panel-status-
bar hidden"); |
| 46 | 46 |
| 47 this._searchableView = new WebInspector.SearchableView(this); | 47 this._searchableView = new WebInspector.SearchableView(this); |
| 48 this._searchableView.show(this.element); | 48 this._searchableView.show(this.element); |
| 49 | 49 |
| 50 var extensionView = new WebInspector.ExtensionView(server, id, pageURL, "ext
ension panel"); | 50 var extensionView = new WebInspector.ExtensionView(server, id, pageURL, "ext
ension"); |
| 51 extensionView.show(this._searchableView.element); | 51 extensionView.show(this._searchableView.element); |
| 52 this.setDefaultFocusedElement(extensionView.defaultFocusedElement()); | 52 this.setDefaultFocusedElement(extensionView.defaultFocusedElement()); |
| 53 } | 53 } |
| 54 | 54 |
| 55 WebInspector.ExtensionPanel.prototype = { | 55 WebInspector.ExtensionPanel.prototype = { |
| 56 /** | 56 /** |
| 57 * @return {!Element} | 57 * @return {!Element} |
| 58 */ | 58 */ |
| 59 defaultFocusedElement: function() | 59 defaultFocusedElement: function() |
| 60 { | 60 { |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 if (!title) | 287 if (!title) |
| 288 section.headerElement.classList.add("hidden"); | 288 section.headerElement.classList.add("hidden"); |
| 289 section.expanded = true; | 289 section.expanded = true; |
| 290 section.editable = false; | 290 section.editable = false; |
| 291 this._objectPropertiesView.element.appendChild(section.element); | 291 this._objectPropertiesView.element.appendChild(section.element); |
| 292 callback(); | 292 callback(); |
| 293 }, | 293 }, |
| 294 | 294 |
| 295 __proto__: WebInspector.SidebarPane.prototype | 295 __proto__: WebInspector.SidebarPane.prototype |
| 296 } | 296 } |
| OLD | NEW |