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

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

Issue 13881017: Extract common HTML from oobe.html/login.html. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: split container Created 7 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/login/login.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 Display manager for WebUI OOBE and login. 6 * @fileoverview Display manager for WebUI OOBE and login.
7 */ 7 */
8 8
9 // TODO(xiyuan): Find a better to share those constants. 9 // TODO(xiyuan): Find a better to share those constants.
10 /** @const */ var SCREEN_OOBE_NETWORK = 'connect'; 10 /** @const */ var SCREEN_OOBE_NETWORK = 'connect';
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 if (defaultControl) 270 if (defaultControl)
271 defaultControl.focus(); 271 defaultControl.focus();
272 }); 272 });
273 } else { 273 } else {
274 oldStep.classList.add('hidden'); 274 oldStep.classList.add('hidden');
275 if (defaultControl) 275 if (defaultControl)
276 defaultControl.focus(); 276 defaultControl.focus();
277 } 277 }
278 } else { 278 } else {
279 // First screen on OOBE launch. 279 // First screen on OOBE launch.
280 if (innerContainer.classList.contains('down')) { 280 if (document.body.classList.contains('oobe-display') &&
281 innerContainer.classList.contains('down')) {
281 innerContainer.classList.remove('down'); 282 innerContainer.classList.remove('down');
282 innerContainer.addEventListener( 283 innerContainer.addEventListener(
283 'webkitTransitionEnd', function f(e) { 284 'webkitTransitionEnd', function f(e) {
284 innerContainer.removeEventListener('webkitTransitionEnd', f); 285 innerContainer.removeEventListener('webkitTransitionEnd', f);
285 $('progress-dots').classList.remove('down'); 286 $('progress-dots').classList.remove('down');
286 chrome.send('loginVisible', ['oobe']); 287 chrome.send('loginVisible', ['oobe']);
287 if (defaultControl) 288 if (defaultControl)
288 defaultControl.focus(); 289 defaultControl.focus();
289 }); 290 });
290 } else { 291 } else {
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
676 */ 677 */
677 DisplayManager.clearUserPodPassword = function() { 678 DisplayManager.clearUserPodPassword = function() {
678 $('pod-row').clearFocusedPod(); 679 $('pod-row').clearFocusedPod();
679 }; 680 };
680 681
681 // Export 682 // Export
682 return { 683 return {
683 DisplayManager: DisplayManager 684 DisplayManager: DisplayManager
684 }; 685 };
685 }); 686 });
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/login/login.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698