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

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

Issue 1128943005: Implement break signal for serial api. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: histogram, VLOG Created 5 years, 6 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 | « extensions/browser/extension_function_histogram_value.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/api/serial.idl
diff --git a/extensions/common/api/serial.idl b/extensions/common/api/serial.idl
index d5bbc02aca2496ee770b304817721446dda67585..dae1135759778fd90cecbbe059251476d24e572b 100644
--- a/extensions/common/api/serial.idl
+++ b/extensions/common/api/serial.idl
@@ -171,6 +171,10 @@ namespace serial {
callback FlushCallback = void (boolean result);
+ callback SetBreakCallback = void (boolean result);
+
+ callback ClearBreakCallback = void (boolean result);
+
// The set of control signals which may be sent to a connected serial device
// using <code>setControlSignals</code>. Note that support for these signals
// is device-dependent.
@@ -307,6 +311,16 @@ namespace serial {
static void setControlSignals(long connectionId,
HostControlSignals signals,
SetControlSignalsCallback callback);
+
+ // Suspends character transmission on a given connection and places the
+ // transmission line in a break state until the clearBreak is called.
+ // |connectionId| : The id of the connection.
+ static void setBreak(long connectionId, SetBreakCallback callback);
+
+ // Restore character transmission on a given connection and place the
+ // transmission line in a nonbreak state.
+ // |connectionId| : The id of the connection.
+ static void clearBreak(long connectionId, ClearBreakCallback callback);
};
interface Events {
« no previous file with comments | « extensions/browser/extension_function_histogram_value.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698