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

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

Issue 66403006: Use embedded sign in UI for inline sign in flow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add util function for appending param # Created 7 years, 1 month 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 An UI component to host gaia auth extension in an iframe. 6 * @fileoverview An UI component to host gaia auth extension in an iframe.
7 * After the component binds with an iframe, call its {@code load} to start the 7 * After the component binds with an iframe, call its {@code load} to start the
8 * authentication flow. There are two events would be raised after this point: 8 * authentication flow. There are two events would be raised after this point:
9 * a 'ready' event when the authentication UI is ready to use and a 'completed' 9 * a 'ready' event when the authentication UI is ready to use and a 'completed'
10 * event when the authentication is completed successfully. If caller is 10 * event when the authentication is completed successfully. If caller is
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 var GAIA_ORIGIN = 'https://accounts.google.com'; 47 var GAIA_ORIGIN = 'https://accounts.google.com';
48 48
49 /** 49 /**
50 * Supported params of auth extension. For a complete list, check out the 50 * Supported params of auth extension. For a complete list, check out the
51 * auth extension's main.js. 51 * auth extension's main.js.
52 * @type {!Array.<string>} 52 * @type {!Array.<string>}
53 * @const 53 * @const
54 */ 54 */
55 var SUPPORTED_PARAMS = [ 55 var SUPPORTED_PARAMS = [
56 'gaiaUrl', // Gaia url to use; 56 'gaiaUrl', // Gaia url to use;
57 'gaiaPath', // Gaia path to use without a leading slash;
57 'hl', // Language code for the user interface; 58 'hl', // Language code for the user interface;
58 'email', // Pre-fill the email field in Gaia UI; 59 'email', // Pre-fill the email field in Gaia UI;
59 'service', // Name of Gaia service; 60 'service', // Name of Gaia service;
60 'continueUrl', // Continue url to use; 61 'continueUrl', // Continue url to use;
61 'partitionId' // Partition ID for the embedded Gaia webview; 62 'partitionId' // Partition ID for the embedded Gaia webview;
62 ]; 63 ];
63 64
64 /** 65 /**
65 * Supported localized strings. For a complete list, check out the auth 66 * Supported localized strings. For a complete list, check out the auth
66 * extension's offline.js 67 * extension's offline.js
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 }; 367 };
367 368
368 GaiaAuthHost.SUPPORTED_PARAMS = SUPPORTED_PARAMS; 369 GaiaAuthHost.SUPPORTED_PARAMS = SUPPORTED_PARAMS;
369 GaiaAuthHost.LOCALIZED_STRING_PARAMS = LOCALIZED_STRING_PARAMS; 370 GaiaAuthHost.LOCALIZED_STRING_PARAMS = LOCALIZED_STRING_PARAMS;
370 GaiaAuthHost.AuthMode = AuthMode; 371 GaiaAuthHost.AuthMode = AuthMode;
371 372
372 return { 373 return {
373 GaiaAuthHost: GaiaAuthHost 374 GaiaAuthHost: GaiaAuthHost
374 }; 375 };
375 }); 376 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/gaia_auth/util.js ('k') | chrome/browser/ui/views/profile_chooser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698