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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/chrome/idl/experimental_identity.idl
diff --git a/third_party/chrome/idl/experimental_identity.idl b/third_party/chrome/idl/experimental_identity.idl
new file mode 100644
index 0000000000000000000000000000000000000000..625b0cd645cbaf60b738f585654bddb260579c52
--- /dev/null
+++ b/third_party/chrome/idl/experimental_identity.idl
@@ -0,0 +1,52 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+namespace experimental.identity {
+
+ [inline_doc] dictionary TokenDetails {
+ // Whether to prompt the user to log in or grant scope permissions (if they
+ // have not already done so). Default is false.
+ boolean? interactive;
+ };
+
+ [inline_doc] dictionary WebAuthFlowDetails {
+ // The URL that initiates the auth flow.
+ DOMString url;
+
+ // Whether to launch auth flow in interactive mode. Default is false.
+ boolean? interactive;
+
+ // Width of the window, if one is shown in interactive mode.
+ long? width;
+
+ // Height of the window, if one is shown in interactive mode.
+ long? height;
+
+ // X coordinate of the window, if one is shown in interactive mode.
+ long? left;
+
+ // Y coordinate of the window, if one is shown in interactive mode.
+ long? top;
+ };
+
+ callback GetAuthTokenCallback = void (optional DOMString token);
+ callback LaunchWebAuthFlowCallback = void (optional DOMString responseUrl);
+
+ interface Functions {
+ // Gets an OAuth2 access token as specified by the manifest.
+ //
+ // |details| : Token options.
+ // |callback| : Called with an OAuth2 access token as specified by the
+ // manifest, or undefined if there was an error.
+ static void getAuthToken(optional TokenDetails details,
+ GetAuthTokenCallback callback);
+
+ // Starts an auth flow at the specified URL.
+ //
+ // |details| : WebAuth flow options.
+ // |callback| : Called with the URL redirected back to your application.
+ static void launchWebAuthFlow(WebAuthFlowDetails details,
+ LaunchWebAuthFlowCallback callback);
+ };
+};
« 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