Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / chrome / common / extensions / api / chromeos_info_private.json
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": "chromeosInfoPrivate",
8     "description": "none",
9     "compiler_options": {
10       "implemented_in": "chrome/browser/chromeos/extensions/info_private_api.h"
11     },
12     "platforms": ["chromeos"],
13     "nodoc": "true",
14     "functions": [
15       {
16         "name": "get",
17         "description": "Fetches customization values for the given property names. See property names in the declaration of the returned dictionary.",
18         "type": "function",
19         "parameters": [
20           {
21             "name": "propertyNames",
22             "type": "array",
23             "description": "Chrome OS Property names",
24             "items": {"type": "string"}
25           },
26           {
27             "name": "callback",
28             "type": "function",
29             "parameters": [
30               {
31                 "name": "propertiesDictionary",
32                 "type": "object",
33                 "description": "Dictionary which contains all requested properties",
34                 "properties": {
35                   "board" : {"type": "string", "optional": "true", "description": "Board name"},
36                   "homeProvider" : {"type": "string", "optional": "true", "description": "Home provider which is used by the cellular device"},
37                   "hwid": {"type": "string", "optional": "true", "description": "Hardware ID"},
38                   "initialLocale" : {"type": "string", "optional": "true", "description": "Initial locale for the device"},
39                   "isOwner" : {"type": "boolean", "optional": "true", "description": "True if current logged in user is device owner"},
40                   "timezone" : {"type": "string", "optional": "true", "description": "Timezone"},
41                   "a11yLargeCursorEnabled" : {"type": "boolean", "optional": "true", "description": "If true, ChromeOS is showing enlarged cursor."},
42                   "a11yStickyKeysEnabled" : {"type": "boolean", "optional": "true", "description": "If true, sticky keys are turned on."},
43                   "a11ySpokenFeedbackEnabled" : {"type": "boolean", "optional": "true", "description": "If enabled, ChromeOS text-to-speech feature is turned on."},
44                   "a11yHighContrastEnabled" : {"type": "boolean", "optional": "true", "description": "If true, all displays have high contrast mode turned on."},
45                   "a11yScreenMagnifierEnabled" : {"type": "boolean", "optional": "true", "description": "If true, all displays have screen magnifier turned on."},
46                   "a11yAutoClickEnabled" : {"type": "boolean", "optional": "true", "description": "If true, auto mouse click accessibility feature is turned on."},
47                   "a11yVirtualKeyboardEnabled" : {"type": "boolean", "optional": "true", "description": "If true, virtual keyboard will be enabled."},
48                   "sendFunctionKeys" : {"type": "boolean", "optional": "true", "description": "If true, the ChromeOS top row keys send function keys."},
49                   "supportedTimezones" : {
50                     "type": "array",
51                     "items": {
52                       "type": "array",
53                       "items": {"type": "string"}
54                     },
55                     "optional": "true",
56                     "description": "List of supported timezones definitions."
57                   }
58                 }
59               }
60             ]
61           }
62         ]
63       },
64       {
65         "name": "set",
66         "description": "Sets values for the given system property.",
67         "type": "function",
68         "parameters": [
69           {
70             "name": "propertyName",
71             "type": "string",
72             "enum": ["timezone",
73                      "a11yLargeCursorEnabled",
74                      "a11yStickyKeysEnabled",
75                      "a11ySpokenFeedbackEnabled",
76                      "a11yHighContrastEnabled",
77                      "a11yScreenMagnifierEnabled",
78                      "a11yAutoClickEnabled",
79                      "a11yVirtualKeyboardEnabled",
80                      "sendFunctionKeys"],
81             "description": "Chrome OS system property name"
82           },
83           {
84             "name": "propertyValue",
85             "type": "any",
86             "description": "Chrome OS system property value"
87           }
88         ]
89       }
90     ]
91   }
92 ]