| 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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 | 290 |
| 291 const perspectiveSetting = | 291 const perspectiveSetting = |
| 292 Common.settings.createSetting('timelinePerspective', Timeline.TimelinePa
nel.Perspectives.Load); | 292 Common.settings.createSetting('timelinePerspective', Timeline.TimelinePa
nel.Perspectives.Load); |
| 293 | 293 |
| 294 // Record | 294 // Record |
| 295 if (Runtime.experiments.isEnabled('timelineLandingPage')) { | 295 if (Runtime.experiments.isEnabled('timelineLandingPage')) { |
| 296 const newButton = new UI.ToolbarButton( | 296 const newButton = new UI.ToolbarButton( |
| 297 Common.UIString('New recording'), 'largeicon-add', Common.UIString('Ne
w')); | 297 Common.UIString('New recording'), 'largeicon-add', Common.UIString('Ne
w')); |
| 298 newButton.addEventListener(UI.ToolbarButton.Events.Click, this._clear, thi
s); | 298 newButton.addEventListener(UI.ToolbarButton.Events.Click, this._clear, thi
s); |
| 299 this._panelToolbar.appendToolbarItem(newButton); | 299 this._panelToolbar.appendToolbarItem(newButton); |
| 300 this._panelToolbar.appendToolbarItem(UI.Toolbar.createActionButtonForId('m
ain.reload')); |
| 300 this._panelToolbar.appendToolbarItem(UI.Toolbar.createActionButton(this._t
oggleRecordAction)); | 301 this._panelToolbar.appendToolbarItem(UI.Toolbar.createActionButton(this._t
oggleRecordAction)); |
| 301 this._panelToolbar.appendToolbarItem(UI.Toolbar.createActionButtonForId('m
ain.reload')); | |
| 302 } else if (Runtime.experiments.isEnabled('timelineRecordingPerspectives') && | 302 } else if (Runtime.experiments.isEnabled('timelineRecordingPerspectives') && |
| 303 perspectiveSetting.get() === Timeline.TimelinePanel.Perspectives.Load) { | 303 perspectiveSetting.get() === Timeline.TimelinePanel.Perspectives.Load) { |
| 304 const reloadButton = new UI.ToolbarButton(Common.UIString('Record & Reload
'), 'largeicon-refresh'); | 304 const reloadButton = new UI.ToolbarButton(Common.UIString('Record & Reload
'), 'largeicon-refresh'); |
| 305 reloadButton.addEventListener(UI.ToolbarButton.Events.Click, () => SDK.tar
getManager.reloadPage()); | 305 reloadButton.addEventListener(UI.ToolbarButton.Events.Click, () => SDK.tar
getManager.reloadPage()); |
| 306 this._panelToolbar.appendToolbarItem(reloadButton); | 306 this._panelToolbar.appendToolbarItem(reloadButton); |
| 307 } else { | 307 } else { |
| 308 this._panelToolbar.appendToolbarItem(UI.Toolbar.createActionButton(this._t
oggleRecordAction)); | 308 this._panelToolbar.appendToolbarItem(UI.Toolbar.createActionButton(this._t
oggleRecordAction)); |
| 309 } | 309 } |
| 310 | 310 |
| 311 // Clear | 311 // Clear |
| (...skipping 1783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2095 } | 2095 } |
| 2096 | 2096 |
| 2097 /** | 2097 /** |
| 2098 * @override | 2098 * @override |
| 2099 * @param {!SDK.Target} target | 2099 * @param {!SDK.Target} target |
| 2100 */ | 2100 */ |
| 2101 targetRemoved(target) { | 2101 targetRemoved(target) { |
| 2102 this._targets.remove(target, true); | 2102 this._targets.remove(target, true); |
| 2103 } | 2103 } |
| 2104 }; | 2104 }; |
| OLD | NEW |