| OLD | NEW |
| 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; |
| 6 |
| 5 import "data_stream.mojom"; | 7 import "data_stream.mojom"; |
| 6 | 8 |
| 7 module device.serial { | |
| 8 | |
| 9 struct DeviceInfo { | 9 struct DeviceInfo { |
| 10 string path; | 10 string path; |
| 11 uint16 vendor_id; | 11 uint16 vendor_id; |
| 12 bool has_vendor_id = false; | 12 bool has_vendor_id = false; |
| 13 uint16 product_id; | 13 uint16 product_id; |
| 14 bool has_product_id = false; | 14 bool has_product_id = false; |
| 15 string? display_name; | 15 string? display_name; |
| 16 }; | 16 }; |
| 17 | 17 |
| 18 enum SendError { | 18 enum SendError { |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 DataSource& source); | 97 DataSource& source); |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 interface Connection { | 100 interface Connection { |
| 101 GetInfo() => (ConnectionInfo? info); | 101 GetInfo() => (ConnectionInfo? info); |
| 102 SetOptions(ConnectionOptions options) => (bool success); | 102 SetOptions(ConnectionOptions options) => (bool success); |
| 103 SetControlSignals(HostControlSignals signals) => (bool success); | 103 SetControlSignals(HostControlSignals signals) => (bool success); |
| 104 GetControlSignals() => (DeviceControlSignals? signals); | 104 GetControlSignals() => (DeviceControlSignals? signals); |
| 105 Flush() => (bool success); | 105 Flush() => (bool success); |
| 106 }; | 106 }; |
| 107 | |
| 108 } | |
| OLD | NEW |