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

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

Issue 2604883002: DevTools: namespace globals (Closed)
Patch Set: address CL feedback Created 3 years, 11 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 * @unrestricted 5 * @unrestricted
6 */ 6 */
7 Network.NetworkConfigView = class extends UI.VBox { 7 Network.NetworkConfigView = class extends UI.VBox {
8 constructor() { 8 constructor() {
9 super(true); 9 super(true);
10 this.registerRequiredCSS('network/networkConfigView.css'); 10 this.registerRequiredCSS('network/networkConfigView.css');
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 } 108 }
109 109
110 _createNetworkThrottlingSection() { 110 _createNetworkThrottlingSection() {
111 var section = this._createSection(Common.UIString('Network throttling'), 'ne twork-config-throttling'); 111 var section = this._createSection(Common.UIString('Network throttling'), 'ne twork-config-throttling');
112 Components.NetworkConditionsSelector.decorateSelect( 112 Components.NetworkConditionsSelector.decorateSelect(
113 /** @type {!HTMLSelectElement} */ (section.createChild('select', 'chrome -select'))); 113 /** @type {!HTMLSelectElement} */ (section.createChild('select', 'chrome -select')));
114 } 114 }
115 115
116 _createUserAgentSection() { 116 _createUserAgentSection() {
117 var section = this._createSection(Common.UIString('User agent'), 'network-co nfig-ua'); 117 var section = this._createSection(Common.UIString('User agent'), 'network-co nfig-ua');
118 var checkboxLabel = createCheckboxLabel(Common.UIString('Select automaticall y'), true); 118 var checkboxLabel = UI.createCheckboxLabel(Common.UIString('Select automatic ally'), true);
119 section.appendChild(checkboxLabel); 119 section.appendChild(checkboxLabel);
120 this._autoCheckbox = checkboxLabel.checkboxElement; 120 this._autoCheckbox = checkboxLabel.checkboxElement;
121 this._autoCheckbox.addEventListener('change', this._userAgentTypeChanged.bin d(this)); 121 this._autoCheckbox.addEventListener('change', this._userAgentTypeChanged.bin d(this));
122 122
123 this._customUserAgentSetting = Common.settings.createSetting('customUserAgen t', ''); 123 this._customUserAgentSetting = Common.settings.createSetting('customUserAgen t', '');
124 this._customUserAgentSetting.addChangeListener(this._customUserAgentChanged, this); 124 this._customUserAgentSetting.addChangeListener(this._customUserAgentChanged, this);
125 125
126 this._customUserAgent = section.createChild('div', 'network-config-ua-custom '); 126 this._customUserAgent = section.createChild('div', 'network-config-ua-custom ');
127 this._customSelectAndInput = Network.NetworkConfigView.createUserAgentSelect AndInput(); 127 this._customSelectAndInput = Network.NetworkConfigView.createUserAgentSelect AndInput();
128 this._customSelectAndInput.select.classList.add('chrome-select'); 128 this._customSelectAndInput.select.classList.add('chrome-select');
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 value: 'UCWEB/2.0 (iPad; U; CPU OS 7_1 like Mac OS X; en; iPad3,6) U2/1. 0.0 UCBrowser/9.3.1.344' 350 value: 'UCWEB/2.0 (iPad; U; CPU OS 7_1 like Mac OS X; en; iPad3,6) U2/1. 0.0 UCBrowser/9.3.1.344'
351 }, 351 },
352 { 352 {
353 title: 'UC Browser \u2014 Windows Phone', 353 title: 'UC Browser \u2014 Windows Phone',
354 value: 354 value:
355 'NokiaX2-02/2.0 (11.79) Profile/MIDP-2.1 Configuration/CLDC-1.1 Mozi lla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2;.NET CLR 2.0.5 0727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2) U CBrowser8.4.0.159/70/352' 355 'NokiaX2-02/2.0 (11.79) Profile/MIDP-2.1 Configuration/CLDC-1.1 Mozi lla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2;.NET CLR 2.0.5 0727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2) U CBrowser8.4.0.159/70/352'
356 } 356 }
357 ] 357 ]
358 } 358 }
359 ]; 359 ];
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698