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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/extensions/api/api.gyp ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/cloud_print_private.json
diff --git a/chrome/common/extensions/api/cloud_print_private.json b/chrome/common/extensions/api/cloud_print_private.json
index b208fc25937f0cc877c8e98d6a02b8d36801f8c9..cf7714c655e81dcfbb9a92bc3141b5264f9f15d2 100644
--- a/chrome/common/extensions/api/cloud_print_private.json
+++ b/chrome/common/extensions/api/cloud_print_private.json
@@ -8,8 +8,8 @@
"nodoc": "true",
"functions": [
{
- "name": "setCredentials",
- "description": "Sets the login credentials for Cloud Print.",
+ "name": "setupConnector",
+ "description": "Setup Cloud Print Connector.",
"type": "function",
"parameters": [
{
@@ -28,16 +28,52 @@
"description": "The login credentials(OAuth2 Auth code)."
},
{
+ "name": "connectNewPrinters",
+ "type": "boolean",
+ "description": "True if new printers should be connected."
+ },
+ {
+ "name": "printerBlacklist",
+ "description": "Printers that should not be connected.",
+ "type": "array",
+ "items": {"type": "string"}
+ }
+ ]
+ },
+ {
+ "name": "getHostName",
+ "description": "Returns local hostname.",
+ "type": "function",
+ "parameters": [
+ {
"name": "callback",
"type": "function",
- "description": "Called when a failure happens. Called upon success only in tests.",
- "optional": "true",
+ "description": "Called to return host name.",
"parameters": [
{
"name": "result",
"type": "string",
- "description": "A string result code. The value is non-empty on success only in tests.",
- "optional": "true"
+ "description": "Host name."
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "name": "getPrinters",
+ "description": "Returns local printers.",
+ "type": "function",
+ "parameters": [
+ {
+ "name": "callback",
+ "type": "function",
+ "description": "Called to return printers.",
+ "parameters": [
+ {
+ "name": "result",
+ "type": "array",
+ "items": {"type": "string"},
+ "description": "List of printer names."
}
]
}
« 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