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

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

Issue 10827169: [cros] OOBE slide animation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Polish Created 8 years, 4 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 /** 5 /**
6 * @fileoverview Out of the box experience flow (OOBE). 6 * @fileoverview Out of the box experience flow (OOBE).
7 * This is the main code for the OOBE WebUI implementation. 7 * This is the main code for the OOBE WebUI implementation.
8 */ 8 */
9 9
10 var localStrings = new LocalStrings(); 10 var localStrings = new LocalStrings();
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 */ 246 */
247 Oobe.updateLocalizedContent = function() { 247 Oobe.updateLocalizedContent = function() {
248 // Buttons, headers and links. 248 // Buttons, headers and links.
249 Oobe.getInstance().updateLocalizedContent_(); 249 Oobe.getInstance().updateLocalizedContent_();
250 }; 250 };
251 251
252 /** 252 /**
253 * Update body class to switch between OOBE UI and Login UI. 253 * Update body class to switch between OOBE UI and Login UI.
254 */ 254 */
255 Oobe.showOobeUI = function(showOobe) { 255 Oobe.showOobeUI = function(showOobe) {
256 showOobe = true;
Nikita (slow) 2012/08/10 08:43:21 Cleanup?
Ivan Korotkov 2012/08/10 10:12:41 Done.
256 if (showOobe) { 257 if (showOobe) {
257 document.body.classList.remove('login-display'); 258 document.body.classList.remove('login-display');
258 } else { 259 } else {
259 document.body.classList.add('login-display'); 260 document.body.classList.add('login-display');
260 Oobe.getInstance().prepareForLoginDisplay_(); 261 Oobe.getInstance().prepareForLoginDisplay_();
261 } 262 }
262 263
263 // Don't show header bar for OOBE. 264 // Don't show header bar for OOBE.
264 Oobe.getInstance().headerHidden = showOobe; 265 Oobe.getInstance().headerHidden = showOobe;
266
267 Oobe.getInstance().showScreen({'id': 'connect'});
Nikita (slow) 2012/08/10 08:43:21 Cleanup?
Ivan Korotkov 2012/08/10 10:12:41 Done.
265 }; 268 };
266 269
267 /** 270 /**
268 * Disables signin UI. 271 * Disables signin UI.
269 */ 272 */
270 Oobe.disableSigninUI = function() { 273 Oobe.disableSigninUI = function() {
271 DisplayManager.disableSigninUI(); 274 DisplayManager.disableSigninUI();
272 }; 275 };
273 276
274 /** 277 /**
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 // Allow selection events on components with editable text (password field) 340 // Allow selection events on components with editable text (password field)
338 // bug (http://code.google.com/p/chromium/issues/detail?id=125863) 341 // bug (http://code.google.com/p/chromium/issues/detail?id=125863)
339 disableTextSelectAndDrag(function(e) { 342 disableTextSelectAndDrag(function(e) {
340 var src = e.target; 343 var src = e.target;
341 return src instanceof HTMLTextAreaElement || 344 return src instanceof HTMLTextAreaElement ||
342 src instanceof HTMLInputElement && 345 src instanceof HTMLInputElement &&
343 /text|password|search/.test(src.type); 346 /text|password|search/.test(src.type);
344 }); 347 });
345 348
346 document.addEventListener('DOMContentLoaded', cr.ui.Oobe.initialize); 349 document.addEventListener('DOMContentLoaded', cr.ui.Oobe.initialize);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698