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

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

Issue 692383005: Add DeviceDisablingManager to manage device disabling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@f_3_425574_disable_header_bar
Patch Set: Add destructor required by clang. Created 6 years, 1 month 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/chrome_tests_unit.gypi ('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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 showVersion: function(show) { 319 showVersion: function(show) {
320 $('version-labels').hidden = !show; 320 $('version-labels').hidden = !show;
321 this.allowToggleVersion_ = !show; 321 this.allowToggleVersion_ = !show;
322 }, 322 },
323 323
324 /** 324 /**
325 * Handle accelerators. 325 * Handle accelerators.
326 * @param {string} name Accelerator name. 326 * @param {string} name Accelerator name.
327 */ 327 */
328 handleAccelerator: function(name) { 328 handleAccelerator: function(name) {
329 if (this.currentScreen.ignoreAccelerators) {
330 return;
331 }
329 var currentStepId = this.screens_[this.currentStep_]; 332 var currentStepId = this.screens_[this.currentStep_];
330 if (name == ACCELERATOR_CANCEL) { 333 if (name == ACCELERATOR_CANCEL) {
331 if (this.currentScreen.cancel) { 334 if (this.currentScreen.cancel) {
332 this.currentScreen.cancel(); 335 this.currentScreen.cancel();
333 } 336 }
334 } else if (name == ACCELERATOR_ENROLLMENT) { 337 } else if (name == ACCELERATOR_ENROLLMENT) {
335 if (currentStepId == SCREEN_GAIA_SIGNIN || 338 if (currentStepId == SCREEN_GAIA_SIGNIN ||
336 currentStepId == SCREEN_ACCOUNT_PICKER) { 339 currentStepId == SCREEN_ACCOUNT_PICKER) {
337 chrome.send('toggleEnrollmentScreen'); 340 chrome.send('toggleEnrollmentScreen');
338 } else if (currentStepId == SCREEN_OOBE_NETWORK || 341 } else if (currentStepId == SCREEN_OOBE_NETWORK ||
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
1038 */ 1041 */
1039 DisplayManager.refocusCurrentPod = function() { 1042 DisplayManager.refocusCurrentPod = function() {
1040 $('pod-row').refocusCurrentPod(); 1043 $('pod-row').refocusCurrentPod();
1041 }; 1044 };
1042 1045
1043 // Export 1046 // Export
1044 return { 1047 return {
1045 DisplayManager: DisplayManager 1048 DisplayManager: DisplayManager
1046 }; 1049 };
1047 }); 1050 });
OLDNEW
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698