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

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

Issue 7978054: When the Sign in page is shown, speak the title if accessibility is turned on (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 | « chrome/browser/resources/chromeos/login/screen_gaia_signin.html ('k') | no next file » | 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/login/screen_gaia_signin.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698