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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 | 50 |
51 /** | 51 /** |
52 * @private {!GuestModePageVisibility} | 52 * @private {!GuestModePageVisibility} |
53 */ | 53 */ |
54 pageVisibility_: {type: Object, value: settings.pageVisibility}, | 54 pageVisibility_: {type: Object, value: settings.pageVisibility}, |
55 | 55 |
56 /** @private */ | 56 /** @private */ |
57 showAndroidApps_: Boolean, | 57 showAndroidApps_: Boolean, |
58 | 58 |
59 /** @private */ | 59 /** @private */ |
| 60 showMultidevice_: Boolean, |
| 61 |
| 62 /** @private */ |
60 havePlayStoreApp_: Boolean, | 63 havePlayStoreApp_: Boolean, |
61 | 64 |
62 /** @private */ | 65 /** @private */ |
63 lastSearchQuery_: { | 66 lastSearchQuery_: { |
64 type: String, | 67 type: String, |
65 value: '', | 68 value: '', |
66 } | 69 } |
67 }, | 70 }, |
68 | 71 |
69 listeners: { | 72 listeners: { |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 networkListItemConnectingTo: | 124 networkListItemConnectingTo: |
122 loadTimeData.getString('networkListItemConnectingTo'), | 125 loadTimeData.getString('networkListItemConnectingTo'), |
123 networkListItemNotConnected: | 126 networkListItemNotConnected: |
124 loadTimeData.getString('networkListItemNotConnected'), | 127 loadTimeData.getString('networkListItemNotConnected'), |
125 vpnNameTemplate: loadTimeData.getString('vpnNameTemplate'), | 128 vpnNameTemplate: loadTimeData.getString('vpnNameTemplate'), |
126 }; | 129 }; |
127 // </if> | 130 // </if> |
128 | 131 |
129 this.showAndroidApps_ = loadTimeData.valueExists('androidAppsVisible') && | 132 this.showAndroidApps_ = loadTimeData.valueExists('androidAppsVisible') && |
130 loadTimeData.getBoolean('androidAppsVisible'); | 133 loadTimeData.getBoolean('androidAppsVisible'); |
| 134 this.showMultidevice_ = |
| 135 loadTimeData.valueExists('enableMultideviceSettings') && |
| 136 loadTimeData.getBoolean('enableMultideviceSettings'); |
131 this.havePlayStoreApp_ = loadTimeData.valueExists('havePlayStoreApp') && | 137 this.havePlayStoreApp_ = loadTimeData.valueExists('havePlayStoreApp') && |
132 loadTimeData.getBoolean('havePlayStoreApp'); | 138 loadTimeData.getBoolean('havePlayStoreApp'); |
133 | 139 |
134 this.addEventListener('show-container', function() { | 140 this.addEventListener('show-container', function() { |
135 this.$.container.style.visibility = 'visible'; | 141 this.$.container.style.visibility = 'visible'; |
136 }.bind(this)); | 142 }.bind(this)); |
137 | 143 |
138 this.addEventListener('hide-container', function() { | 144 this.addEventListener('hide-container', function() { |
139 this.$.container.style.visibility = 'hidden'; | 145 this.$.container.style.visibility = 'hidden'; |
140 }.bind(this)); | 146 }.bind(this)); |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 listenOnce(this.$.container, ['blur', 'pointerdown'], function() { | 263 listenOnce(this.$.container, ['blur', 'pointerdown'], function() { |
258 this.$.container.removeAttribute('tabindex'); | 264 this.$.container.removeAttribute('tabindex'); |
259 }.bind(this)); | 265 }.bind(this)); |
260 }, | 266 }, |
261 | 267 |
262 /** @private */ | 268 /** @private */ |
263 directionDelegateChanged_: function() { | 269 directionDelegateChanged_: function() { |
264 this.$.drawer.align = this.directionDelegate.isRtl() ? 'right' : 'left'; | 270 this.$.drawer.align = this.directionDelegate.isRtl() ? 'right' : 'left'; |
265 }, | 271 }, |
266 }); | 272 }); |
OLD | NEW |