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

Side by Side Diff: device/usb/public/interfaces/device_manager.mojom

Issue 1158323002: Revert of Build a basic Mojo service framework for device/usb (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « device/usb/public/interfaces/device.mojom ('k') | device/usb/type_converters.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 module device.usb;
6
7 import "device.mojom";
8
9 struct DeviceFilter {
10 bool has_vendor_id;
11 uint16 vendor_id;
12
13 bool has_product_id;
14 uint16 product_id;
15
16 bool has_class_code;
17 uint8 class_code;
18
19 bool has_subclass_code;
20 uint8 subclass_code;
21
22 bool has_protocol_code;
23 uint8 protocol_code;
24 };
25
26 struct EnumerationOptions {
27 array<DeviceFilter> filters;
28 };
29
30 // TODO(rockot): Remove this wrapper struct. Mojom bindings do not yet support
31 // arrays of interfaces.
32 struct EnumerationResult {
33 Device device;
34 };
35
36 interface DeviceManager {
37 GetDevices(EnumerationOptions options) => (array<EnumerationResult> results);
38 };
OLDNEW
« no previous file with comments | « device/usb/public/interfaces/device.mojom ('k') | device/usb/type_converters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698