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

Unified Diff: Source/devtools/front_end/timeline/TimelinePanel.js

Issue 934303002: Timeline: add labels around status bar controls (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: use ::shadow instead of /deep/ Created 5 years, 10 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
« no previous file with comments | « no previous file | Source/devtools/front_end/timeline/timelinePanel.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/timeline/TimelinePanel.js
diff --git a/Source/devtools/front_end/timeline/TimelinePanel.js b/Source/devtools/front_end/timeline/TimelinePanel.js
index 65e8174bc3bbc13fba8e351ba0618e196c784165..74067c335b7fb2f15f894305114fdbc9fdbbc3af 100644
--- a/Source/devtools/front_end/timeline/TimelinePanel.js
+++ b/Source/devtools/front_end/timeline/TimelinePanel.js
@@ -308,6 +308,9 @@ WebInspector.TimelinePanel.prototype = {
garbageCollectButton.addEventListener("click", this._garbageCollectButtonClicked, this);
this._panelToolbar.appendStatusBarItem(garbageCollectButton);
+ var viewModeLabel = new WebInspector.StatusBarText(WebInspector.UIString("View Mode:"), "timeline-status-bar-group-label");
+ this._panelToolbar.appendStatusBarItem(viewModeLabel);
+
var framesToggleButton = new WebInspector.StatusBarButton(WebInspector.UIString("Frames view. (Activity split into frames)"), "histogram-status-bar-item");
framesToggleButton.setToggled(this._overviewModeSetting.get() === WebInspector.TimelinePanel.OverviewMode.Frames);
framesToggleButton.addEventListener("click", this._overviewModeChanged.bind(this, framesToggleButton));
@@ -318,6 +321,9 @@ WebInspector.TimelinePanel.prototype = {
this._flameChartToggleButton.addEventListener("click", this._flameChartEnabledChanged.bind(this));
this._panelToolbar.appendStatusBarItem(this._flameChartToggleButton);
+ var captureSettingsLabel = new WebInspector.StatusBarText(WebInspector.UIString("Capture Details:"), "timeline-status-bar-group-label");
+ this._panelToolbar.appendStatusBarItem(captureSettingsLabel);
+
this._captureCausesSetting = WebInspector.settings.createSetting("timelineCaptureCauses", true);
this._captureCausesSetting.addChangeListener(this._refreshViews, this);
this._panelToolbar.appendStatusBarItem(this._createSettingCheckbox(WebInspector.UIString("Causes"),
« no previous file with comments | « no previous file | Source/devtools/front_end/timeline/timelinePanel.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698