| 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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 /** | 219 /** |
| 220 * Animates Header bar to slowly appear on the screen. | 220 * Animates Header bar to slowly appear on the screen. |
| 221 */ | 221 */ |
| 222 animateIn: function() { | 222 animateIn: function() { |
| 223 this.classList.remove('login-header-bar-animate-fast'); | 223 this.classList.remove('login-header-bar-animate-fast'); |
| 224 this.classList.add('login-header-bar-animate-slow'); | 224 this.classList.add('login-header-bar-animate-slow'); |
| 225 this.classList.remove('login-header-bar-hidden'); | 225 this.classList.remove('login-header-bar-hidden'); |
| 226 }, | 226 }, |
| 227 }; | 227 }; |
| 228 | 228 |
| 229 /** |
| 230 * Convenience wrapper of animateOut. |
| 231 */ |
| 232 HeaderBar.animateOut = function(callback) { |
| 233 $('login-header-bar').animateOut(callback); |
| 234 }; |
| 235 |
| 236 /** |
| 237 * Convenience wrapper of animateIn. |
| 238 */ |
| 239 HeaderBar.animateIn = function() { |
| 240 $('login-header-bar').animateIn(); |
| 241 } |
| 242 |
| 229 return { | 243 return { |
| 230 HeaderBar: HeaderBar | 244 HeaderBar: HeaderBar |
| 231 }; | 245 }; |
| 232 }); | 246 }); |
| OLD | NEW |