Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 Oobe signin screen implementation. | 6 * @fileoverview Oobe signin screen implementation. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 cr.define('login', function() { | 9 cr.define('login', function() { |
| 10 | 10 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 51 }, | 51 }, |
| 52 | 52 |
| 53 /** | 53 /** |
| 54 * Shows/hides loading UI. | 54 * Shows/hides loading UI. |
| 55 * @param {boolean} show True to show loading UI. | 55 * @param {boolean} show True to show loading UI. |
| 56 * @private | 56 * @private |
| 57 */ | 57 */ |
| 58 showLoadingUI_: function(show) { | 58 showLoadingUI_: function(show) { |
| 59 $('gaia-loading').hidden = !show; | 59 $('gaia-loading').hidden = !show; |
| 60 $('signin-frame').hidden = show; | 60 $('signin-frame').hidden = show; |
| 61 $('signin-right').hidden = show; | 61 |
| 62 // Sign-in right panel is hidden if all its items are hidden. | |
| 63 $('signin-right').hidden = show || | |
| 64 ($('createAccount').hidden && $('guestSignin').hidden); | |
|
achuithb
2011/08/29 20:09:54
Tricky.
| |
| 62 }, | 65 }, |
| 63 | 66 |
| 64 /** | 67 /** |
| 65 * Whether Gaia is loading. | 68 * Whether Gaia is loading. |
| 66 * @type {boolean} | 69 * @type {boolean} |
| 67 */ | 70 */ |
| 68 get loading() { | 71 get loading() { |
| 69 return !$('gaia-loading').hidden; | 72 return !$('gaia-loading').hidden; |
| 70 }, | 73 }, |
| 71 set loading(loading) { | 74 set loading(loading) { |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 130 // Reload and show the sign-in UI if needed. | 133 // Reload and show the sign-in UI if needed. |
| 131 if (takeFocus) | 134 if (takeFocus) |
| 132 Oobe.showSigninUI(); | 135 Oobe.showSigninUI(); |
| 133 } | 136 } |
| 134 }; | 137 }; |
| 135 | 138 |
| 136 return { | 139 return { |
| 137 GaiaSigninScreen: GaiaSigninScreen | 140 GaiaSigninScreen: GaiaSigninScreen |
| 138 }; | 141 }; |
| 139 }); | 142 }); |
| OLD | NEW |