Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(315)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js

Issue 1718213003: [DevTools] Add "show throttling" to device mode instead of "configure network". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698