OLD | NEW |
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 // The <code>chrome.experimental.identity</code> API. |
5 namespace experimental.identity { | 6 namespace experimental.identity { |
6 | 7 |
7 [inline_doc] dictionary ExperimentalTokenDetails { | 8 [inline_doc] dictionary ExperimentalTokenDetails { |
8 // Whether to prompt the user to log in or grant scope permissions (if they | 9 // Whether to prompt the user to log in or grant scope permissions (if they |
9 // have not already done so). Default is false. | 10 // have not already done so). Default is false. |
10 boolean? interactive; | 11 boolean? interactive; |
11 }; | 12 }; |
12 | 13 |
13 [inline_doc] dictionary ExperimentalWebAuthFlowDetails { | 14 [inline_doc] dictionary ExperimentalWebAuthFlowDetails { |
14 // The URL that initiates the auth flow. | 15 // The URL that initiates the auth flow. |
(...skipping 29 matching lines...) Expand all Loading... |
44 GetAuthTokenCallback callback); | 45 GetAuthTokenCallback callback); |
45 | 46 |
46 // Starts an auth flow at the specified URL. | 47 // Starts an auth flow at the specified URL. |
47 // | 48 // |
48 // |details| : WebAuth flow options. | 49 // |details| : WebAuth flow options. |
49 // |callback| : Called with the URL redirected back to your application. | 50 // |callback| : Called with the URL redirected back to your application. |
50 static void launchWebAuthFlow(ExperimentalWebAuthFlowDetails details, | 51 static void launchWebAuthFlow(ExperimentalWebAuthFlowDetails details, |
51 LaunchWebAuthFlowCallback callback); | 52 LaunchWebAuthFlowCallback callback); |
52 }; | 53 }; |
53 }; | 54 }; |
OLD | NEW |