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 4b3ed1038b927a92d7721a8d3117aa6d845d01fe..5d219f20f415ab770bad282167624242403676c3 100644 |
--- a/chrome/common/extensions/api/gcd_private.idl |
+++ b/chrome/common/extensions/api/gcd_private.idl |
@@ -33,11 +33,16 @@ namespace gcdPrivate { |
interface Functions { |
static void getCloudDeviceList(CloudDeviceListCallback callback); |
+ |
+ // Call this function *only* after registering for onLocalDeviceStateChanged |
+ // events, or it will do nothing. This will trigger an |
+ // onLocalDeviceStateChanged event per device. |
asargent_no_longer_on_chrome
2014/06/24 22:31:48
Did you consider having this method take a callbac
Noam Samuel
2014/06/24 23:07:05
So registering for onLocalDeviceStateChanged cause
|
+ static void queryForNewLocalDevices(); |
}; |
interface Events { |
// Subscribe to this event to start listening to cloud devices. New |
// listeners will get called with all known devices on the network. |
- static void onCloudDeviceStateChanged(boolean available, GCDDevice device); |
+ static void onLocalDeviceStateChanged(boolean available, GCDDevice device); |
}; |
}; |