OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 [ | 5 [ |
6 { | 6 { |
7 "namespace": "types", | 7 "namespace": "types.private", |
8 "description": "The <code>chrome.types</code> API contains type declarations for Chrome. Currently, this comprises only a prototype for giving other APIs ac cess to manage Chrome browser settings. This prototype is used, for example, for $ref:proxy.settings.", | 8 "description": "The <code>chrome.types.private</code> API contains private t ype declarations for Chrome. ", |
9 "types": [ | 9 "types": [ |
10 { | 10 { |
11 "id": "ChromeSetting", | 11 "id": "ChromeDirectSetting", |
12 "type": "object", | 12 "type": "object", |
13 "js_module": "ChromeSetting", | 13 "js_module": "ChromeDirectSetting", |
14 "customBindings": "ChromeSetting", | 14 "customBindings": "ChromeDirectSetting", |
15 "description": "An interface which allows access to a Chrome browser set ting.", | 15 "description": "An interface which allows component extensions direct ac cess to a Chrome browser setting.", |
16 "functions": [ | 16 "functions": [ |
17 { | 17 { |
18 "name": "get", | 18 "name": "get", |
19 "type": "function", | 19 "type": "function", |
20 "description": "Gets the value of a setting.", | 20 "description": "Gets the value of a setting.", |
21 "parameters": [ | 21 "parameters": [ |
22 { | 22 { |
23 "name": "details", | 23 "name": "details", |
24 "type": "object", | 24 "type": "object", |
25 "description": "What setting to consider.", | 25 "description": "What setting to consider.", |
(...skipping 11 matching lines...) Expand all Loading... | |
37 "parameters": [ | 37 "parameters": [ |
38 { | 38 { |
39 "name": "details", | 39 "name": "details", |
40 "type": "object", | 40 "type": "object", |
41 "description": "Details of the currently effective value.", | 41 "description": "Details of the currently effective value.", |
42 "properties": { | 42 "properties": { |
43 "value": { | 43 "value": { |
44 "description": "The value of the setting.", | 44 "description": "The value of the setting.", |
45 "type": "any" | 45 "type": "any" |
46 }, | 46 }, |
47 "levelOfControl": { | |
48 "description": "One of<br><var>not_controllable</var>: c annot be controlled by any extension<br><var>controlled_by_other_extensions</var >: controlled by extensions with higher precedence<br><var>controllable_by_this_ extension</var>: can be controlled by this extension<br><var>controlled_by_this_ extension</var>: controlled by this extension", | |
49 "type": "string", | |
50 "enum": ["not_controllable", "controlled_by_other_extens ions", "controllable_by_this_extension", "controlled_by_this_extension"] | |
51 }, | |
52 "incognitoSpecific": { | 47 "incognitoSpecific": { |
robliao
2013/07/04 00:12:02
Does anyone foresee component extensions requiring
| |
53 "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.", | 48 "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.", |
54 "type": "boolean", | 49 "type": "boolean", |
55 "optional": true | 50 "optional": true |
56 } | 51 } |
57 } | 52 } |
58 } | 53 } |
59 ] | 54 ] |
60 } | 55 } |
61 ] | 56 ] |
62 }, | 57 }, |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
125 "description": "Fired when the value of the setting changes.", | 120 "description": "Fired when the value of the setting changes.", |
126 "parameters": [ | 121 "parameters": [ |
127 { | 122 { |
128 "type": "object", | 123 "type": "object", |
129 "name": "details", | 124 "name": "details", |
130 "properties": { | 125 "properties": { |
131 "value": { | 126 "value": { |
132 "description": "The value of the setting.", | 127 "description": "The value of the setting.", |
133 "type": "any" | 128 "type": "any" |
134 }, | 129 }, |
135 "levelOfControl": { | |
136 "description": "One of<br><var>not_controllable</var>: canno t be controlled by any extension<br><var>controlled_by_other_extensions</var>: c ontrolled by extensions with higher precedence<br><var>controllable_by_this_exte nsion</var>: can be controlled by this extension<br><var>controlled_by_this_exte nsion</var>: controlled by this extension", | |
137 "type": "string", | |
138 "enum": ["not_controllable", "controlled_by_other_extensions ", "controllable_by_this_extension", "controlled_by_this_extension"] | |
139 }, | |
140 "incognitoSpecific": { | 130 "incognitoSpecific": { |
141 "description": "Whether the value that has changed is specif ic to the incognito session.<br>This property will <em>only</em> be present if t he user has enabled the extension in incognito mode.", | 131 "description": "Whether the value that has changed is specif ic to the incognito session.<br>This property will <em>only</em> be present if t he user has enabled the extension in incognito mode.", |
142 "type": "boolean", | 132 "type": "boolean", |
143 "optional": true | 133 "optional": true |
144 } | 134 } |
145 } | 135 } |
146 } | 136 } |
147 ] | 137 ] |
148 } | 138 } |
149 ] | 139 ] |
150 } | 140 } |
151 ] | 141 ] |
152 } | 142 } |
153 ] | 143 ] |
OLD | NEW |