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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « device/serial/serial.gyp ('k') | device/serial/serial_connection.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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.serial { 5 module device.serial {
6 6
7 struct DeviceInfo { 7 struct DeviceInfo {
8 string path; 8 string path;
9 uint16 vendor_id; 9 uint16 vendor_id;
10 bool has_vendor_id = false; 10 bool has_vendor_id = false;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 struct DeviceControlSignals { 75 struct DeviceControlSignals {
76 bool dcd; 76 bool dcd;
77 bool cts; 77 bool cts;
78 bool ri; 78 bool ri;
79 bool dsr; 79 bool dsr;
80 }; 80 };
81 81
82 interface SerialService { 82 interface SerialService {
83 GetDevices() => (DeviceInfo[] devices); 83 GetDevices() => (DeviceInfo[] devices);
84 Connect(string path,
85 ConnectionOptions options,
86 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.
87 };
88
89 interface Connection {
90 GetInfo() => (ConnectionInfo info);
91 SetOptions(ConnectionOptions options) => (bool success);
92 SetControlSignals(HostControlSignals signals) => (bool success);
93 GetControlSignals() => (DeviceControlSignals signals);
94 Flush() => (bool success);
84 }; 95 };
85 96
86 } 97 }
OLDNEW
« 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