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

Side by Side Diff: ui/login/display_manager.js

Issue 2577093002: Enable Active Directory shortcut on the welcome screen (Closed)
Patch Set: Created 4 years 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 | « chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 var currentStepId = this.screens_[this.currentStep_]; 337 var currentStepId = this.screens_[this.currentStep_];
338 if (name == ACCELERATOR_CANCEL) { 338 if (name == ACCELERATOR_CANCEL) {
339 if (this.currentScreen.cancel) { 339 if (this.currentScreen.cancel) {
340 this.currentScreen.cancel(); 340 this.currentScreen.cancel();
341 } 341 }
342 } else if (name == ACCELERATOR_ENABLE_DEBBUGING) { 342 } else if (name == ACCELERATOR_ENABLE_DEBBUGING) {
343 if (ENABLE_DEBUGGING_AVAILABLE_SCREEN_GROUP.indexOf( 343 if (ENABLE_DEBUGGING_AVAILABLE_SCREEN_GROUP.indexOf(
344 currentStepId) != -1) { 344 currentStepId) != -1) {
345 chrome.send('toggleEnableDebuggingScreen'); 345 chrome.send('toggleEnableDebuggingScreen');
346 } 346 }
347 } else if (name == ACCELERATOR_ENROLLMENT) { 347 } else if (name == ACCELERATOR_ENROLLMENT ||
348 name == ACCELERATOR_ENROLLMENT_AD) {
349 if (name == ACCELERATOR_ENROLLMENT_AD)
350 chrome.send('toggleEnrollmentAd');
348 if (currentStepId == SCREEN_GAIA_SIGNIN || 351 if (currentStepId == SCREEN_GAIA_SIGNIN ||
349 currentStepId == SCREEN_ACCOUNT_PICKER) { 352 currentStepId == SCREEN_ACCOUNT_PICKER) {
350 chrome.send('toggleEnrollmentScreen'); 353 chrome.send('toggleEnrollmentScreen');
351 } else if (currentStepId == SCREEN_OOBE_NETWORK || 354 } else if (currentStepId == SCREEN_OOBE_NETWORK ||
352 currentStepId == SCREEN_OOBE_EULA) { 355 currentStepId == SCREEN_OOBE_EULA) {
353 // In this case update check will be skipped and OOBE will 356 // In this case update check will be skipped and OOBE will
354 // proceed straight to enrollment screen when EULA is accepted. 357 // proceed straight to enrollment screen when EULA is accepted.
355 chrome.send('skipUpdateEnrollAfterEula'); 358 chrome.send('skipUpdateEnrollAfterEula');
356 } 359 }
357 } else if (name == ACCELERATOR_ENROLLMENT_AD) {
358 if (currentStepId == SCREEN_GAIA_SIGNIN ||
359 currentStepId == SCREEN_ACCOUNT_PICKER) {
360 chrome.send('toggleEnrollmentAd');
361 }
362 } else if (name == ACCELERATOR_KIOSK_ENABLE) { 360 } else if (name == ACCELERATOR_KIOSK_ENABLE) {
363 if (currentStepId == SCREEN_GAIA_SIGNIN || 361 if (currentStepId == SCREEN_GAIA_SIGNIN ||
364 currentStepId == SCREEN_ACCOUNT_PICKER) { 362 currentStepId == SCREEN_ACCOUNT_PICKER) {
365 chrome.send('toggleKioskEnableScreen'); 363 chrome.send('toggleKioskEnableScreen');
366 } 364 }
367 } else if (name == ACCELERATOR_VERSION) { 365 } else if (name == ACCELERATOR_VERSION) {
368 if (this.allowToggleVersion_) 366 if (this.allowToggleVersion_)
369 $('version-labels').hidden = !$('version-labels').hidden; 367 $('version-labels').hidden = !$('version-labels').hidden;
370 } else if (name == ACCELERATOR_RESET) { 368 } else if (name == ACCELERATOR_RESET) {
371 if (currentStepId == SCREEN_OOBE_RESET) 369 if (currentStepId == SCREEN_OOBE_RESET)
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after
1059 */ 1057 */
1060 DisplayManager.refocusCurrentPod = function() { 1058 DisplayManager.refocusCurrentPod = function() {
1061 $('pod-row').refocusCurrentPod(); 1059 $('pod-row').refocusCurrentPod();
1062 }; 1060 };
1063 1061
1064 // Export 1062 // Export
1065 return { 1063 return {
1066 DisplayManager: DisplayManager 1064 DisplayManager: DisplayManager
1067 }; 1065 };
1068 }); 1066 });
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698