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

Side by Side Diff: chrome/browser/resources/settings/settings_ui/settings_ui.js

Issue 2964293002: CrOS Settings: Add skeleton page for multidevice section. (Closed)
Patch Set: Sync and rebase Created 3 years, 5 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 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
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
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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 listenOnce(this.$.container, ['blur', 'pointerdown'], function() { 262 listenOnce(this.$.container, ['blur', 'pointerdown'], function() {
257 this.$.container.removeAttribute('tabindex'); 263 this.$.container.removeAttribute('tabindex');
258 }.bind(this)); 264 }.bind(this));
259 }, 265 },
260 266
261 /** @private */ 267 /** @private */
262 directionDelegateChanged_: function() { 268 directionDelegateChanged_: function() {
263 this.$.drawer.align = this.directionDelegate.isRtl() ? 'right' : 'left'; 269 this.$.drawer.align = this.directionDelegate.isRtl() ? 'right' : 'left';
264 }, 270 },
265 }); 271 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698