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

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

Issue 1273363002: Devtools UI: Show multiple shortcuts, show more shortcuts (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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
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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 var checkboxItem = new WebInspector.ToolbarCheckbox(name, tooltip, setti ng); 297 var checkboxItem = new WebInspector.ToolbarCheckbox(name, tooltip, setti ng);
298 this._recordingOptionUIControls.push(checkboxItem); 298 this._recordingOptionUIControls.push(checkboxItem);
299 return checkboxItem; 299 return checkboxItem;
300 }, 300 },
301 301
302 _createToolbarItems: function() 302 _createToolbarItems: function()
303 { 303 {
304 this._panelToolbar = new WebInspector.Toolbar(this.element); 304 this._panelToolbar = new WebInspector.Toolbar(this.element);
305 305
306 this.toggleTimelineButton = new WebInspector.ToolbarButton("Record timel ine", "record-toolbar-item"); 306 this.toggleTimelineButton = new WebInspector.ToolbarButton("Record timel ine", "record-toolbar-item");
307 this.toggleTimelineButton.setShortcut(WebInspector.ShortcutsScreen.Timel inePanelShortcuts.StartStopRecording);
307 this.toggleTimelineButton.addEventListener("click", this._toggleTimeline ButtonClicked, this); 308 this.toggleTimelineButton.addEventListener("click", this._toggleTimeline ButtonClicked, this);
308 this._panelToolbar.appendToolbarItem(this.toggleTimelineButton); 309 this._panelToolbar.appendToolbarItem(this.toggleTimelineButton);
309 this._updateToggleTimelineButton(false); 310 this._updateToggleTimelineButton(false);
310 311
311 var clearButton = new WebInspector.ToolbarButton(WebInspector.UIString(" Clear recording"), "clear-toolbar-item"); 312 var clearButton = new WebInspector.ToolbarButton(WebInspector.UIString(" Clear recording"), "clear-toolbar-item");
312 clearButton.addEventListener("click", this._onClearButtonClick, this); 313 clearButton.addEventListener("click", this._onClearButtonClick, this);
313 this._panelToolbar.appendToolbarItem(clearButton); 314 this._panelToolbar.appendToolbarItem(clearButton);
314 this._panelToolbar.appendSeparator(); 315 this._panelToolbar.appendSeparator();
315 316
316 this._filterBar = this._createFilterBar(); 317 this._filterBar = this._createFilterBar();
(...skipping 1535 matching lines...) Expand 10 before | Expand all | Expand 10 after
1852 /** 1853 /**
1853 * @override 1854 * @override
1854 * @param {string} value 1855 * @param {string} value
1855 */ 1856 */
1856 handleQueryParam: function(value) 1857 handleQueryParam: function(value)
1857 { 1858 {
1858 WebInspector.TimelinePanel.show(); 1859 WebInspector.TimelinePanel.show();
1859 WebInspector.TimelinePanel.instance()._loadFromURL(value); 1860 WebInspector.TimelinePanel.instance()._loadFromURL(value);
1860 } 1861 }
1861 } 1862 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698