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

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

Issue 11052015: Fix bug with login-prompt-visible not being sent in some rare cases. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build Created 8 years, 2 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 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 oldStep.classList.add('hidden'); 243 oldStep.classList.add('hidden');
244 } 244 }
245 } else { 245 } else {
246 // First screen on OOBE launch. 246 // First screen on OOBE launch.
247 if (innerContainer.classList.contains('down')) { 247 if (innerContainer.classList.contains('down')) {
248 innerContainer.classList.remove('down'); 248 innerContainer.classList.remove('down');
249 innerContainer.addEventListener( 249 innerContainer.addEventListener(
250 'webkitTransitionEnd', function f(e) { 250 'webkitTransitionEnd', function f(e) {
251 innerContainer.removeEventListener('webkitTransitionEnd', f); 251 innerContainer.removeEventListener('webkitTransitionEnd', f);
252 $('progress-dots').classList.remove('down'); 252 $('progress-dots').classList.remove('down');
253 chrome.send('loginVisible'); 253 chrome.send('loginVisible', ['oobe']);
254 }); 254 });
255 } 255 }
256 newHeader.classList.remove('right'); // Old OOBE. 256 newHeader.classList.remove('right'); // Old OOBE.
257 } 257 }
258 this.currentStep_ = nextStepIndex; 258 this.currentStep_ = nextStepIndex;
259 $('oobe').className = nextStepId; 259 $('oobe').className = nextStepId;
260 260
261 $('step-logo').hidden = newStep.classList.contains('no-logo'); 261 $('step-logo').hidden = newStep.classList.contains('no-logo');
262 }, 262 },
263 263
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 $('add-user-button').classList.add('button-restricted'); 592 $('add-user-button').classList.add('button-restricted');
593 $('add-user-button').title = disable ? 593 $('add-user-button').title = disable ?
594 localStrings.getString('disabledAddUserTooltip') : ''; 594 localStrings.getString('disabledAddUserTooltip') : '';
595 } 595 }
596 596
597 // Export 597 // Export
598 return { 598 return {
599 DisplayManager: DisplayManager 599 DisplayManager: DisplayManager
600 }; 600 };
601 }); 601 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698