| OLD | NEW |
| 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 Login UI header bar implementation. | 6 * @fileoverview Login UI header bar implementation. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 cr.define('login', function() { | 9 cr.define('login', function() { |
| 10 /** | 10 /** |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 supervisedUserCreationDialogIsActiveAndNotIntro; | 345 supervisedUserCreationDialogIsActiveAndNotIntro; |
| 346 $('more-settings-header-bar-item').hidden = | 346 $('more-settings-header-bar-item').hidden = |
| 347 !this.showCreateSupervised_ || | 347 !this.showCreateSupervised_ || |
| 348 isNewGaiaScreenWithBackButton || | 348 isNewGaiaScreenWithBackButton || |
| 349 supervisedUserCreationDialogIsActive; | 349 supervisedUserCreationDialogIsActive; |
| 350 $('cancel-add-user-button').hidden = | 350 $('cancel-add-user-button').hidden = |
| 351 ((gaiaIsActive || isPasswordChangedUI) && this.isNewGaiaFlow_) || | 351 ((gaiaIsActive || isPasswordChangedUI) && this.isNewGaiaFlow_) || |
| 352 accountPickerIsActive || | 352 accountPickerIsActive || |
| 353 !this.allowCancel_ || | 353 !this.allowCancel_ || |
| 354 wrongHWIDWarningIsActive || | 354 wrongHWIDWarningIsActive || |
| 355 isMultiProfilesUI; | 355 isMultiProfilesUI || |
| 356 supervisedUserCreationDialogIsActive; |
| 356 $('guest-user-header-bar-item').hidden = | 357 $('guest-user-header-bar-item').hidden = |
| 357 (gaiaIsActive && !this.isNewGaiaFlow_) || | 358 (gaiaIsActive && !this.isNewGaiaFlow_) || |
| 358 supervisedUserCreationDialogIsActiveAndNotIntro || | 359 supervisedUserCreationDialogIsActiveAndNotIntro || |
| 359 !this.showGuest_ || | 360 !this.showGuest_ || |
| 360 wrongHWIDWarningIsActive || | 361 wrongHWIDWarningIsActive || |
| 361 isSamlPasswordConfirm || | 362 isSamlPasswordConfirm || |
| 362 isMultiProfilesUI || | 363 isMultiProfilesUI || |
| 363 isNewGaiaScreenWithBackButton; | 364 isNewGaiaScreenWithBackButton; |
| 364 $('restart-header-bar-item').hidden = !this.showReboot_; | 365 $('restart-header-bar-item').hidden = !this.showReboot_; |
| 365 $('shutdown-header-bar-item').hidden = !this.showShutdown_; | 366 $('shutdown-header-bar-item').hidden = !this.showShutdown_; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 * Convenience wrapper of animateIn. | 442 * Convenience wrapper of animateIn. |
| 442 */ | 443 */ |
| 443 HeaderBar.animateIn = function(fast, callback) { | 444 HeaderBar.animateIn = function(fast, callback) { |
| 444 $('login-header-bar').animateIn(fast, callback); | 445 $('login-header-bar').animateIn(fast, callback); |
| 445 }; | 446 }; |
| 446 | 447 |
| 447 return { | 448 return { |
| 448 HeaderBar: HeaderBar | 449 HeaderBar: HeaderBar |
| 449 }; | 450 }; |
| 450 }); | 451 }); |
| OLD | NEW |