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

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

Issue 2349343002: DevTools: introduce persistence/ module (Closed)
Patch Set: simplify test Created 4 years, 3 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/TabbedPane.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js b/third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js
index 4be39bdbe204a651beae8a89de3bbef4e83d3fa7..ab911b254a5caf922fc54c0b8d9e0ab926bbd189 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js
@@ -94,6 +94,15 @@ WebInspector.TabbedPane.prototype = {
},
/**
+ * @param {string} tabId
+ * @return {number}
+ */
+ tabIndex: function(tabId)
+ {
+ return this._tabs.findIndex(tab => tab.id === tabId);
+ },
+
+ /**
* @return {!Array.<!WebInspector.Widget>}
*/
tabViews: function()

Powered by Google App Engine
This is Rietveld 408576698