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

Unified Diff: Source/devtools/front_end/extensions/ExtensionPanel.js

Issue 667623002: DevTools: make extension server a part of core, panels' code should depend on it. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: for review Created 6 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 side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/extensions/ExtensionPanel.js
diff --git a/Source/devtools/front_end/extensions/ExtensionPanel.js b/Source/devtools/front_end/extensions/ExtensionPanel.js
index dd418f26b4707d87b50b25afa784909d97132364..c56375683514e15fea4d87b02ca87246df236ffe 100644
--- a/Source/devtools/front_end/extensions/ExtensionPanel.js
+++ b/Source/devtools/front_end/extensions/ExtensionPanel.js
@@ -145,19 +145,37 @@ WebInspector.ExtensionButton.prototype = {
* @constructor
* @extends {WebInspector.SidebarPane}
* @param {!WebInspector.ExtensionServer} server
+ * @param {string} panelName
* @param {string} title
* @param {string} id
*/
-WebInspector.ExtensionSidebarPane = function(server, title, id)
+WebInspector.ExtensionSidebarPane = function(server, panelName, title, id)
{
WebInspector.SidebarPane.call(this, title);
this.setHideOnDetach();
+ this._panelName = panelName;
this._server = server;
this._id = id;
}
WebInspector.ExtensionSidebarPane.prototype = {
/**
+ * @return {string}
+ */
+ id: function()
+ {
+ return this._id;
+ },
+
+ /**
+ * @return {string}
+ */
+ panelName: function()
+ {
+ return this._panelName;
+ },
+
+ /**
* @param {!Object} object
* @param {string} title
* @param {function(?string=)} callback

Powered by Google App Engine
This is Rietveld 408576698