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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/common_resources.grd ('k') | chrome/common/extensions/api/extension_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 [
2 {
3 "namespace": "experimental.serial",
4 "nodoc": true,
5 "functions": [
6 {
7 "name": "open",
8 "type": "function",
9 "description": "Opens a connection to the given serial port.",
10 "parameters": [
11 {
12 "name": "port",
13 "type": "string",
14 "description": "The name of the serial port to open."
15 },
16 {
17 "name": "callback",
18 "type": "function",
19 "description": "Called when the connection has been opened.",
20 "parameters": [
21 {
22 "type": "object",
23 "name": "serialInfo",
24 "properties": {
25 "connectionId": {
26 "type": "integer",
27 "minimum": 1,
28 "description": "The id of the opened connection."
29 }
30 }
31 }
32 ]
33 }
34 ]
35 },
36 {
37 "name": "close",
38 "type": "function",
39 "description": "Closes an open connection.",
40 "parameters": [
41 {
42 "name": "connectionId",
43 "type": "integer",
44 "minimum": 1,
45 "description": "The id of the opened connection."
46 },
47 {
48 "name": "callback",
49 "type": "function",
50 "description": "Called when the connection has been closed.",
51 "parameters": [
52 {
53 "type": "boolean",
54 "name": "result",
55 "description": "True if the connection was successfully closed."
56 }
57 ]
58 }
59 ]
60 }
61 ]
62 }
63 ]
OLDNEW
« 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