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

Unified Diff: third_party/WebKit/Source/devtools/front_end/timeline/TimelineLandingPage.js

Issue 2580903003: DevTools: Rearrange Timeline toolbar for landing page mode (Closed)
Patch Set: addressing comments Created 4 years 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/timeline/TimelineLandingPage.js
diff --git a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineLandingPage.js b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineLandingPage.js
index 33db9366dddff986388c37279e68bd3ee5feb46e..fe15d12ca43f0a4c094366ddbc4d04ce06384623 100644
--- a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineLandingPage.js
+++ b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineLandingPage.js
@@ -36,30 +36,18 @@ Timeline.TimelineLandingPage = class extends UI.VBox {
this._tabbedPane.addEventListener(UI.TabbedPane.Events.TabSelected, this._tabSelected, this);
this._tabbedPane.show(this.contentElement);
- this._perspectiveSetting =
- Common.settings.createSetting('timelinePerspective', Timeline.TimelinePanel.Perspectives.Load);
- this._perspectiveSetting.addChangeListener(this._perspectiveChanged, this);
/**
* @return {!Element}
*/
function learnMore() {
return UI.createExternalLink(
- 'https://developers.google.com/web/tools/chrome-devtools/evaluate-performance/timeline-tool',
+ 'https://developers.google.com/web/tools/chrome-devtools/evaluate-performance/',
Common.UIString('Learn more'));
}
}
- /**
- * @param {!Common.Event} event
- */
- _tabSelected(event) {
- if (this._perspectiveSetting.get() !== event.data.tabId)
- this._perspectiveSetting.set(event.data.tabId);
- }
-
- _perspectiveChanged() {
- this._tabbedPane.selectTab(this._perspectiveSetting.get());
+ _tabSelected() {
const tabWidget = /** @type {!Timeline.TimelineLandingPage.PerspectiveTabWidget} */ (this._tabbedPane.visibleView);
tabWidget.activate();
}

Powered by Google App Engine
This is Rietveld 408576698