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": "ChromeSetting",
13 "js_module": "ChromeSetting",
14 "customBindings": "ChromeSetting",
15 "description": "An interface that allows access to a Chrome browser setting. See $(ref:proxy.settings) for an example.",
21 "description": "Gets the value of a setting.",
26 "description": "Which setting to consider.",
31 "description": "Whether to return the value that applies to the incognito session (default false)."
42 "description": "Details of the currently effective value.",
45 "description": "The value of the setting.",
49 "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>",
51 "enum": ["not_controllable", "controlled_by_other_extensions", "controllable_by_this_extension", "controlled_by_this_extension"]
53 "incognitoSpecific": {
54 "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.",
68 "description": "Sets the value of a setting.",
73 "description": "Which setting to change.",
76 "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.",
81 "enum": ["regular", "regular_only", "incognito_persistent", "incognito_session_only"],
83 "description": "Where to set the setting (default: regular). 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>"
90 "description": "Called at the completion of the set operation.",
100 "description": "Clears the setting, restoring any default value.",
105 "description": "Which setting to clear.",
109 "enum": ["regular", "regular_only", "incognito_persistent", "incognito_session_only"],
111 "description": "Where to clear the setting (default: regular). 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>"
118 "description": "Called at the completion of the clear operation.",
128 "description": "Fired after the setting changes.",
135 "description": "The value of the setting after the change.",
139 "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>",
141 "enum": ["not_controllable", "controlled_by_other_extensions", "controllable_by_this_extension", "controlled_by_this_extension"]
143 "incognitoSpecific": {
144 "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.",
155 "id": "ImageDetails",
157 "description": "Details about the format and quality of an image.",
162 "enum": ["jpeg", "png"],
163 "description": "The format of the resulting image. Default is <code>\"jpeg\"</code>."
170 "description": "When format is <code>\"jpeg\"</code>, controls the quality of the resulting image. This value is ignored for PNG images. As quality is decreased, the resulting image will have more visual artifacts, and the number of bytes needed to store it will decrease."