Home | History | Annotate | Download | only in api
      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                   "hwid": {"type": "string", "optional": "true", "description": "Hardware ID"},
     36                   "homeProvider" : {"type": "string", "optional": "true", "description": "Home provider which is used by the cellular device"},
     37                   "initialLocale" : {"type": "string", "optional": "true", "description": "Initial locale for the device"},
     38                   "board" : {"type": "string", "optional": "true", "description": "Board name"},
     39                   "isOwner" : {"type": "boolean", "optional": "true", "description": "True if current logged in user is device owner"}
     40                 }
     41               }
     42             ]
     43           }
     44         ]
     45       }
     46     ]
     47   }
     48 ]
     49