Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: chrome/browser/resources/chromeos/login/screen_gaia_signin.js

Issue 7792009: [ChromeOS] Hide 'signin-right' panel when it's empty. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/login/screen_signin.css » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 });
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/login/screen_signin.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698