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": "chromeAuthPrivate", | |
8 "nodoc": "true", | |
9 "functions": [ | |
10 { | |
11 "name": "setCloudPrintCredentials", | |
12 "description": "Sets the login credentials for Cloud Print.", | |
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": "callback", | |
32 "type": "function", | |
33 "description": "Called when a failure happens. Called upon success o
nly in tests.", | |
34 "optional": "true", | |
35 "parameters": [ | |
36 { | |
37 "name": "result", | |
38 "type": "string", | |
39 "description": "A string result code. The value is non-empty on
success only in tests.", | |
40 "optional": "true" | |
41 } | |
42 ] | |
43 } | |
44 ] | |
45 } | |
46 ] | |
47 } | |
48 ] | |
OLD | NEW |