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

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

Issue 1575543003: Settings People Revamp: Implement parts of ChromeOS Change Picture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix camera presence observer Created 4 years, 11 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-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 * Example: 9 * Example:
10 * 10 *
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // code to not include HTML in the status messages. 88 // code to not include HTML in the status messages.
89 this.$.syncStatusText.innerHTML = syncStatus.statusText; 89 this.$.syncStatusText.innerHTML = syncStatus.statusText;
90 }, 90 },
91 91
92 /** @private */ 92 /** @private */
93 onActionLinkTap_: function() { 93 onActionLinkTap_: function() {
94 settings.SyncPrivateApi.showSetupUI(); 94 settings.SyncPrivateApi.showSetupUI();
95 }, 95 },
96 96
97 /** @private */ 97 /** @private */
98 onManageProfileTap_: function() { 98 onPictureTap_: function() {
99 <if expr="chromeos">
100 this.$.pages.setSubpageChain(['changePicture']);
101 </if>
99 <if expr="not chromeos"> 102 <if expr="not chromeos">
100 this.$.pages.setSubpageChain(['manageProfile']); 103 this.$.pages.setSubpageChain(['manageProfile']);
101 </if> 104 </if>
102 // TODO(tommycli): Implement ChromeOS version. January 2016.
103 }, 105 },
104 106
107 <if expr="not chromeos">
108 /** @private */
109 onProfileNameTap_: function() {
110 this.$.pages.setSubpageChain(['manageProfile']);
111 },
112 </if>
113
105 /** @private */ 114 /** @private */
106 onSigninTap_: function() { 115 onSigninTap_: function() {
107 settings.SyncPrivateApi.startSignIn(); 116 settings.SyncPrivateApi.startSignIn();
108 }, 117 },
109 118
110 /** @private */ 119 /** @private */
111 onDisconnectTap_: function() { 120 onDisconnectTap_: function() {
112 this.$.disconnectDialog.open(); 121 this.$.disconnectDialog.open();
113 }, 122 },
114 123
(...skipping 30 matching lines...) Expand all
145 154
146 /** 155 /**
147 * @private 156 * @private
148 * @return {boolean} 157 * @return {boolean}
149 */ 158 */
150 isAdvancedSyncSettingsVisible_: function(syncStatus) { 159 isAdvancedSyncSettingsVisible_: function(syncStatus) {
151 return syncStatus && syncStatus.signedIn && !syncStatus.managed && 160 return syncStatus && syncStatus.signedIn && !syncStatus.managed &&
152 syncStatus.syncSystemEnabled; 161 syncStatus.syncSystemEnabled;
153 }, 162 },
154 }); 163 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698