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

Side by Side Diff: chrome/browser/resources/gaia_auth_host/authenticator.js

Issue 1173083003: Fix SHIFT+TAB order on GAIA login screens (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <include src="saml_handler.js"> 5 <include src="saml_handler.js">
6 6
7 /** 7 /**
8 * @fileoverview An UI component to authenciate to Chrome. The component hosts 8 * @fileoverview An UI component to authenciate to Chrome. The component hosts
9 * IdP web pages in a webview. A client who is interested in monitoring 9 * IdP web pages in a webview. A client who is interested in monitoring
10 * authentication events should pass a listener object of type 10 * authentication events should pass a listener object of type
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 else 315 else
316 history.replaceState({url: url}, ''); 316 history.replaceState({url: url}, '');
317 }; 317 };
318 318
319 /** 319 /**
320 * Invoked when the sign-in page takes focus. 320 * Invoked when the sign-in page takes focus.
321 * @param {object} e The focus event being triggered. 321 * @param {object} e The focus event being triggered.
322 * @private 322 * @private
323 */ 323 */
324 Authenticator.prototype.onFocus_ = function(e) { 324 Authenticator.prototype.onFocus_ = function(e) {
325 this.webview_.focus(); 325 if (!this.isNewGaiaFlowChromeOS)
xiyuan 2015/06/10 17:43:03 It is probably more correct to check (authMode ==
Greg Levin 2015/06/10 20:01:25 Done.
326 this.webview_.focus();
326 }; 327 };
327 328
328 /** 329 /**
329 * Invoked when the history state is changed. 330 * Invoked when the history state is changed.
330 * @param {object} e The popstate event being triggered. 331 * @param {object} e The popstate event being triggered.
331 * @private 332 * @private
332 */ 333 */
333 Authenticator.prototype.onPopState_ = function(e) { 334 Authenticator.prototype.onPopState_ = function(e) {
334 var state = e.state; 335 var state = e.state;
335 if (state && state.url) 336 if (state && state.url)
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 Authenticator.AuthMode = AuthMode; 686 Authenticator.AuthMode = AuthMode;
686 Authenticator.SUPPORTED_PARAMS = SUPPORTED_PARAMS; 687 Authenticator.SUPPORTED_PARAMS = SUPPORTED_PARAMS;
687 688
688 return { 689 return {
689 // TODO(guohui, xiyuan): Rename GaiaAuthHost to Authenticator once the old 690 // TODO(guohui, xiyuan): Rename GaiaAuthHost to Authenticator once the old
690 // iframe-based flow is deprecated. 691 // iframe-based flow is deprecated.
691 GaiaAuthHost: Authenticator, 692 GaiaAuthHost: Authenticator,
692 Authenticator: Authenticator 693 Authenticator: Authenticator
693 }; 694 };
694 }); 695 });
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698