| 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-people-page' is the settings page containing sign-in settings. | 7 * 'settings-people-page' is the settings page containing sign-in settings. |
| 8 */ | 8 */ |
| 9 Polymer({ | 9 Polymer({ |
| 10 is: 'settings-people-page', | 10 is: 'settings-people-page', |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 }, | 138 }, |
| 139 readOnly: true, | 139 readOnly: true, |
| 140 }, | 140 }, |
| 141 | 141 |
| 142 /** @private */ | 142 /** @private */ |
| 143 showEasyUnlockTurnOffDialog_: { | 143 showEasyUnlockTurnOffDialog_: { |
| 144 type: Boolean, | 144 type: Boolean, |
| 145 value: false, | 145 value: false, |
| 146 }, | 146 }, |
| 147 // </if> | 147 // </if> |
| 148 |
| 149 /** @private {!Map<string, string>} */ |
| 150 focusConfig_: { |
| 151 type: Object, |
| 152 value: function() { |
| 153 var map = new Map(); |
| 154 map.set( |
| 155 settings.Route.SYNC.path, '#sync-status .subpage-arrow'); |
| 156 // <if expr="not chromeos"> |
| 157 map.set( |
| 158 settings.Route.MANAGE_PROFILE.path, |
| 159 '#picture-subpage-trigger .subpage-arrow'); |
| 160 // </if> |
| 161 // <if expr="chromeos"> |
| 162 map.set( |
| 163 settings.Route.CHANGE_PICTURE.path, |
| 164 '#picture-subpage-trigger .subpage-arrow'); |
| 165 map.set( |
| 166 settings.Route.LOCK_SCREEN.path, '#lockScreenSubpageTrigger'); |
| 167 map.set( |
| 168 settings.Route.ACCOUNTS.path, |
| 169 '#manage-other-people-subpage-trigger .subpage-arrow'); |
| 170 // </if> |
| 171 return map; |
| 172 }, |
| 173 }, |
| 148 }, | 174 }, |
| 149 | 175 |
| 150 /** @override */ | 176 /** @override */ |
| 151 attached: function() { | 177 attached: function() { |
| 152 var profileInfoProxy = settings.ProfileInfoBrowserProxyImpl.getInstance(); | 178 var profileInfoProxy = settings.ProfileInfoBrowserProxyImpl.getInstance(); |
| 153 profileInfoProxy.getProfileInfo().then(this.handleProfileInfo_.bind(this)); | 179 profileInfoProxy.getProfileInfo().then(this.handleProfileInfo_.bind(this)); |
| 154 this.addWebUIListener('profile-info-changed', | 180 this.addWebUIListener('profile-info-changed', |
| 155 this.handleProfileInfo_.bind(this)); | 181 this.handleProfileInfo_.bind(this)); |
| 156 | 182 |
| 157 profileInfoProxy.getProfileManagesSupervisedUsers().then( | 183 profileInfoProxy.getProfileManagesSupervisedUsers().then( |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 517 | 543 |
| 518 /** | 544 /** |
| 519 * @param {!settings.SyncStatus} syncStatus | 545 * @param {!settings.SyncStatus} syncStatus |
| 520 * @return {boolean} Whether to show the "Sign in to Chrome" button. | 546 * @return {boolean} Whether to show the "Sign in to Chrome" button. |
| 521 * @private | 547 * @private |
| 522 */ | 548 */ |
| 523 showSignin_: function(syncStatus) { | 549 showSignin_: function(syncStatus) { |
| 524 return !!syncStatus.signinAllowed && !syncStatus.signedIn; | 550 return !!syncStatus.signinAllowed && !syncStatus.signedIn; |
| 525 }, | 551 }, |
| 526 }); | 552 }); |
| OLD | NEW |