OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 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 * @fileoverview | 6 * @fileoverview |
7 * 'settings-ui' implements the UI for the Settings page. | 7 * 'settings-ui' implements the UI for the Settings page. |
8 * | 8 * |
9 * Example: | 9 * Example: |
10 * | 10 * |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 loadTimeData.getString('controlledSettingRecommendedMatches'), | 94 loadTimeData.getString('controlledSettingRecommendedMatches'), |
95 controlledSettingRecommendedDiffers: | 95 controlledSettingRecommendedDiffers: |
96 loadTimeData.getString('controlledSettingRecommendedDiffers'), | 96 loadTimeData.getString('controlledSettingRecommendedDiffers'), |
97 // <if expr="chromeos"> | 97 // <if expr="chromeos"> |
98 controlledSettingShared: | 98 controlledSettingShared: |
99 loadTimeData.getString('controlledSettingShared'), | 99 loadTimeData.getString('controlledSettingShared'), |
100 controlledSettingOwner: loadTimeData.getString('controlledSettingOwner'), | 100 controlledSettingOwner: loadTimeData.getString('controlledSettingOwner'), |
101 // </if> | 101 // </if> |
102 }; | 102 }; |
103 | 103 |
| 104 // <if expr="chromeos"> |
| 105 CrOncStrings = { |
| 106 OncTypeCellular: loadTimeData.getString('OncTypeCellular'), |
| 107 OncTypeEthernet: loadTimeData.getString('OncTypeEthernet'), |
| 108 OncTypeVPN: loadTimeData.getString('OncTypeVPN'), |
| 109 OncTypeWiFi: loadTimeData.getString('OncTypeWiFi'), |
| 110 OncTypeWiMAX: loadTimeData.getString('OncTypeWiMAX'), |
| 111 networkDisabled: loadTimeData.getString('networkDisabled'), |
| 112 networkListItemConnected: |
| 113 loadTimeData.getString('networkListItemConnected'), |
| 114 networkListItemConnecting: |
| 115 loadTimeData.getString('networkListItemConnecting'), |
| 116 networkListItemNotConnected: |
| 117 loadTimeData.getString('networkListItemNotConnected'), |
| 118 vpnNameTemplate: loadTimeData.getString('vpnNameTemplate'), |
| 119 }; |
| 120 // </if> |
| 121 |
104 if (loadTimeData.getBoolean('isGuest')) { | 122 if (loadTimeData.getBoolean('isGuest')) { |
105 this.pageVisibility_ = { | 123 this.pageVisibility_ = { |
106 people: false, | 124 people: false, |
107 onStartup: false, | 125 onStartup: false, |
108 reset: false, | 126 reset: false, |
109 // <if expr="not chromeos"> | 127 // <if expr="not chromeos"> |
110 appearance: false, | 128 appearance: false, |
111 defaultBrowser: false, | 129 defaultBrowser: false, |
112 advancedSettings: false, | 130 advancedSettings: false, |
113 // </if> | 131 // </if> |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 onMenuButtonTap_: function() { | 226 onMenuButtonTap_: function() { |
209 this.$.drawer.toggle(); | 227 this.$.drawer.toggle(); |
210 }, | 228 }, |
211 | 229 |
212 /** @private */ | 230 /** @private */ |
213 directionDelegateChanged_: function() { | 231 directionDelegateChanged_: function() { |
214 this.$.drawer.align = this.directionDelegate.isRtl() ? | 232 this.$.drawer.align = this.directionDelegate.isRtl() ? |
215 'right' : 'left'; | 233 'right' : 'left'; |
216 }, | 234 }, |
217 }); | 235 }); |
OLD | NEW |