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

Side by Side Diff: chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.js

Issue 12560002: Change var blah_blah -> blahBlah. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 /** @const */ STEP_SIGNIN = 'signin'; 5 /** @const */ STEP_SIGNIN = 'signin';
6 /** @const */ STEP_WORKING = 'working'; 6 /** @const */ STEP_WORKING = 'working';
7 /** @const */ STEP_ERROR = 'error'; 7 /** @const */ STEP_ERROR = 'error';
8 /** @const */ STEP_EXPLAIN = 'explain'; 8 /** @const */ STEP_EXPLAIN = 'explain';
9 /** @const */ STEP_SUCCESS = 'success'; 9 /** @const */ STEP_SUCCESS = 'success';
10 10
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 }, 157 },
158 158
159 /** 159 /**
160 * Changes the auto-enrollment flag and updates the UI. 160 * Changes the auto-enrollment flag and updates the UI.
161 */ 161 */
162 setIsAutoEnrollment: function(is_auto_enrollment) { 162 setIsAutoEnrollment: function(is_auto_enrollment) {
163 this.isAutoEnrollment_ = is_auto_enrollment; 163 this.isAutoEnrollment_ = is_auto_enrollment;
164 // The cancel button is not available during auto-enrollment. 164 // The cancel button is not available during auto-enrollment.
165 var cancel = this.isAutoEnrollment_ ? null : 'cancel'; 165 var cancel = this.isAutoEnrollment_ ? null : 'cancel';
166 // During auto-enrollment the user must try again from the error screen. 166 // During auto-enrollment the user must try again from the error screen.
167 var error_cancel = this.isAutoEnrollment_ ? 'try-again' : 'cancel'; 167 var errorCancel = this.isAutoEnrollment_ ? 'try-again' : 'cancel';
168 this.steps_ = [ 168 this.steps_ = [
169 { name: STEP_SIGNIN, 169 { name: STEP_SIGNIN,
170 button: cancel }, 170 button: cancel },
171 { name: STEP_WORKING, 171 { name: STEP_WORKING,
172 button: cancel }, 172 button: cancel },
173 { name: STEP_ERROR, 173 { name: STEP_ERROR,
174 button: error_cancel, 174 button: errorCancel,
175 focusButton: this.isAutoEnrollment_ }, 175 focusButton: this.isAutoEnrollment_ },
176 { name: STEP_EXPLAIN, 176 { name: STEP_EXPLAIN,
177 button: 'explain', 177 button: 'explain',
178 focusButton: true }, 178 focusButton: true },
179 { name: STEP_SUCCESS, 179 { name: STEP_SUCCESS,
180 button: 'done', 180 button: 'done',
181 focusButton: true }, 181 focusButton: true },
182 ]; 182 ];
183 183
184 var links = document.querySelectorAll('.oauth-enroll-explain-link'); 184 var links = document.querySelectorAll('.oauth-enroll-explain-link');
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 var msg = m.data; 319 var msg = m.data;
320 if (msg.method == 'completeLogin' && this.isSigninMessage_(m)) 320 if (msg.method == 'completeLogin' && this.isSigninMessage_(m))
321 chrome.send('oauthEnrollCompleteLogin', [msg.email, msg.password]); 321 chrome.send('oauthEnrollCompleteLogin', [msg.email, msg.password]);
322 } 322 }
323 }; 323 };
324 324
325 return { 325 return {
326 OAuthEnrollmentScreen: OAuthEnrollmentScreen 326 OAuthEnrollmentScreen: OAuthEnrollmentScreen
327 }; 327 };
328 }); 328 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/login/oobe.js ('k') | chrome/browser/resources/chromeos/login/oobe_screen_update.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698