| 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 this._panelToolbar.appendToolbarItem(new UI.ToolbarSettingCheckbox( | 178 this._panelToolbar.appendToolbarItem(new UI.ToolbarSettingCheckbox( |
| 179 this._preserveLogSetting, Common.UIString('Do not clear log on page relo
ad / navigation'), | 179 this._preserveLogSetting, Common.UIString('Do not clear log on page relo
ad / navigation'), |
| 180 Common.UIString('Preserve log'))); | 180 Common.UIString('Preserve log'))); |
| 181 | 181 |
| 182 this._disableCacheCheckbox = new UI.ToolbarSettingCheckbox( | 182 this._disableCacheCheckbox = new UI.ToolbarSettingCheckbox( |
| 183 Common.moduleSetting('cacheDisabled'), Common.UIString('Disable cache (w
hile DevTools is open)'), | 183 Common.moduleSetting('cacheDisabled'), Common.UIString('Disable cache (w
hile DevTools is open)'), |
| 184 Common.UIString('Disable cache')); | 184 Common.UIString('Disable cache')); |
| 185 this._panelToolbar.appendToolbarItem(this._disableCacheCheckbox); | 185 this._panelToolbar.appendToolbarItem(this._disableCacheCheckbox); |
| 186 | 186 |
| 187 this._panelToolbar.appendSeparator(); | 187 this._panelToolbar.appendSeparator(); |
| 188 this._panelToolbar.appendToolbarItem(NetworkConditions.NetworkConditionsSele
ctor.createOfflineToolbarCheckbox()); | 188 this._panelToolbar.appendToolbarItem(MobileThrottling.NetworkConditionsSelec
tor.createOfflineToolbarCheckbox()); |
| 189 this._panelToolbar.appendToolbarItem(this._createNetworkConditionsSelect()); | 189 this._panelToolbar.appendToolbarItem(this._createNetworkConditionsSelect()); |
| 190 | 190 |
| 191 this._panelToolbar.appendToolbarItem(new UI.ToolbarItem(this._progressBarCon
tainer)); | 191 this._panelToolbar.appendToolbarItem(new UI.ToolbarItem(this._progressBarCon
tainer)); |
| 192 } | 192 } |
| 193 | 193 |
| 194 /** | 194 /** |
| 195 * @return {!UI.ToolbarComboBox} | 195 * @return {!UI.ToolbarComboBox} |
| 196 */ | 196 */ |
| 197 _createNetworkConditionsSelect() { | 197 _createNetworkConditionsSelect() { |
| 198 var toolbarItem = new UI.ToolbarComboBox(null); | 198 var toolbarItem = new UI.ToolbarComboBox(null); |
| 199 toolbarItem.setMaxWidth(140); | 199 toolbarItem.setMaxWidth(140); |
| 200 NetworkConditions.NetworkConditionsSelector.decorateSelect(toolbarItem.selec
tElement()); | 200 MobileThrottling.NetworkConditionsSelector.decorateSelect(toolbarItem.select
Element()); |
| 201 return toolbarItem; | 201 return toolbarItem; |
| 202 } | 202 } |
| 203 | 203 |
| 204 _toggleRecording() { | 204 _toggleRecording() { |
| 205 if (!this._preserveLogSetting.get() && !this._toggleRecordAction.toggled()) | 205 if (!this._preserveLogSetting.get() && !this._toggleRecordAction.toggled()) |
| 206 this._reset(); | 206 this._reset(); |
| 207 this._toggleRecord(!this._toggleRecordAction.toggled()); | 207 this._toggleRecord(!this._toggleRecordAction.toggled()); |
| 208 } | 208 } |
| 209 | 209 |
| 210 /** | 210 /** |
| (...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 712 * @param {string} actionId | 712 * @param {string} actionId |
| 713 * @return {boolean} | 713 * @return {boolean} |
| 714 */ | 714 */ |
| 715 handleAction(context, actionId) { | 715 handleAction(context, actionId) { |
| 716 var panel = UI.context.flavor(Network.NetworkPanel); | 716 var panel = UI.context.flavor(Network.NetworkPanel); |
| 717 console.assert(panel && panel instanceof Network.NetworkPanel); | 717 console.assert(panel && panel instanceof Network.NetworkPanel); |
| 718 panel._toggleRecording(); | 718 panel._toggleRecording(); |
| 719 return true; | 719 return true; |
| 720 } | 720 } |
| 721 }; | 721 }; |
| OLD | NEW |