OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // File-level comment to appease parser. Eventually this will not be necessary. | |
6 | |
7 [nodoc] namespace experimental.serial { | 5 [nodoc] namespace experimental.serial { |
8 | 6 |
9 callback GetPortsCallback = void (DOMString[] ports); | 7 callback GetPortsCallback = void (DOMString[] ports); |
10 | 8 |
11 dictionary OpenInfo { | 9 dictionary OpenInfo { |
12 // The id of the opened connection. | 10 // The id of the opened connection. |
13 long connectionId; | 11 long connectionId; |
14 }; | 12 }; |
15 | 13 |
16 callback OpenCallback = void (OpenInfo openInfo); | 14 callback OpenCallback = void (OpenInfo openInfo); |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 // Writes a string to the given connection. | 61 // Writes a string to the given connection. |
64 // |connectionId| : The id of the connection. | 62 // |connectionId| : The id of the connection. |
65 // |data| : The string to write. | 63 // |data| : The string to write. |
66 // |callback| : Called when the string has been written. | 64 // |callback| : Called when the string has been written. |
67 static void write(long connectionId, | 65 static void write(long connectionId, |
68 ArrayBuffer data, | 66 ArrayBuffer data, |
69 WriteCallback callback); | 67 WriteCallback callback); |
70 }; | 68 }; |
71 | 69 |
72 }; | 70 }; |
OLD | NEW |