| 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 } | 170 } |
| 171 }, | 171 }, |
| 172 | 172 |
| 173 /** | 173 /** |
| 174 * @return {!WebInspector.ToolbarComboBox} | 174 * @return {!WebInspector.ToolbarComboBox} |
| 175 */ | 175 */ |
| 176 _createNetworkConditionsSelect: function() | 176 _createNetworkConditionsSelect: function() |
| 177 { | 177 { |
| 178 var toolbarItem = new WebInspector.ToolbarComboBox(null); | 178 var toolbarItem = new WebInspector.ToolbarComboBox(null); |
| 179 toolbarItem.setMaxWidth(140); | 179 toolbarItem.setMaxWidth(140); |
| 180 new WebInspector.NetworkConditionsSelector(toolbarItem.selectElement()); | 180 WebInspector.NetworkConditionsSelector.decorateSelect(toolbarItem.select
Element()); |
| 181 return toolbarItem; | 181 return toolbarItem; |
| 182 }, | 182 }, |
| 183 | 183 |
| 184 _toggleRecording: function() | 184 _toggleRecording: function() |
| 185 { | 185 { |
| 186 if (!this._preserveLogCheckbox.checked() && !this._toggleRecordAction.to
ggled()) | 186 if (!this._preserveLogCheckbox.checked() && !this._toggleRecordAction.to
ggled()) |
| 187 this._reset(); | 187 this._reset(); |
| 188 this._toggleRecord(!this._toggleRecordAction.toggled()); | 188 this._toggleRecord(!this._toggleRecordAction.toggled()); |
| 189 }, | 189 }, |
| 190 | 190 |
| (...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 791 * @return {boolean} | 791 * @return {boolean} |
| 792 */ | 792 */ |
| 793 handleAction: function(context, actionId) | 793 handleAction: function(context, actionId) |
| 794 { | 794 { |
| 795 var panel = WebInspector.context.flavor(WebInspector.NetworkPanel); | 795 var panel = WebInspector.context.flavor(WebInspector.NetworkPanel); |
| 796 console.assert(panel && panel instanceof WebInspector.NetworkPanel); | 796 console.assert(panel && panel instanceof WebInspector.NetworkPanel); |
| 797 panel._toggleRecording(); | 797 panel._toggleRecording(); |
| 798 return true; | 798 return true; |
| 799 } | 799 } |
| 800 } | 800 } |
| OLD | NEW |