| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org> | 3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org> |
| 4 * Copyright (C) 2011 Google Inc. All rights reserved. | 4 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 _onWindowChanged(event) { | 133 _onWindowChanged(event) { |
| 134 var startTime = Math.max(this._calculator.minimumBoundary(), event.data.star
tTime / 1000); | 134 var startTime = Math.max(this._calculator.minimumBoundary(), event.data.star
tTime / 1000); |
| 135 var endTime = Math.min(this._calculator.maximumBoundary(), event.data.endTim
e / 1000); | 135 var endTime = Math.min(this._calculator.maximumBoundary(), event.data.endTim
e / 1000); |
| 136 this._networkLogView.setWindow(startTime, endTime); | 136 this._networkLogView.setWindow(startTime, endTime); |
| 137 } | 137 } |
| 138 | 138 |
| 139 _createToolbarButtons() { | 139 _createToolbarButtons() { |
| 140 this._panelToolbar.appendToolbarItem(UI.Toolbar.createActionButton(this._tog
gleRecordAction)); | 140 this._panelToolbar.appendToolbarItem(UI.Toolbar.createActionButton(this._tog
gleRecordAction)); |
| 141 | 141 |
| 142 this._clearButton = new UI.ToolbarButton(Common.UIString('Clear'), 'largeico
n-clear'); | 142 this._clearButton = new UI.ToolbarButton(Common.UIString('Clear'), 'largeico
n-clear'); |
| 143 this._clearButton.addEventListener('click', this._onClearButtonClicked, this
); | 143 this._clearButton.addEventListener(UI.ToolbarButton.Events.Click, this._onCl
earButtonClicked, this); |
| 144 this._panelToolbar.appendToolbarItem(this._clearButton); | 144 this._panelToolbar.appendToolbarItem(this._clearButton); |
| 145 this._panelToolbar.appendSeparator(); | 145 this._panelToolbar.appendSeparator(); |
| 146 var recordFilmStripButton = new UI.ToolbarSettingToggle( | 146 var recordFilmStripButton = new UI.ToolbarSettingToggle( |
| 147 this._networkRecordFilmStripSetting, 'largeicon-camera', Common.UIString
('Capture screenshots')); | 147 this._networkRecordFilmStripSetting, 'largeicon-camera', Common.UIString
('Capture screenshots')); |
| 148 this._panelToolbar.appendToolbarItem(recordFilmStripButton); | 148 this._panelToolbar.appendToolbarItem(recordFilmStripButton); |
| 149 | 149 |
| 150 this._panelToolbar.appendToolbarItem(this._filterBar.filterButton()); | 150 this._panelToolbar.appendToolbarItem(this._filterBar.filterButton()); |
| 151 this._panelToolbar.appendSeparator(); | 151 this._panelToolbar.appendSeparator(); |
| 152 | 152 |
| 153 this._panelToolbar.appendText(Common.UIString('View:')); | 153 this._panelToolbar.appendText(Common.UIString('View:')); |
| (...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 724 * @param {string} actionId | 724 * @param {string} actionId |
| 725 * @return {boolean} | 725 * @return {boolean} |
| 726 */ | 726 */ |
| 727 handleAction(context, actionId) { | 727 handleAction(context, actionId) { |
| 728 var panel = UI.context.flavor(Network.NetworkPanel); | 728 var panel = UI.context.flavor(Network.NetworkPanel); |
| 729 console.assert(panel && panel instanceof Network.NetworkPanel); | 729 console.assert(panel && panel instanceof Network.NetworkPanel); |
| 730 panel._toggleRecording(); | 730 panel._toggleRecording(); |
| 731 return true; | 731 return true; |
| 732 } | 732 } |
| 733 }; | 733 }; |
| OLD | NEW |