blob: f39c8973d4c4b8f86fcebbcd10cb292737300139 [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
[
{
"namespace": "chromeosInfoPrivate",
"description": "none",
"compiler_options": {
"implemented_in": "chrome/browser/chromeos/extensions/info_private_api.h"
},
"platforms": ["chromeos"],
"nodoc": "true",
"functions": [
{
"name": "get",
"description": "Fetches customization values for the given property names. See property names in the declaration of the returned dictionary.",
"type": "function",
"parameters": [
{
"name": "propertyNames",
"type": "array",
"description": "Chrome OS Property names",
"items": {"type": "string"}
},
{
"name": "callback",
"type": "function",
"parameters": [
{
"name": "propertiesDictionary",
"type": "object",
"description": "Dictionary which contains all requested properties",
"properties": {
"board" : {"type": "string", "optional": "true", "description": "Board name"},
"homeProvider" : {"type": "string", "optional": "true", "description": "Home provider which is used by the cellular device"},
"hwid": {"type": "string", "optional": "true", "description": "Hardware ID"},
"initialLocale" : {"type": "string", "optional": "true", "description": "Initial locale for the device"},
"isOwner" : {"type": "boolean", "optional": "true", "description": "True if current logged in user is device owner"},
"timezone" : {"type": "string", "optional": "true", "description": "Timezone"},
"supportedTimezones" : {
"type": "array",
"items": {
"type": "array",
"items": {"type": "string"}
},
"optional": "true",
"description": "List of supported timezones definitions."
}
}
}
]
}
]
},
{
"name": "set",
"description": "Sets values for the given system property.",
"type": "function",
"parameters": [
{
"name": "propertyName",
"type": "string",
"enum": ["timezone"],
"description": "Chrome OS system property name"
},
{
"name": "propertyVame",
"type": "string",
"description": "Chrome OS system property value"
}
]
}
]
}
]