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

Unified Diff: chrome/browser/extensions/api/serial/serial_api.h

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 | « no previous file | chrome/browser/extensions/api/serial/serial_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/serial/serial_api.h
===================================================================
--- chrome/browser/extensions/api/serial/serial_api.h (revision 218161)
+++ chrome/browser/extensions/api/serial/serial_api.h (working copy)
@@ -13,6 +13,8 @@
#include "chrome/common/extensions/api/serial.h"
#include "net/base/io_buffer.h"
+namespace serial = extensions::api::serial;
+
namespace extensions {
class SerialConnection;
@@ -69,12 +71,19 @@
virtual SerialConnection* CreateSerialConnection(
const std::string& port,
int bitrate,
+ serial::DataBit databit,
+ serial::ParityBit parity,
+ serial::StopBit stopbit,
const std::string& owner_extension_id);
+
virtual bool DoesPortExist(const std::string& port);
private:
scoped_ptr<api::serial::Open::Params> params_;
int bitrate_;
+ api::serial::DataBit databit_;
+ api::serial::ParityBit parity_;
+ api::serial::StopBit stopbit_;
};
class SerialCloseFunction : public SerialAsyncApiFunction {
« no previous file with comments | « no previous file | chrome/browser/extensions/api/serial/serial_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698