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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 WriteCallback callback); | 71 WriteCallback callback); |
74 | 72 |
75 // Flushes all bytes in the given connection's input and output buffers. | 73 // Flushes all bytes in the given connection's input and output buffers. |
76 // |connectionId| : The id of the connection. | 74 // |connectionId| : The id of the connection. |
77 // |callback| : Called when the flush is complete. | 75 // |callback| : Called when the flush is complete. |
78 static void flush(long connectionId, | 76 static void flush(long connectionId, |
79 FlushCallback callback); | 77 FlushCallback callback); |
80 }; | 78 }; |
81 | 79 |
82 }; | 80 }; |
OLD | NEW |