OLD | NEW |
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
52 // Bad pairing code. | 52 // Bad pairing code. |
53 badPairingCodeError, | 53 badPairingCodeError, |
54 | 54 |
55 // Device error with details in response object. | 55 // Device error with details in response object. |
56 deviceError | 56 deviceError |
57 }; | 57 }; |
58 | 58 |
59 enum PairingType { | 59 enum PairingType { |
60 pinCode, | 60 pinCode, |
61 embeddedCode | 61 embeddedCode, |
| 62 ultrasound32, |
| 63 audible32 |
62 }; | 64 }; |
63 | 65 |
64 callback CloudDeviceListCallback = void(GCDDevice[] devices); | 66 callback CloudDeviceListCallback = void(GCDDevice[] devices); |
65 | 67 |
66 // |commandDefinitions| : Is "commandDefs" value of device described at | 68 // |commandDefinitions| : Is "commandDefs" value of device described at |
67 // https://developers.google.com/cloud-devices/v1/reference/devices | 69 // https://developers.google.com/cloud-devices/v1/reference/devices |
68 // TODO(vitalybuka): consider to describe object in IDL. | 70 // TODO(vitalybuka): consider to describe object in IDL. |
69 callback CommandDefinitionsCallback = void(object commandDefinitions); | 71 callback CommandDefinitionsCallback = void(object commandDefinitions); |
70 | 72 |
71 // |command| : Described at | 73 // |command| : Described at |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 // Subscribe to this event to start listening new or updated devices. New | 213 // Subscribe to this event to start listening new or updated devices. New |
212 // listeners will get called with all known devices on the network, and | 214 // listeners will get called with all known devices on the network, and |
213 // status updates for devices available through the cloud. | 215 // status updates for devices available through the cloud. |
214 static void onDeviceStateChanged(GCDDevice device); | 216 static void onDeviceStateChanged(GCDDevice device); |
215 | 217 |
216 // Notifies that device has disappeared. | 218 // Notifies that device has disappeared. |
217 // |deviceId| : The device has disappeared. | 219 // |deviceId| : The device has disappeared. |
218 static void onDeviceRemoved(DOMString deviceId); | 220 static void onDeviceRemoved(DOMString deviceId); |
219 }; | 221 }; |
220 }; | 222 }; |
OLD | NEW |