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

Unified Diff: chrome/common/extensions/api/serial.idl

Issue 22804008: Adds Serial API to set data bits, parity, stop bits. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 4 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 | « chrome/browser/extensions/api/serial/serial_connection_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/serial.idl
===================================================================
--- chrome/common/extensions/api/serial.idl (revision 218161)
+++ chrome/common/extensions/api/serial.idl (working copy)
@@ -8,14 +8,25 @@
callback GetPortsCallback = void (DOMString[] ports);
+ enum DataBit { sevenbit, eightbit };
+ enum ParityBit { noparity, oddparity, evenparity };
+ enum StopBit { onestopbit, twostopbit };
+
dictionary OpenOptions {
// The requested bitrate of the connection to be opened. For compatibility
// with the widest range of hardware, this number should match one of
// commonly-available bitrates, such as 110, 300, 1200, 2400, 4800, 9600,
// 14400, 19200, 38400, 57600, 115200. There is no guarantee, of course,
// that the device connected to the serial port will support the requested
- // bitrate, even if the port itself supports that bitrate.
- long bitrate;
+ // bitrate, even if the port itself supports that bitrate. <code>9600</code>
+ // will be passed by default.
+ long? bitrate;
+ // <code>"eightbit"</code> will be passed by default.
+ DataBit? dataBit;
+ // <code>"noparity"</code> will be passed by default.
+ ParityBit? parityBit;
+ // <code>"onestopbit"</code> will be passed by default.
+ StopBit? stopBit;
};
dictionary OpenInfo {
« no previous file with comments | « chrome/browser/extensions/api/serial/serial_connection_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698