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

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

Issue 2617293002: DevTools: TabbedLocations only materialize tabs when needed (Closed)
Patch Set: rework for TabbedLocations Created 3 years, 11 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 64313e21f74f2f3aeee400765ba48a39bc011b4a..2d4390c0389e2f253b558876dec22d2236486c5b 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js
@@ -440,6 +440,7 @@ UI.TabbedPane = class extends UI.VBox {
var effectiveTab = this._currentTab || this._tabsHistory[0];
if (effectiveTab && this._autoSelectFirstItemOnShow)
this.selectTab(effectiveTab.id);
+ this.dispatchEventToListeners(UI.TabbedPane.Events.TabsShown, this._currentTab);
}
/**
@@ -831,7 +832,8 @@ UI.TabbedPane = class extends UI.VBox {
UI.TabbedPane.Events = {
TabSelected: Symbol('TabSelected'),
TabClosed: Symbol('TabClosed'),
- TabOrderChanged: Symbol('TabOrderChanged')
+ TabOrderChanged: Symbol('TabOrderChanged'),
+ TabsShown: Symbol('TabsShown')
};
/**

Powered by Google App Engine
This is Rietveld 408576698