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

Side by Side Diff: chrome/common/extensions/api/cloud_print_private.json

Issue 11037005: New Cloud Print Private API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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/extensions/api/api.gyp ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 [ 5 [
6 { 6 {
7 "namespace": "cloudPrintPrivate", 7 "namespace": "cloudPrintPrivate",
8 "nodoc": "true", 8 "nodoc": "true",
9 "functions": [ 9 "functions": [
10 { 10 {
11 "name": "setCredentials", 11 "name": "setupConnector",
12 "description": "Sets the login credentials for Cloud Print.", 12 "description": "Setup Cloud Print Connector.",
13 "type": "function", 13 "type": "function",
14 "parameters": [ 14 "parameters": [
15 { 15 {
16 "name": "userEmail", 16 "name": "userEmail",
17 "type": "string", 17 "type": "string",
18 "description": "The email address of the user." 18 "description": "The email address of the user."
19 }, 19 },
20 { 20 {
21 "name": "robotEmail", 21 "name": "robotEmail",
22 "type": "string", 22 "type": "string",
23 "description": "The email address of the robot account." 23 "description": "The email address of the robot account."
24 }, 24 },
25 { 25 {
26 "name": "credentials", 26 "name": "credentials",
27 "type": "string", 27 "type": "string",
28 "description": "The login credentials(OAuth2 Auth code)." 28 "description": "The login credentials(OAuth2 Auth code)."
29 }, 29 },
30 { 30 {
31 "name": "connectNewPrinters",
32 "type": "boolean",
33 "description": "True if new printers should be connected."
34 },
35 {
36 "name": "printerBlacklist",
37 "description": "Printers that should not be connected.",
38 "type": "array",
39 "items": {"type": "string"}
40 }
41 ]
42 },
43 {
44 "name": "getHostName",
45 "description": "Returns local hostname.",
46 "type": "function",
47 "parameters": [
48 {
31 "name": "callback", 49 "name": "callback",
32 "type": "function", 50 "type": "function",
33 "description": "Called when a failure happens. Called upon success o nly in tests.", 51 "description": "Called to return host name.",
34 "optional": "true",
35 "parameters": [ 52 "parameters": [
36 { 53 {
37 "name": "result", 54 "name": "result",
38 "type": "string", 55 "type": "string",
39 "description": "A string result code. The value is non-empty on success only in tests.", 56 "description": "Host name."
40 "optional": "true"
41 } 57 }
42 ] 58 ]
43 } 59 }
60 ]
61 },
62 {
63 "name": "getPrinters",
64 "description": "Returns local printers.",
65 "type": "function",
66 "parameters": [
67 {
68 "name": "callback",
69 "type": "function",
70 "description": "Called to return printers.",
71 "parameters": [
72 {
73 "name": "result",
74 "type": "array",
75 "items": {"type": "string"},
76 "description": "List of printer names."
77 }
78 ]
79 }
44 ] 80 ]
45 } 81 }
46 ] 82 ]
47 } 83 }
48 ] 84 ]
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/api.gyp ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698