| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 var url = data.startUrl; | 110 var url = data.startUrl; |
| 111 if (params.length) | 111 if (params.length) |
| 112 url += '?' + params.join('&'); | 112 url += '?' + params.join('&'); |
| 113 | 113 |
| 114 $('signin-frame').src = url; | 114 $('signin-frame').src = url; |
| 115 this.extension_url_ = url; | 115 this.extension_url_ = url; |
| 116 | 116 |
| 117 $('createAccount').hidden = !data.createAccount; | 117 $('createAccount').hidden = !data.createAccount; |
| 118 $('guestSignin').hidden = !data.guestSignin; | 118 $('guestSignin').hidden = !data.guestSignin; |
| 119 | 119 |
| 120 // Announce the name of the screen, if accessibility is on. |
| 121 $('gaia-signin-aria-label').setAttribute( |
| 122 'aria-label', localStrings.getString('signinScreenTitle')); |
| 123 |
| 120 this.loading = true; | 124 this.loading = true; |
| 121 }, | 125 }, |
| 122 | 126 |
| 123 /** | 127 /** |
| 124 * Checks if message comes from the loaded authentication extension. | 128 * Checks if message comes from the loaded authentication extension. |
| 125 * @param e {object} Payload of the received HTML5 message. | 129 * @param e {object} Payload of the received HTML5 message. |
| 126 * @type {bool} | 130 * @type {bool} |
| 127 */ | 131 */ |
| 128 isAuthExtMessage_: function(e) { | 132 isAuthExtMessage_: function(e) { |
| 129 return this.extension_url_ != null && | 133 return this.extension_url_ != null && |
| (...skipping 27 matching lines...) Expand all Loading... |
| 157 // Reload and show the sign-in UI if needed. | 161 // Reload and show the sign-in UI if needed. |
| 158 if (takeFocus) | 162 if (takeFocus) |
| 159 Oobe.showSigninUI(); | 163 Oobe.showSigninUI(); |
| 160 } | 164 } |
| 161 }; | 165 }; |
| 162 | 166 |
| 163 return { | 167 return { |
| 164 GaiaSigninScreen: GaiaSigninScreen | 168 GaiaSigninScreen: GaiaSigninScreen |
| 165 }; | 169 }; |
| 166 }); | 170 }); |
| OLD | NEW |