OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 module device.usb; | 5 module device.usb; |
6 | 6 |
7 import "device.mojom"; | 7 import "device.mojom"; |
8 | 8 |
9 enum OpenDeviceError { | 9 enum OpenDeviceError { |
10 // Opening the device succeeded. | 10 // Opening the device succeeded. |
(...skipping 28 matching lines...) Expand all Loading... |
39 }; | 39 }; |
40 | 40 |
41 interface DeviceManager { | 41 interface DeviceManager { |
42 // Retrieves information about all devices available to the DeviceManager | 42 // Retrieves information about all devices available to the DeviceManager |
43 // implementation. | 43 // implementation. |
44 GetDevices(EnumerationOptions options) => (array<DeviceInfo> results); | 44 GetDevices(EnumerationOptions options) => (array<DeviceInfo> results); |
45 | 45 |
46 // Attempts to open a device given its GUID. | 46 // Attempts to open a device given its GUID. |
47 OpenDevice(string guid, Device& device_request) => (OpenDeviceError error); | 47 OpenDevice(string guid, Device& device_request) => (OpenDeviceError error); |
48 }; | 48 }; |
OLD | NEW |