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

Unified Diff: chrome/common/extensions/api/gcd_private.idl

Issue 363883002: Add API stubs for GCD device commands. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Wed 07/02/2014 1:25:27.38 Created 6 years, 6 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
Index: chrome/common/extensions/api/gcd_private.idl
diff --git a/chrome/common/extensions/api/gcd_private.idl b/chrome/common/extensions/api/gcd_private.idl
index 1d2b2ce4772114ecb3de118ffa153367371c6989..dfa1911d7514deaa16396228f426ae3b049f7790 100644
--- a/chrome/common/extensions/api/gcd_private.idl
+++ b/chrome/common/extensions/api/gcd_private.idl
@@ -36,6 +36,9 @@ namespace gcdPrivate {
};
callback CloudDeviceListCallback = void(GCDDevice[] devices);
+ callback CommandDefsCallback = void(object commandDefs);
+ callback CommandCallback = void(object command);
+ callback CommandListCallback = void(object[] commands);
interface Functions {
static void getCloudDeviceList(CloudDeviceListCallback callback);
@@ -71,6 +74,27 @@ namespace gcdPrivate {
// starting new registration.
// |setupId| is a value returned by |setupStart|.
static void setupStop(long setupId);
+
+ // Returns command definitions.
+ static void getCommandDefs(GCDDevice device, CommandDefsCallback callback);
alexsemenov 2014/07/02 18:17:25 Let's rename to getCommandDefinitions and CommandD
Vitaly Buka (NO REVIEWS) 2014/07/02 22:20:00 Done.
+
+ static void insertCommand(GCDDevice device,
+ long expireInMs,
+ long responseAwaitMs,
alexsemenov 2014/07/02 18:17:25 Only need expiration time
Vitaly Buka (NO REVIEWS) 2014/07/02 22:20:00 Done.
+ object command,
+ CommandDefsCallback callback);
alexsemenov 2014/07/02 18:17:26 Same here: CommandDefinitionsCallback
alexsemenov 2014/07/02 18:17:26 CommandDefsCallback -> CommandCallback here?
Vitaly Buka (NO REVIEWS) 2014/07/02 22:20:01 Done.
+
+ static void getCommand(DOMString commandId,
+ DOMString mediaPath,
alexsemenov 2014/07/02 18:17:25 Let's remove mediaPath for now
Vitaly Buka (NO REVIEWS) 2014/07/02 22:20:01 Done.
+ CommandCallback callback);
+
+ static void cancelCommand(DOMString commandId,
+ CommandCallback callback);
+
+ static void getCommandsList(GCDDevice device,
+ DOMString byUser,
+ DOMString state,
+ CommandListCallback callback);
};
interface Events {
« no previous file with comments | « chrome/browser/extensions/api/gcd_private/gcd_private_api.cc ('k') | extensions/browser/extension_function_histogram_value.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698