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

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
Index: chrome/common/extensions/api/serial.idl
===================================================================
--- chrome/common/extensions/api/serial.idl (revision 218161)
+++ chrome/common/extensions/api/serial.idl (working copy)
@@ -8,6 +8,10 @@
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
@@ -15,7 +19,10 @@
// 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;
+ long? bitrate;
miket_OOO 2013/08/21 19:43:44 It's OK if we make bitrate optional, but we should
limasdf 2013/08/24 15:46:24 Done.
+ DataBit? dataBit;
+ ParityBit? parityBit;
+ StopBit? stopBit;
};
dictionary OpenInfo {

Powered by Google App Engine
This is Rietveld 408576698