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

Unified Diff: device/usb/public/interfaces/device_manager.mojom

Issue 2821723002: Move classes in the device.usb Mojo namespace to device.mojom (Closed)
Patch Set: mcasas@ nits Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/usb/public/interfaces/device.mojom ('k') | device/usb/public/interfaces/device_manager.typemap » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/public/interfaces/device_manager.mojom
diff --git a/device/usb/public/interfaces/device_manager.mojom b/device/usb/public/interfaces/device_manager.mojom
index c1a88ae0ae9a2010745dff93f22639381932fd24..9e906816c3de80ac5b4f14cb947ac7c4f1f16b5b 100644
--- a/device/usb/public/interfaces/device_manager.mojom
+++ b/device/usb/public/interfaces/device_manager.mojom
@@ -2,11 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-module device.usb;
+module device.mojom;
import "device.mojom";
-struct DeviceFilter {
+struct UsbDeviceFilter {
bool has_vendor_id;
uint16 vendor_id;
@@ -25,27 +25,27 @@ struct DeviceFilter {
string? serial_number;
};
-struct EnumerationOptions {
- array<DeviceFilter>? filters;
+struct UsbEnumerationOptions {
+ array<UsbDeviceFilter>? filters;
};
-interface DeviceManager {
+interface UsbDeviceManager {
// Retrieves information about all devices available to the DeviceManager
// implementation.
- GetDevices(EnumerationOptions? options) => (array<DeviceInfo> results);
+ GetDevices(UsbEnumerationOptions? options) => (array<UsbDeviceInfo> results);
// Requests a device by guid.
- GetDevice(string guid, Device& device_request);
+ GetDevice(string guid, UsbDevice& device_request);
// Sets the client for this DeviceManager service. The service will notify its
// client of device events such as connection and disconnection.
- SetClient(DeviceManagerClient client);
+ SetClient(UsbDeviceManagerClient client);
};
-interface DeviceManagerClient {
+interface UsbDeviceManagerClient {
// Called when a device is connected to the host.
- OnDeviceAdded(DeviceInfo device_info);
+ OnDeviceAdded(UsbDeviceInfo device_info);
// Called when a device is disconnected from the host.
- OnDeviceRemoved(DeviceInfo device_info);
+ OnDeviceRemoved(UsbDeviceInfo device_info);
};
« no previous file with comments | « device/usb/public/interfaces/device.mojom ('k') | device/usb/public/interfaces/device_manager.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698