| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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.dial</code> API to discover devices that support DIAL. | 5 // Use the <code>chrome.dial</code> API to discover devices that support DIAL. |
| 6 // Protocol specification: http://www.dial-multiscreen.org/ | 6 // Protocol specification: http://www.dial-multiscreen.org/ |
| 7 namespace dial { | 7 [use_movable_types=true] namespace dial { |
| 8 | 8 |
| 9 // Represents a unique device that responded to a DIAL discovery request. | 9 // Represents a unique device that responded to a DIAL discovery request. |
| 10 dictionary DialDevice { | 10 dictionary DialDevice { |
| 11 | 11 |
| 12 // A label identifying the device within this instance of the browser. | 12 // A label identifying the device within this instance of the browser. |
| 13 // Not guaranteed to persist beyond browser instances. | 13 // Not guaranteed to persist beyond browser instances. |
| 14 DOMString deviceLabel; | 14 DOMString deviceLabel; |
| 15 | 15 |
| 16 // A URL pointing to the device description resource for the device. | 16 // A URL pointing to the device description resource for the device. |
| 17 DOMString deviceDescriptionUrl; | 17 DOMString deviceDescriptionUrl; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 // (2) A client invoked discoverNow(). | 55 // (2) A client invoked discoverNow(). |
| 56 // (3) An event happened that should invalidate the device list | 56 // (3) An event happened that should invalidate the device list |
| 57 // (e.g., a network interface went offline), in which case it is fired | 57 // (e.g., a network interface went offline), in which case it is fired |
| 58 // with an empty array. | 58 // with an empty array. |
| 59 static void onDeviceList(DialDevice[] result); | 59 static void onDeviceList(DialDevice[] result); |
| 60 | 60 |
| 61 // Event fired to inform clients on errors during device discovery. | 61 // Event fired to inform clients on errors during device discovery. |
| 62 static void onError(DialError error); | 62 static void onError(DialError error); |
| 63 }; | 63 }; |
| 64 }; | 64 }; |
| OLD | NEW |