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.
8 "description": "The <code>chrome.types</code> API contains type declarations for Chrome.",
11 "id": "ChromeSettingScope",
13 "enum": ["regular", "regular_only", "incognito_persistent", "incognito_session_only"],
14 "description": "The scope of the ChromeSetting. One of<ul><li><var>regular</var>: setting for the regular profile (which is inherited by the incognito profile if not overridden elsewhere),</li><li><var>regular_only</var>: setting for the regular profile only (not inherited by the incognito profile),</li><li><var>incognito_persistent</var>: setting for the incognito profile that survives browser restarts (overrides regular preferences),</li><li><var>incognito_session_only</var>: setting for the incognito profile that can only be set during an incognito session and is deleted when the incognito session ends (overrides regular and incognito_persistent preferences).</li></ul>"
17 "id": "LevelOfControl",
19 "enum": ["not_controllable", "controlled_by_other_extensions", "controllable_by_this_extension", "controlled_by_this_extension"],
20 "description": "One of<ul><li><var>not_controllable</var>: cannot be controlled by any extension</li><li><var>controlled_by_other_extensions</var>: controlled by extensions with higher precedence</li><li><var>controllable_by_this_extension</var>: can be controlled by this extension</li><li><var>controlled_by_this_extension</var>: controlled by this extension</li></ul>"
23 "id": "ChromeSetting",
25 "js_module": "ChromeSetting",
26 "customBindings": "ChromeSetting",
27 "description": "An interface that allows access to a Chrome browser setting. See $(ref:accessibilityFeatures) for an example.",
33 "description": "Gets the value of a setting.",
38 "description": "Which setting to consider.",
43 "description": "Whether to return the value that applies to the incognito session (default false)."
54 "description": "Details of the currently effective value.",
57 "description": "The value of the setting.",
61 "$ref": "LevelOfControl",
62 "description": "The level of control of the setting."
64 "incognitoSpecific": {
65 "description": "Whether the effective value is specific to the incognito session.<br/>This property will <em>only</em> be present if the <var>incognito</var> property in the <var>details</var> parameter of <code>get()</code> was true.",
79 "description": "Sets the value of a setting.",
84 "description": "Which setting to change.",
87 "description": "The value of the setting. <br/>Note that every setting has a specific value type, which is described together with the setting. An extension should <em>not</em> set a value of a different type.",
91 "$ref": "ChromeSettingScope",
93 "description": "Where to set the setting (default: regular)."
100 "description": "Called at the completion of the set operation.",
110 "description": "Clears the setting, restoring any default value.",
115 "description": "Which setting to clear.",
118 "$ref": "ChromeSettingScope",
120 "description": "Where to clear the setting (default: regular)."
127 "description": "Called at the completion of the clear operation.",
137 "description": "Fired after the setting changes.",
144 "description": "The value of the setting after the change.",
148 "$ref": "LevelOfControl",
149 "description": "The level of control of the setting."
151 "incognitoSpecific": {
152 "description": "Whether the value that has changed is specific to the incognito session.<br/>This property will <em>only</em> be present if the user has enabled the extension in incognito mode.",