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

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

Issue 2412023002: DevTools: migrate InspectorView to tabbed view location. (Closed)
Patch Set: made layers panel closeable. 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 c03b3e39b201bf0874c6700304bad2fac3fc1546..c69463b23e7c9f2b6321497c18500fe82c7e5c99 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/Panel.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/Panel.js
@@ -26,6 +26,9 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+// For testing.
+WebInspector.panels = [];
+
/**
* @extends {WebInspector.VBox}
* @constructor
@@ -40,6 +43,9 @@ WebInspector.Panel = function(name)
this.element.classList.add(name);
this._panelName = name;
+ // For testing.
+ WebInspector.panels[name] = this;
+
this._shortcuts = /** !Object.<number, function(Event=):boolean> */ ({});
}

Powered by Google App Engine
This is Rietveld 408576698