OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |