Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 /** @type {!Element} */ | 10 /** @type {!Element} */ |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 104 return section.createChild('div', 'network-config-fields'); | 104 return section.createChild('div', 'network-config-fields'); |
| 105 } | 105 } |
| 106 | 106 |
| 107 _createCacheSection() { | 107 _createCacheSection() { |
| 108 var section = this._createSection(Common.UIString('Caching'), 'network-confi g-disable-cache'); | 108 var section = this._createSection(Common.UIString('Caching'), 'network-confi g-disable-cache'); |
| 109 section.appendChild(UI.SettingsUI.createSettingCheckbox( | 109 section.appendChild(UI.SettingsUI.createSettingCheckbox( |
| 110 Common.UIString('Disable cache'), Common.moduleSetting('cacheDisabled'), true)); | 110 Common.UIString('Disable cache'), Common.moduleSetting('cacheDisabled'), true)); |
| 111 } | 111 } |
| 112 | 112 |
| 113 _createNetworkThrottlingSection() { | 113 _createNetworkThrottlingSection() { |
| 114 var section = this._createSection(Common.UIString('Network throttling'), 'ne twork-config-throttling'); | 114 var section = this._createSection(Common.UIString('Mobile throttling'), 'net work-config-throttling'); |
|
dgozman
2017/06/13 01:47:08
Drop mobile here as well?
chenwilliam
2017/06/13 21:54:51
Done.
| |
| 115 MobileThrottling.NetworkConditionsSelector.decorateSelect( | 115 MobileThrottling.ThrottlingSelector.decorateSelect( |
| 116 /** @type {!HTMLSelectElement} */ (section.createChild('select', 'chrome -select'))); | 116 /** @type {!HTMLSelectElement} */ (section.createChild('select', 'chrome -select'))); |
| 117 } | 117 } |
| 118 | 118 |
| 119 _createUserAgentSection() { | 119 _createUserAgentSection() { |
| 120 var section = this._createSection(Common.UIString('User agent'), 'network-co nfig-ua'); | 120 var section = this._createSection(Common.UIString('User agent'), 'network-co nfig-ua'); |
| 121 var checkboxLabel = UI.CheckboxLabel.create(Common.UIString('Select automati cally'), true); | 121 var checkboxLabel = UI.CheckboxLabel.create(Common.UIString('Select automati cally'), true); |
| 122 section.appendChild(checkboxLabel); | 122 section.appendChild(checkboxLabel); |
| 123 this._autoCheckbox = checkboxLabel.checkboxElement; | 123 this._autoCheckbox = checkboxLabel.checkboxElement; |
| 124 this._autoCheckbox.addEventListener('change', this._userAgentTypeChanged.bin d(this)); | 124 this._autoCheckbox.addEventListener('change', this._userAgentTypeChanged.bin d(this)); |
| 125 | 125 |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 353 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' | 353 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' |
| 354 }, | 354 }, |
| 355 { | 355 { |
| 356 title: 'UC Browser \u2014 Windows Phone', | 356 title: 'UC Browser \u2014 Windows Phone', |
| 357 value: | 357 value: |
| 358 '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' | 358 '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' |
| 359 } | 359 } |
| 360 ] | 360 ] |
| 361 } | 361 } |
| 362 ]; | 362 ]; |
| OLD | NEW |