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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js

Issue 2882343002: DevTools: Make flamechart coloring depend on group by selector. (Closed)
Patch Set: . Created 3 years, 7 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
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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 this._createSettingCheckbox(this._showScreenshotsSetting, Common.UIStrin g('Capture screenshots')); 229 this._createSettingCheckbox(this._showScreenshotsSetting, Common.UIStrin g('Capture screenshots'));
230 this._panelToolbar.appendToolbarItem(this._showScreenshotsToolbarCheckbox); 230 this._panelToolbar.appendToolbarItem(this._showScreenshotsToolbarCheckbox);
231 231
232 this._showMemoryToolbarCheckbox = 232 this._showMemoryToolbarCheckbox =
233 this._createSettingCheckbox(this._showMemorySetting, Common.UIString('Sh ow memory timeline')); 233 this._createSettingCheckbox(this._showMemorySetting, Common.UIString('Sh ow memory timeline'));
234 this._panelToolbar.appendToolbarItem(this._showMemoryToolbarCheckbox); 234 this._panelToolbar.appendToolbarItem(this._showMemoryToolbarCheckbox);
235 235
236 // GC 236 // GC
237 this._panelToolbar.appendToolbarItem(UI.Toolbar.createActionButtonForId('com ponents.collect-garbage')); 237 this._panelToolbar.appendToolbarItem(UI.Toolbar.createActionButtonForId('com ponents.collect-garbage'));
238 238
239 this._currentView.populateToolbar(this._panelToolbar);
240
241 // Settings 239 // Settings
242 this._panelToolbar.appendSpacer(); 240 this._panelToolbar.appendSpacer();
243 this._panelToolbar.appendText(''); 241 this._panelToolbar.appendText('');
244 this._panelToolbar.appendSeparator(); 242 this._panelToolbar.appendSeparator();
245 this._panelToolbar.appendToolbarItem(this._showSettingsPaneButton); 243 this._panelToolbar.appendToolbarItem(this._showSettingsPaneButton);
246 } 244 }
247 245
248 _createSettingsPane() { 246 _createSettingsPane() {
249 this._showSettingsPaneSetting = Common.settings.createSetting('timelineShowS ettingsToolbar', false); 247 this._showSettingsPaneSetting = Common.settings.createSetting('timelineShowS ettingsToolbar', false);
250 this._showSettingsPaneButton = new UI.ToolbarSettingToggle( 248 this._showSettingsPaneButton = new UI.ToolbarSettingToggle(
(...skipping 1054 matching lines...) Expand 10 before | Expand all | Expand 10 after
1305 return true; 1303 return true;
1306 case 'timeline.jump-to-next-frame': 1304 case 'timeline.jump-to-next-frame':
1307 panel._jumpToFrame(1); 1305 panel._jumpToFrame(1);
1308 return true; 1306 return true;
1309 } 1307 }
1310 return false; 1308 return false;
1311 } 1309 }
1312 }; 1310 };
1313 1311
1314 Timeline.TimelinePanel._traceProviderSettingSymbol = Symbol('traceProviderSettin g'); 1312 Timeline.TimelinePanel._traceProviderSettingSymbol = Symbol('traceProviderSettin g');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698