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

Side by Side Diff: third_party/chrome/idl/experimental_identity.idl

Issue 12261015: Import chrome idl into third_party (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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
(Empty)
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
3 // found in the LICENSE file.
4
5 namespace experimental.identity {
6
7 [inline_doc] dictionary TokenDetails {
8 // Whether to prompt the user to log in or grant scope permissions (if they
9 // have not already done so). Default is false.
10 boolean? interactive;
11 };
12
13 [inline_doc] dictionary WebAuthFlowDetails {
14 // The URL that initiates the auth flow.
15 DOMString url;
16
17 // Whether to launch auth flow in interactive mode. Default is false.
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;
31 };
32
33 callback GetAuthTokenCallback = void (optional DOMString token);
34 callback LaunchWebAuthFlowCallback = void (optional DOMString responseUrl);
35
36 interface Functions {
37 // Gets an OAuth2 access token as specified by the manifest.
38 //
39 // |details| : Token options.
40 // |callback| : Called with an OAuth2 access token as specified by the
41 // manifest, or undefined if there was an error.
42 static void getAuthToken(optional TokenDetails details,
43 GetAuthTokenCallback callback);
44
45 // Starts an auth flow at the specified URL.
46 //
47 // |details| : WebAuth flow options.
48 // |callback| : Called with the URL redirected back to your application.
49 static void launchWebAuthFlow(WebAuthFlowDetails details,
50 LaunchWebAuthFlowCallback callback);
51 };
52 };
OLDNEW
« no previous file with comments | « third_party/chrome/idl/experimental_history.json ('k') | third_party/chrome/idl/experimental_idltest.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698