Chromium Code Reviews| 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 { |