Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 "types": [ | |
| 10 { | |
| 11 "id": "PrinterSettings", | |
| 12 "type": "object", | |
| 13 "description": "Settings per printer.", | |
| 14 "additionalProperties": { "type": "any" }, | |
|
asargent_no_longer_on_chrome
2013/04/17 19:05:04
Did you actually need this to avoid validation err
Vitaly Buka (NO REVIEWS)
2013/04/18 00:00:11
Done.
| |
| 15 "properties": { | |
| 16 "name": { | |
| 17 "type": "string", | |
| 18 "description": "Unique printer id." | |
| 19 }, | |
| 20 "connect": { | |
| 21 "type": "boolean", | |
| 22 "description": "Whether printer is selected." | |
| 23 }, | |
| 24 "displayName": { | |
| 25 "type": "string", | |
| 26 "optional": true, | |
| 27 "description": "Printer name visible to user." | |
| 28 } | |
| 29 } | |
| 30 }, | |
| 31 { | |
| 32 "id": "UserSettings", | |
| 33 "type": "object", | |
| 34 "description": "Settings set by user.", | |
| 35 "additionalProperties": { "type": "any" }, | |
| 36 "properties": { | |
| 37 "printers": { | |
| 38 "description": "Printer settings.", | |
| 39 "type": "array", | |
| 40 "items": { | |
| 41 "$ref": "PrinterSettings" | |
| 42 } | |
| 43 }, | |
| 44 "connectNewPrinters": { | |
| 45 "type": "boolean", | |
| 46 "description": "Whether should printer be connected." | |
| 47 } | |
| 48 } | |
| 49 } | |
| 50 ], | |
| 9 "functions": [ | 51 "functions": [ |
| 10 { | 52 { |
| 11 "name": "setupConnector", | 53 "name": "setupConnector", |
| 12 "description": "Setup Cloud Print Connector.", | 54 "description": "Setup Cloud Print Connector.", |
| 13 "type": "function", | 55 "type": "function", |
| 14 "parameters": [ | 56 "parameters": [ |
| 15 { | 57 { |
| 16 "name": "userEmail", | 58 "name": "userEmail", |
| 17 "type": "string", | 59 "type": "string", |
| 18 "description": "The email address of the user." | 60 "description": "The email address of the user." |
| 19 }, | 61 }, |
| 20 { | 62 { |
| 21 "name": "robotEmail", | 63 "name": "robotEmail", |
| 22 "type": "string", | 64 "type": "string", |
| 23 "description": "The email address of the robot account." | 65 "description": "The email address of the robot account." |
| 24 }, | 66 }, |
| 25 { | 67 { |
| 26 "name": "credentials", | 68 "name": "credentials", |
| 27 "type": "string", | 69 "type": "string", |
| 28 "description": "The login credentials(OAuth2 Auth code)." | 70 "description": "The login credentials(OAuth2 Auth code)." |
| 29 }, | 71 }, |
| 30 { | 72 { |
| 31 "name": "connectNewPrinters", | 73 "name": "userSettings", |
| 32 "type": "boolean", | 74 "$ref": "UserSettings", |
| 33 "description": "True if new printers should be connected." | 75 "description": "Options configured by user." |
| 34 }, | |
| 35 { | |
| 36 "name": "printerBlacklist", | |
| 37 "description": "Printers that should not be connected.", | |
| 38 "type": "array", | |
| 39 "items": {"type": "string"} | |
| 40 } | 76 } |
| 41 ] | 77 ] |
| 42 }, | 78 }, |
| 43 { | 79 { |
| 44 "name": "getHostName", | 80 "name": "getHostName", |
| 45 "description": "Returns local hostname.", | 81 "description": "Returns local hostname.", |
| 46 "type": "function", | 82 "type": "function", |
| 47 "parameters": [ | 83 "parameters": [ |
| 48 { | 84 { |
| 49 "name": "callback", | 85 "name": "callback", |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 94 "type": "string", | 130 "type": "string", |
| 95 "description": "Client ID." | 131 "description": "Client ID." |
| 96 } | 132 } |
| 97 ] | 133 ] |
| 98 } | 134 } |
| 99 ] | 135 ] |
| 100 } | 136 } |
| 101 ] | 137 ] |
| 102 } | 138 } |
| 103 ] | 139 ] |
| OLD | NEW |