Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(296)

Side by Side Diff: chrome/common/extensions/api/experimental.fontSettings.json

Issue 9853013: Expose more font size prefs to the Font Settings Extension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: "true" to true Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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": "experimental.fontSettings", 7 "namespace": "experimental.fontSettings",
8 "types": [ 8 "types": [
9 { 9 {
10 "id": "FontName", 10 "id": "FontName",
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 "genericFamily": { 46 "genericFamily": {
47 "type": "string", 47 "type": "string",
48 "enum": ["standard", "sansserif", "serif", "fixed", "cursive", " fantasy"], 48 "enum": ["standard", "sansserif", "serif", "fixed", "cursive", " fantasy"],
49 "description": "The CSS generic font family for which the font s etting should be retrieved." 49 "description": "The CSS generic font family for which the font s etting should be retrieved."
50 } 50 }
51 } 51 }
52 }, 52 },
53 { 53 {
54 "type": "function", 54 "type": "function",
55 "name": "callback", 55 "name": "callback",
56 "optional": "true", 56 "optional": true,
57 "parameters": [ 57 "parameters": [
58 { 58 {
59 "name": "details", 59 "name": "details",
60 "type": "object", 60 "type": "object",
61 "properties": { 61 "properties": {
62 "fontName": { 62 "fontName": {
63 "type": "string", 63 "type": "string",
64 "description": "The font name." 64 "description": "The font name."
65 } 65 }
66 } 66 }
(...skipping 29 matching lines...) Expand all
96 }, 96 },
97 "fontName": { 97 "fontName": {
98 "type": "string", 98 "type": "string",
99 "description": "The font name." 99 "description": "The font name."
100 } 100 }
101 } 101 }
102 }, 102 },
103 { 103 {
104 "type": "function", 104 "type": "function",
105 "name": "callback", 105 "name": "callback",
106 "optional": "true", 106 "optional": true,
107 "parameters": [] 107 "parameters": []
108 } 108 }
109 ] 109 ]
110 }, 110 },
111 { 111 {
112 "name": "getFontList", 112 "name": "getFontList",
113 "type": "function", 113 "type": "function",
114 "description": "Gets a list of fonts on the system.", 114 "description": "Gets a list of fonts on the system.",
115 "parameters": [ 115 "parameters": [
116 { 116 {
(...skipping 10 matching lines...) Expand all
127 ] 127 ]
128 }, 128 },
129 { 129 {
130 "name": "getDefaultFontSize", 130 "name": "getDefaultFontSize",
131 "type": "function", 131 "type": "function",
132 "description": "Gets the default font size.", 132 "description": "Gets the default font size.",
133 "parameters": [ 133 "parameters": [
134 { 134 {
135 "name": "details", 135 "name": "details",
136 "type": "object", 136 "type": "object",
137 "optional": true,
137 "description": "This parameter is currently unused." 138 "description": "This parameter is currently unused."
138 }, 139 },
139 { 140 {
140 "name": "callback", 141 "name": "callback",
141 "type": "function", 142 "type": "function",
142 "optional": "true", 143 "optional": true,
143 "parameters": [ 144 "parameters": [
144 { 145 {
145 "name": "details", 146 "name": "details",
146 "type": "object", 147 "type": "object",
147 "properties": { 148 "properties": {
148 "pixelSize": { 149 "pixelSize": {
149 "type": "integer", 150 "type": "integer",
150 "description": "The font size in pixels." 151 "description": "The font size in pixels."
151 } 152 }
152 } 153 }
(...skipping 13 matching lines...) Expand all
166 "properties": { 167 "properties": {
167 "pixelSize": { 168 "pixelSize": {
168 "type": "integer", 169 "type": "integer",
169 "description": "The font size in pixels." 170 "description": "The font size in pixels."
170 } 171 }
171 } 172 }
172 }, 173 },
173 { 174 {
174 "type": "function", 175 "type": "function",
175 "name": "callback", 176 "name": "callback",
176 "optional": "true", 177 "optional": true,
177 "parameters": [] 178 "parameters": []
178 } 179 }
179 ] 180 ]
181 },
182 {
183 "name": "getDefaultFixedFontSize",
184 "type": "function",
185 "description": "Gets the default size for fixed width fonts.",
186 "parameters": [
187 {
188 "name": "details",
189 "type": "object",
190 "optional": true,
191 "description": "This parameter is currently unused."
192 },
193 {
194 "name": "callback",
195 "type": "function",
196 "optional": true,
197 "parameters": [
198 {
199 "name": "details",
200 "type": "object",
201 "properties": {
202 "pixelSize": {
203 "type": "integer",
204 "description": "The font size in pixels."
205 }
206 }
207 }
208 ]
209 }
210 ]
211 },
212 {
213 "name": "setDefaultFixedFontSize",
214 "type": "function",
215 "description": "Sets the default size for fixed width fonts.",
216 "parameters": [
217 {
218 "name": "details",
219 "type": "object",
220 "properties": {
221 "pixelSize": {
222 "type": "integer",
223 "description": "The font size in pixels."
224 }
225 }
226 },
227 {
228 "type": "function",
229 "name": "callback",
230 "optional": true,
231 "parameters": []
232 }
233 ]
234 },
235 {
236 "name": "getMinimumFontSize",
237 "type": "function",
238 "description": "Gets the minimum font size.",
239 "parameters": [
240 {
241 "name": "details",
242 "type": "object",
243 "optional": true,
244 "description": "This parameter is currently unused."
245 },
246 {
247 "name": "callback",
248 "type": "function",
249 "optional": true,
250 "parameters": [
251 {
252 "name": "details",
253 "type": "object",
254 "properties": {
255 "pixelSize": {
256 "type": "integer",
257 "description": "The font size in pixels."
258 }
259 }
260 }
261 ]
262 }
263 ]
264 },
265 {
266 "name": "setMinimumFontSize",
267 "type": "function",
268 "description": "Sets the minimum font size.",
269 "parameters": [
270 {
271 "name": "details",
272 "type": "object",
273 "properties": {
274 "pixelSize": {
275 "type": "integer",
276 "description": "The font size in pixels."
277 }
278 }
279 },
280 {
281 "type": "function",
282 "name": "callback",
283 "optional": true,
284 "parameters": []
285 }
286 ]
180 } 287 }
181 ] 288 ]
182 } 289 }
183 ] 290 ]
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_function_registry.cc ('k') | chrome/common/extensions/docs/experimental.fontSettings.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698