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":"wallpaperPrivate", | |
8 "nodoc": "true", | |
9 "functions": [ | |
10 { | |
11 "name": "getStrings", | |
flackr
2012/07/23 20:52:46
I'm confused why I can't find anything like this f
bshe
2012/07/23 21:01:54
I actually follow the pattern file browser use:
ht
| |
12 "type": "function", | |
13 "description": "Gets translated strings.", | |
14 "nodoc": "true", | |
15 "parameters": [ | |
16 { | |
17 "type": "function", | |
18 "name": "callback", | |
19 "parameters": [ | |
20 { | |
21 "name": "result", | |
22 "type": "object", | |
23 "additionalProperties": {"type": "string"} | |
24 } | |
25 ] | |
26 } | |
27 ] | |
28 }, | |
29 { | |
30 "name": "setWallpaper", | |
31 "type": "function", | |
32 "description": "Sets wallpaper to the image from url with specified layo ut", | |
33 "nodoc": "true", | |
34 "parameters": [ | |
35 { | |
36 "type": "binary", | |
37 "name": "wallpaper" | |
38 }, | |
39 { | |
40 "type": "string", | |
41 "name": "layout", | |
42 "enum": [ "STRETCH", "CENTER", "CENTER_CROPPED"] | |
43 }, | |
44 { | |
45 "type": "string", | |
46 "name": "url" | |
47 } | |
48 ] | |
49 } | |
50 ] | |
51 } | |
52 ] | |
OLD | NEW |