• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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                  "supportedTimezones" : {
42                    "type": "array",
43                    "items": {
44                      "type": "array",
45                      "items": {"type": "string"}
46                    },
47                    "optional": "true",
48                    "description": "List of supported timezones definitions."
49                  }
50                }
51              }
52            ]
53          }
54        ]
55      },
56      {
57        "name": "set",
58        "description": "Sets values for the given system property.",
59        "type": "function",
60        "parameters": [
61          {
62            "name": "propertyName",
63            "type": "string",
64            "enum": ["timezone"],
65            "description": "Chrome OS system property name"
66          },
67          {
68            "name": "propertyVame",
69            "type": "string",
70            "description": "Chrome OS system property value"
71          }
72        ]
73      }
74    ]
75  }
76]
77