| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 [ |
| 6 { |
| 7 "namespace": "cloudPrintPrivate", |
| 8 "nodoc": "true", |
| 9 "functions": [ |
| 10 { |
| 11 "name": "setupConnector", |
| 12 "description": "Setup Cloud Print Connector.", |
| 13 "type": "function", |
| 14 "parameters": [ |
| 15 { |
| 16 "name": "userEmail", |
| 17 "type": "string", |
| 18 "description": "The email address of the user." |
| 19 }, |
| 20 { |
| 21 "name": "robotEmail", |
| 22 "type": "string", |
| 23 "description": "The email address of the robot account." |
| 24 }, |
| 25 { |
| 26 "name": "credentials", |
| 27 "type": "string", |
| 28 "description": "The login credentials(OAuth2 Auth code)." |
| 29 }, |
| 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 { |
| 49 "name": "callback", |
| 50 "type": "function", |
| 51 "description": "Called to return host name.", |
| 52 "parameters": [ |
| 53 { |
| 54 "name": "result", |
| 55 "type": "string", |
| 56 "description": "Host name." |
| 57 } |
| 58 ] |
| 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 } |
| 80 ] |
| 81 } |
| 82 ] |
| 83 } |
| 84 ] |
| OLD | NEW |