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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/Panel.js

Issue 2413023002: DevTools: restore selected panel upon devtools reload. (Closed)
Patch Set: same w/ removed code 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/ui/Panel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/Panel.js b/third_party/WebKit/Source/devtools/front_end/ui/Panel.js
index c69463b23e7c9f2b6321497c18500fe82c7e5c99..087e20df927cff2706d26e627d5be3b1130839ed 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/Panel.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/Panel.js
@@ -38,7 +38,6 @@ WebInspector.Panel = function(name)
WebInspector.VBox.call(this);
this.element.classList.add("panel");
- this.element.setAttribute("role", "tabpanel");
this.element.setAttribute("aria-label", name);
this.element.classList.add(name);
this._panelName = name;
@@ -58,10 +57,6 @@ WebInspector.Panel.prototype = {
return this._panelName;
},
- reset: function()
- {
- },
-
/**
* @return {?WebInspector.SearchableView}
*/
@@ -176,68 +171,3 @@ WebInspector.PanelWithSidebar.prototype = {
__proto__: WebInspector.Panel.prototype
}
-
-/**
- * @interface
- */
-WebInspector.PanelDescriptor = function()
-{
-}
-
-WebInspector.PanelDescriptor.prototype = {
- /**
- * @return {string}
- */
- name: function() {},
-
- /**
- * @return {string}
- */
- title: function() {},
-
- /**
- * @return {!Promise.<!WebInspector.Panel>}
- */
- panel: function() {}
-}
-
-/**
- * @constructor
- * @param {!Runtime.Extension} extension
- * @implements {WebInspector.PanelDescriptor}
- */
-WebInspector.ExtensionPanelDescriptor = function(extension)
-{
- this._name = extension.descriptor()["name"];
- this._title = WebInspector.UIString(extension.descriptor()["title"]);
- this._extension = extension;
-}
-
-WebInspector.ExtensionPanelDescriptor.prototype = {
- /**
- * @override
- * @return {string}
- */
- name: function()
- {
- return this._name;
- },
-
- /**
- * @override
- * @return {string}
- */
- title: function()
- {
- return this._title;
- },
-
- /**
- * @override
- * @return {!Promise.<!WebInspector.Panel>}
- */
- panel: function()
- {
- return /** @type {!Promise<!WebInspector.Panel>} */(this._extension.instance());
- }
-}

Powered by Google App Engine
This is Rietveld 408576698