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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/network/NetworkConfigView.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 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @constructor 6 * @constructor
7 * @extends {WebInspector.VBox} 7 * @extends {WebInspector.VBox}
8 */ 8 */
9 WebInspector.NetworkConfigView = function() 9 WebInspector.NetworkConfigView = function()
10 { 10 {
(...skipping 23 matching lines...) Expand all
34 34
35 _createCacheSection: function() 35 _createCacheSection: function()
36 { 36 {
37 var section = this._createSection(WebInspector.UIString("Disk cache"), " network-config-disable-cache"); 37 var section = this._createSection(WebInspector.UIString("Disk cache"), " network-config-disable-cache");
38 section.appendChild(WebInspector.SettingsUI.createSettingCheckbox(WebIns pector.UIString("Disable cache"), WebInspector.moduleSetting("cacheDisabled"), t rue)); 38 section.appendChild(WebInspector.SettingsUI.createSettingCheckbox(WebIns pector.UIString("Disable cache"), WebInspector.moduleSetting("cacheDisabled"), t rue));
39 }, 39 },
40 40
41 _createNetworkThrottlingSection: function() 41 _createNetworkThrottlingSection: function()
42 { 42 {
43 var section = this._createSection(WebInspector.UIString("Network throttl ing"), "network-config-throttling"); 43 var section = this._createSection(WebInspector.UIString("Network throttl ing"), "network-config-throttling");
44 new WebInspector.NetworkConditionsSelector(/** @type {!HTMLSelectElement } */(section.createChild("select", "chrome-select"))); 44 WebInspector.NetworkConditionsSelector.decorateSelect(/** @type {!HTMLSe lectElement} */(section.createChild("select", "chrome-select")));
45 }, 45 },
46 46
47 _createUserAgentSection: function() 47 _createUserAgentSection: function()
48 { 48 {
49 var section = this._createSection(WebInspector.UIString("User agent"), " network-config-ua"); 49 var section = this._createSection(WebInspector.UIString("User agent"), " network-config-ua");
50 var checkboxLabel = createCheckboxLabel(WebInspector.UIString("Select au tomatically"), true); 50 var checkboxLabel = createCheckboxLabel(WebInspector.UIString("Select au tomatically"), true);
51 section.appendChild(checkboxLabel); 51 section.appendChild(checkboxLabel);
52 this._autoCheckbox = checkboxLabel.checkboxElement; 52 this._autoCheckbox = checkboxLabel.checkboxElement;
53 this._autoCheckbox.addEventListener("change", this._userAgentTypeChanged .bind(this)); 53 this._autoCheckbox.addEventListener("change", this._userAgentTypeChanged .bind(this));
54 54
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 * @param {!WebInspector.Context} context 224 * @param {!WebInspector.Context} context
225 * @param {string} actionId 225 * @param {string} actionId
226 * @return {boolean} 226 * @return {boolean}
227 */ 227 */
228 handleAction: function(context, actionId) 228 handleAction: function(context, actionId)
229 { 229 {
230 WebInspector.inspectorView.showViewInDrawer("network.config"); 230 WebInspector.inspectorView.showViewInDrawer("network.config");
231 return true; 231 return true;
232 } 232 }
233 } 233 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698