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": "experimental.fontSettings", | 7 "namespace": "experimental.fontSettings", |
8 "types": [ | 8 "types": [ |
9 { | 9 { |
10 "id": "FontName", | 10 "id": "FontName", |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
278 } | 278 } |
279 }, | 279 }, |
280 { | 280 { |
281 "type": "function", | 281 "type": "function", |
282 "name": "callback", | 282 "name": "callback", |
283 "optional": true, | 283 "optional": true, |
284 "parameters": [] | 284 "parameters": [] |
285 } | 285 } |
286 ] | 286 ] |
287 } | 287 } |
288 ], | |
289 "events": [ | |
290 { | |
291 "name": "onFontNameChanged", | |
Matt Perry
2012/04/12 20:31:44
The name of this event is confusing to me. It soun
falken
2012/04/13 10:33:46
What do you think of changing get/setFontName to j
Matt Perry
2012/04/13 18:15:45
Perfect, SGTM
| |
292 "type": "function", | |
Bernhard Bauer
2012/04/12 13:14:01
The "type" attribute is unnecessary for events, an
falken
2012/04/13 10:33:46
Done.
| |
293 "description": "Fired when a font name preference changes.", | |
294 "parameters": [ | |
295 { | |
296 "type": "object", | |
297 "name": "details", | |
298 "properties": { | |
299 "fontName": { "type": "string" }, | |
300 "script": { | |
301 "type": "string", | |
302 "enum": [ | |
Bernhard Bauer
2012/04/12 13:14:01
You could pull out this enum into a separate type,
falken
2012/04/13 10:33:46
Done, and also moved genericFamily to a new type.
| |
303 "Arab", "Armn", "Beng", "Cans", "Cher", "Cyrl", "Deva", "Eth i", "Geor", | |
304 "Grek", "Gujr", "Guru", "Hang", "Hans", "Hant", "Hebr", "Hrk t", "Knda", | |
305 "Khmr", "Laoo", "Mlym", "Mong", "Mymr", "Orya", "Sinh", "Tam l", "Telu", | |
306 "Thaa", "Thai", "Tibt", "Yiii" | |
307 ], | |
308 "description": "The ISO 15924 script code for which the font set ting has changed. If omitted, the global script font setting has changed.", | |
309 "optional": true | |
310 }, | |
311 "genericFamily": { | |
312 "type": "string", | |
313 "enum": ["standard", "sansserif", "serif", "fixed", "cursive", " fantasy"], | |
314 "description": "The CSS generic font family for which the font s etting has changed." | |
315 }, | |
316 "levelOfControl": { | |
317 "description": "One of<br><var>not_controllable</var>: cannot be controlled by any extension<br><var>controlled_by_other_extensions</var>: contr olled by extensions with higher precedence<br><var>controllable_by_this_extensio n</var>: can be controlled by this extension<br><var>controlled_by_this_extensio n</var>: controlled by this extension", | |
318 "type": "string", | |
319 "enum": ["not_controllable", "controlled_by_other_extensions", " controllable_by_this_extension", "controlled_by_this_extension"] | |
320 } | |
321 } | |
322 } | |
323 ] | |
324 } | |
288 ] | 325 ] |
289 } | 326 } |
290 ] | 327 ] |
OLD | NEW |