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

Unified Diff: chrome/common/extensions/api/experimental.serial.json

Issue 9174019: Add skeleton plumbing for serial API. No functionality yet. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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/common/common_resources.grd ('k') | chrome/common/extensions/api/extension_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/experimental.serial.json
diff --git a/chrome/common/extensions/api/experimental.serial.json b/chrome/common/extensions/api/experimental.serial.json
new file mode 100644
index 0000000000000000000000000000000000000000..1fe32c0d01fa26079ac766a7814c9f98c1446c94
--- /dev/null
+++ b/chrome/common/extensions/api/experimental.serial.json
@@ -0,0 +1,63 @@
+[
+ {
+ "namespace": "experimental.serial",
+ "nodoc": true,
+ "functions": [
+ {
+ "name": "open",
+ "type": "function",
+ "description": "Opens a connection to the given serial port.",
+ "parameters": [
+ {
+ "name": "port",
+ "type": "string",
+ "description": "The name of the serial port to open."
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "description": "Called when the connection has been opened.",
+ "parameters": [
+ {
+ "type": "object",
+ "name": "serialInfo",
+ "properties": {
+ "connectionId": {
+ "type": "integer",
+ "minimum": 1,
+ "description": "The id of the opened connection."
+ }
+ }
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "name": "close",
+ "type": "function",
+ "description": "Closes an open connection.",
+ "parameters": [
+ {
+ "name": "connectionId",
+ "type": "integer",
+ "minimum": 1,
+ "description": "The id of the opened connection."
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "description": "Called when the connection has been closed.",
+ "parameters": [
+ {
+ "type": "boolean",
+ "name": "result",
+ "description": "True if the connection was successfully closed."
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+]
« no previous file with comments | « chrome/common/common_resources.grd ('k') | chrome/common/extensions/api/extension_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698