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

Unified Diff: device/serial/serial.mojom

Issue 401563002: Add a partial Mojo serial connection interface and implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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/serial/serial.gyp ('k') | device/serial/serial_connection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/serial/serial.mojom
diff --git a/device/serial/serial.mojom b/device/serial/serial.mojom
index 0c4f1003312479044fd0a96153782155c36258aa..3a788c26951cbfdaf117cdf1ab17a79a5efdadf4 100644
--- a/device/serial/serial.mojom
+++ b/device/serial/serial.mojom
@@ -81,6 +81,17 @@ struct DeviceControlSignals {
interface SerialService {
GetDevices() => (DeviceInfo[] devices);
+ Connect(string path,
+ ConnectionOptions options,
+ Connection& connection_request);
darin (slow to review) 2014/07/18 04:46:15 nit: stylistically, i think it is OK to call this
Sam McNally 2014/07/21 03:25:37 Done.
+};
+
+interface Connection {
+ GetInfo() => (ConnectionInfo info);
+ SetOptions(ConnectionOptions options) => (bool success);
+ SetControlSignals(HostControlSignals signals) => (bool success);
+ GetControlSignals() => (DeviceControlSignals signals);
+ Flush() => (bool success);
};
}
« no previous file with comments | « device/serial/serial.gyp ('k') | device/serial/serial_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698