| 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 * If true then "Browse as Guest" button is shown. | 157 * If true then "Browse as Guest" button is shown. |
| 158 * | 158 * |
| 159 * @type {boolean} | 159 * @type {boolean} |
| 160 */ | 160 */ |
| 161 set showGuestButton(value) { | 161 set showGuestButton(value) { |
| 162 this.showGuest_ = value; | 162 this.showGuest_ = value; |
| 163 this.updateUI_(); | 163 this.updateUI_(); |
| 164 }, | 164 }, |
| 165 | 165 |
| 166 /** | 166 /** |
| 167 * Update current header bar UI. | 167 * Current header bar UI / sign in state. |
| 168 * | 168 * |
| 169 * @type {number} state Current state of the sign-in screen (see | 169 * @type {number} state Current state of the sign-in screen (see |
| 170 * SIGNIN_UI_STATE). | 170 * SIGNIN_UI_STATE). |
| 171 */ | 171 */ |
| 172 get signinUIState() { |
| 173 return this.signinUIState_; |
| 174 }, |
| 172 set signinUIState(state) { | 175 set signinUIState(state) { |
| 173 this.signinUIState_ = state; | 176 this.signinUIState_ = state; |
| 174 this.updateUI_(); | 177 this.updateUI_(); |
| 175 }, | 178 }, |
| 176 | 179 |
| 177 /** | 180 /** |
| 178 * Whether the Cancel button is enabled during Gaia sign-in. | 181 * Whether the Cancel button is enabled during Gaia sign-in. |
| 179 * | 182 * |
| 180 * @type {boolean} | 183 * @type {boolean} |
| 181 */ | 184 */ |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 * Convenience wrapper of animateIn. | 284 * Convenience wrapper of animateIn. |
| 282 */ | 285 */ |
| 283 HeaderBar.animateIn = function() { | 286 HeaderBar.animateIn = function() { |
| 284 $('login-header-bar').animateIn(); | 287 $('login-header-bar').animateIn(); |
| 285 } | 288 } |
| 286 | 289 |
| 287 return { | 290 return { |
| 288 HeaderBar: HeaderBar | 291 HeaderBar: HeaderBar |
| 289 }; | 292 }; |
| 290 }); | 293 }); |
| OLD | NEW |