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

Side by Side 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, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Use the <code>chrome.gcdPrivate</code> API to discover GCD APIs and register 5 // Use the <code>chrome.gcdPrivate</code> API to discover GCD APIs and register
6 // them. 6 // them.
7 namespace gcdPrivate { 7 namespace gcdPrivate {
8 8
9 enum SetupType { mdns, wifi, cloud }; 9 enum SetupType { mdns, wifi, cloud };
10 10
(...skipping 22 matching lines...) Expand all
33 dictionary WiFiCredentials { 33 dictionary WiFiCredentials {
34 DOMString ssid; 34 DOMString ssid;
35 DOMString password; 35 DOMString password;
36 }; 36 };
37 37
38 callback CloudDeviceListCallback = void(GCDDevice[] devices); 38 callback CloudDeviceListCallback = void(GCDDevice[] devices);
39 39
40 interface Functions { 40 interface Functions {
41 static void getCloudDeviceList(CloudDeviceListCallback callback); 41 static void getCloudDeviceList(CloudDeviceListCallback callback);
42 42
43 // Call this function *only* after registering for onDeviceStateChanged
44 // events, or it will do nothing. This will trigger an
45 // onLocalDeviceStateChanged event per device.
46 static void queryForNewLocalDevices();
47
43 // Starts device setup process. Returns id of setup process. Id should be 48 // Starts device setup process. Returns id of setup process. Id should be
44 // used as |setupId| in all subsequent setup related calls, and for 49 // used as |setupId| in all subsequent setup related calls, and for
45 // filtering setup events. 50 // filtering setup events.
46 static long startSetup(GCDDevice device); 51 static long startSetup(GCDDevice device);
47 52
48 // Sets WiFi network list as reply to |onGetWifiNetworks| event. 53 // Sets WiFi network list as reply to |onGetWifiNetworks| event.
49 // |setupId| : The value returned by |startSetup|. 54 // |setupId| : The value returned by |startSetup|.
50 // |networks| : The list of network device should be registered on. 55 // |networks| : The list of network device should be registered on.
51 static void setWiFiNetworks(long setupId, DOMString[] networks); 56 static void setWiFiNetworks(long setupId, DOMString[] networks);
52 57
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 101
97 // Notifies app that setup is completed successfully. 102 // Notifies app that setup is completed successfully.
98 // |setupId| : The value returned by |startSetup|. 103 // |setupId| : The value returned by |startSetup|.
99 static void onSetupSuccess(long setupId); 104 static void onSetupSuccess(long setupId);
100 105
101 // Notifies app that setup is failed or stoped. 106 // Notifies app that setup is failed or stoped.
102 // |setupId| : The value returned by |startSetup|. 107 // |setupId| : The value returned by |startSetup|.
103 static void onSetupError(long setupId); 108 static void onSetupError(long setupId);
104 }; 109 };
105 }; 110 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698