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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/devtools/front_end/timeline/timelinePanel.css » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Intel Inc. All rights reserved. 3 * Copyright (C) 2012 Intel Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 clearButton.addEventListener("click", this._onClearButtonClick, this); 301 clearButton.addEventListener("click", this._onClearButtonClick, this);
302 this._panelToolbar.appendStatusBarItem(clearButton); 302 this._panelToolbar.appendStatusBarItem(clearButton);
303 303
304 this._filterBar = this._createFilterBar(); 304 this._filterBar = this._createFilterBar();
305 this._panelToolbar.appendStatusBarItem(this._filterBar.filterButton()); 305 this._panelToolbar.appendStatusBarItem(this._filterBar.filterButton());
306 306
307 var garbageCollectButton = new WebInspector.StatusBarButton(WebInspector .UIString("Collect garbage"), "garbage-collect-status-bar-item"); 307 var garbageCollectButton = new WebInspector.StatusBarButton(WebInspector .UIString("Collect garbage"), "garbage-collect-status-bar-item");
308 garbageCollectButton.addEventListener("click", this._garbageCollectButto nClicked, this); 308 garbageCollectButton.addEventListener("click", this._garbageCollectButto nClicked, this);
309 this._panelToolbar.appendStatusBarItem(garbageCollectButton); 309 this._panelToolbar.appendStatusBarItem(garbageCollectButton);
310 310
311 var viewModeLabel = new WebInspector.StatusBarText(WebInspector.UIString ("View Mode:"), "timeline-status-bar-group-label");
312 this._panelToolbar.appendStatusBarItem(viewModeLabel);
313
311 var framesToggleButton = new WebInspector.StatusBarButton(WebInspector.U IString("Frames view. (Activity split into frames)"), "histogram-status-bar-item "); 314 var framesToggleButton = new WebInspector.StatusBarButton(WebInspector.U IString("Frames view. (Activity split into frames)"), "histogram-status-bar-item ");
312 framesToggleButton.setToggled(this._overviewModeSetting.get() === WebIns pector.TimelinePanel.OverviewMode.Frames); 315 framesToggleButton.setToggled(this._overviewModeSetting.get() === WebIns pector.TimelinePanel.OverviewMode.Frames);
313 framesToggleButton.addEventListener("click", this._overviewModeChanged.b ind(this, framesToggleButton)); 316 framesToggleButton.addEventListener("click", this._overviewModeChanged.b ind(this, framesToggleButton));
314 this._panelToolbar.appendStatusBarItem(framesToggleButton); 317 this._panelToolbar.appendStatusBarItem(framesToggleButton);
315 318
316 this._flameChartToggleButton = new WebInspector.StatusBarButton(WebInspe ctor.UIString("Flame chart view. (Use WASD or time selection to navigate)"), "fl ame-chart-status-bar-item"); 319 this._flameChartToggleButton = new WebInspector.StatusBarButton(WebInspe ctor.UIString("Flame chart view. (Use WASD or time selection to navigate)"), "fl ame-chart-status-bar-item");
317 this._flameChartToggleButton.setToggled(this._flameChartEnabledSetting.g et()); 320 this._flameChartToggleButton.setToggled(this._flameChartEnabledSetting.g et());
318 this._flameChartToggleButton.addEventListener("click", this._flameChartE nabledChanged.bind(this)); 321 this._flameChartToggleButton.addEventListener("click", this._flameChartE nabledChanged.bind(this));
319 this._panelToolbar.appendStatusBarItem(this._flameChartToggleButton); 322 this._panelToolbar.appendStatusBarItem(this._flameChartToggleButton);
320 323
324 var captureSettingsLabel = new WebInspector.StatusBarText(WebInspector.U IString("Capture Details:"), "timeline-status-bar-group-label");
325 this._panelToolbar.appendStatusBarItem(captureSettingsLabel);
326
321 this._captureCausesSetting = WebInspector.settings.createSetting("timeli neCaptureCauses", true); 327 this._captureCausesSetting = WebInspector.settings.createSetting("timeli neCaptureCauses", true);
322 this._captureCausesSetting.addChangeListener(this._refreshViews, this); 328 this._captureCausesSetting.addChangeListener(this._refreshViews, this);
323 this._panelToolbar.appendStatusBarItem(this._createSettingCheckbox(WebIn spector.UIString("Causes"), 329 this._panelToolbar.appendStatusBarItem(this._createSettingCheckbox(WebIn spector.UIString("Causes"),
324 this._capt ureCausesSetting, 330 this._capt ureCausesSetting,
325 WebInspect or.UIString("Capture causes (e.g., stack traces) for timeline events. (Has perfo rmance overhead)"))); 331 WebInspect or.UIString("Capture causes (e.g., stack traces) for timeline events. (Has perfo rmance overhead)")));
326 this._enableJSSamplingSettingSetting = WebInspector.settings.createSetti ng("timelineEnableJSSampling", false); 332 this._enableJSSamplingSettingSetting = WebInspector.settings.createSetti ng("timelineEnableJSSampling", false);
327 this._panelToolbar.appendStatusBarItem(this._createSettingCheckbox(WebIn spector.UIString("JS Profiler"), 333 this._panelToolbar.appendStatusBarItem(this._createSettingCheckbox(WebIn spector.UIString("JS Profiler"),
328 this._enab leJSSamplingSettingSetting, 334 this._enab leJSSamplingSettingSetting,
329 WebInspect or.UIString("Enable JavaScript sampling profiler. (Has performance overhead)"))) ; 335 WebInspect or.UIString("Enable JavaScript sampling profiler. (Has performance overhead)"))) ;
330 336
(...skipping 1256 matching lines...) Expand 10 before | Expand all | Expand 10 after
1587 WebInspector.TimelinePanelFactory.prototype = { 1593 WebInspector.TimelinePanelFactory.prototype = {
1588 /** 1594 /**
1589 * @override 1595 * @override
1590 * @return {!WebInspector.Panel} 1596 * @return {!WebInspector.Panel}
1591 */ 1597 */
1592 createPanel: function() 1598 createPanel: function()
1593 { 1599 {
1594 return WebInspector.TimelinePanel.instance(); 1600 return WebInspector.TimelinePanel.instance();
1595 } 1601 }
1596 } 1602 }
OLDNEW
« 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