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

Side by Side Diff: chrome/common/extensions/api/experimental_identity.idl

Issue 11221002: Merge 162639 - Implement size and position support for launchWebAuthFlow. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1271/src/
Patch Set: Created 8 years, 2 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 namespace experimental.identity { 5 namespace experimental.identity {
6 6
7 [inline_doc] dictionary TokenDetails { 7 [inline_doc] dictionary TokenDetails {
8 // Whether to prompt the user to log in or grant scope permissions (if they 8 // Whether to prompt the user to log in or grant scope permissions (if they
9 // have not already done so). Default is false. 9 // have not already done so). Default is false.
10 boolean? interactive; 10 boolean? interactive;
11 }; 11 };
12 12
13 [inline_doc] dictionary WebAuthFlowDetails { 13 [inline_doc] dictionary WebAuthFlowDetails {
14 // The URL that initiates the auth flow. 14 // The URL that initiates the auth flow.
15 DOMString url; 15 DOMString url;
16 16
17 // Whether to launch auth flow in interactive mode. Default is false. 17 // Whether to launch auth flow in interactive mode. Default is false.
18 boolean? interactive; 18 boolean? interactive;
19
20 // Width of the window, if one is shown in interactive mode.
21 long? width;
22
23 // Height of the window, if one is shown in interactive mode.
24 long? height;
25
26 // X coordinate of the window, if one is shown in interactive mode.
27 long? left;
28
29 // Y coordinate of the window, if one is shown in interactive mode.
30 long? top;
19 }; 31 };
20 32
21 callback GetAuthTokenCallback = void (optional DOMString token); 33 callback GetAuthTokenCallback = void (optional DOMString token);
22 callback LaunchWebAuthFlowCallback = void (optional DOMString responseUrl); 34 callback LaunchWebAuthFlowCallback = void (optional DOMString responseUrl);
23 35
24 interface Functions { 36 interface Functions {
25 // Gets an OAuth2 access token as specified by the manifest. 37 // Gets an OAuth2 access token as specified by the manifest.
26 // 38 //
27 // |details| : Token options. 39 // |details| : Token options.
28 // |callback| : Called with an OAuth2 access token as specified by the 40 // |callback| : Called with an OAuth2 access token as specified by the
29 // manifest, or undefined if there was an error. 41 // manifest, or undefined if there was an error.
30 static void getAuthToken(optional TokenDetails details, 42 static void getAuthToken(optional TokenDetails details,
31 GetAuthTokenCallback callback); 43 GetAuthTokenCallback callback);
32 44
33 // Starts an auth flow at the specified URL. 45 // Starts an auth flow at the specified URL.
34 // 46 //
35 // |details| : WebAuth flow options. 47 // |details| : WebAuth flow options.
36 // |callback| : Called with the URL redirected back to your application. 48 // |callback| : Called with the URL redirected back to your application.
37 static void launchWebAuthFlow(WebAuthFlowDetails details, 49 static void launchWebAuthFlow(WebAuthFlowDetails details,
38 LaunchWebAuthFlowCallback callback); 50 LaunchWebAuthFlowCallback callback);
39 }; 51 };
40 }; 52 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698