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

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

Issue 356613002: Add queryForNewLocalDevices to gcdPrivate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 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);
};
};

Powered by Google App Engine
This is Rietveld 408576698