Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(437)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/extensions/ExtensionPanel.js

Issue 2356423002: [DevTools] Turn WebInspector.Panel into a web component.
Patch Set: partial fixes Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 21 matching lines...) Expand all
32 * @constructor 32 * @constructor
33 * @implements {WebInspector.Searchable} 33 * @implements {WebInspector.Searchable}
34 * @extends {WebInspector.Panel} 34 * @extends {WebInspector.Panel}
35 * @param {!WebInspector.ExtensionServer} server 35 * @param {!WebInspector.ExtensionServer} server
36 * @param {string} panelName 36 * @param {string} panelName
37 * @param {string} id 37 * @param {string} id
38 * @param {string} pageURL 38 * @param {string} pageURL
39 */ 39 */
40 WebInspector.ExtensionPanel = function(server, panelName, id, pageURL) 40 WebInspector.ExtensionPanel = function(server, panelName, id, pageURL)
41 { 41 {
42 WebInspector.Panel.call(this, panelName); 42 WebInspector.Panel.call(this, panelName, true);
43 this._server = server; 43 this._server = server;
44 this._id = id; 44 this._id = id;
45 this.setHideOnDetach(); 45 this.setHideOnDetach();
46 this._panelToolbar = new WebInspector.Toolbar("hidden", this.element); 46 this._panelToolbar = new WebInspector.Toolbar("hidden", this.contentElement) ;
47 47
48 this._searchableView = new WebInspector.SearchableView(this); 48 this._searchableView = new WebInspector.SearchableView(this);
49 this._searchableView.show(this.element); 49 this._searchableView.show(this.contentElement);
50 50
51 var extensionView = new WebInspector.ExtensionView(server, this._id, pageURL , "extension"); 51 var extensionView = new WebInspector.ExtensionView(server, this._id, pageURL , "extension");
52 extensionView.show(this._searchableView.element); 52 extensionView.show(this._searchableView.element);
53 } 53 }
54 54
55 WebInspector.ExtensionPanel.prototype = { 55 WebInspector.ExtensionPanel.prototype = {
56 /** 56 /**
57 * @param {!WebInspector.ToolbarItem} item 57 * @param {!WebInspector.ToolbarItem} item
58 */ 58 */
59 addToolbarItem: function(item) 59 addToolbarItem: function(item)
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 if (!title) 300 if (!title)
301 section.titleLessMode(); 301 section.titleLessMode();
302 section.expand(); 302 section.expand();
303 section.editable = false; 303 section.editable = false;
304 this._objectPropertiesView.element.appendChild(section.element); 304 this._objectPropertiesView.element.appendChild(section.element);
305 callback(); 305 callback();
306 }, 306 },
307 307
308 __proto__: WebInspector.SimpleView.prototype 308 __proto__: WebInspector.SimpleView.prototype
309 } 309 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698