| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 * Whether action box button is in active state. | 121 * Whether action box button is in active state. |
| 122 * @type {boolean} | 122 * @type {boolean} |
| 123 */ | 123 */ |
| 124 get isMoreSettingsActive() { | 124 get isMoreSettingsActive() { |
| 125 return this.getMoreSettingsMenu.classList.contains('active'); | 125 return this.getMoreSettingsMenu.classList.contains('active'); |
| 126 }, | 126 }, |
| 127 set isMoreSettingsActive(active) { | 127 set isMoreSettingsActive(active) { |
| 128 if (active == this.isMoreSettingsActive) | 128 if (active == this.isMoreSettingsActive) |
| 129 return; | 129 return; |
| 130 this.getMoreSettingsMenu.classList.toggle('active', active); | 130 this.getMoreSettingsMenu.classList.toggle('active', active); |
| 131 $('more-settings-button').tabIndex = active ? -1 : 0; | 131 $('more-settings-button').tabIndex = active ? -1 : 4; |
| 132 }, | 132 }, |
| 133 | 133 |
| 134 /** | 134 /** |
| 135 * Add user button click handler. | 135 * Add user button click handler. |
| 136 * | 136 * |
| 137 * @private | 137 * @private |
| 138 */ | 138 */ |
| 139 handleAddUserClick_: function(e) { | 139 handleAddUserClick_: function(e) { |
| 140 Oobe.showSigninUI(); | 140 Oobe.showSigninUI(); |
| 141 // Prevent further propagation of click event. Otherwise, the click event | 141 // Prevent further propagation of click event. Otherwise, the click event |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 * Convenience wrapper of animateIn. | 456 * Convenience wrapper of animateIn. |
| 457 */ | 457 */ |
| 458 HeaderBar.animateIn = function(fast, callback) { | 458 HeaderBar.animateIn = function(fast, callback) { |
| 459 $('login-header-bar').animateIn(fast, callback); | 459 $('login-header-bar').animateIn(fast, callback); |
| 460 }; | 460 }; |
| 461 | 461 |
| 462 return { | 462 return { |
| 463 HeaderBar: HeaderBar | 463 HeaderBar: HeaderBar |
| 464 }; | 464 }; |
| 465 }); | 465 }); |
| OLD | NEW |