| 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", |
| 11 "type": "object", | 11 "type": "object", |
| 12 "description": "Represents a font name.", | 12 "description": "Represents a font name.", |
| 13 "properties": { | 13 "properties": { |
| 14 "fontName": { | 14 "fontName": { |
| 15 "type": "string", | 15 "type": "string", |
| 16 "description": "The font name." | 16 "description": "The font name." |
| 17 }, | 17 }, |
| 18 "localizedName": { | 18 "localizedName": { |
| 19 "type": "string", | 19 "type": "string", |
| 20 "description": "The font name localized for the current locale." | 20 "description": "The font name localized for the current locale." |
| 21 } | 21 } |
| 22 } | 22 } |
| 23 }, | 23 }, |
| 24 { | 24 { |
| 25 "id": "ScriptCode", | 25 "id": "ScriptCode", |
| 26 "type": "string", | 26 "type": "string", |
| 27 "enum": [ "Arab", "Armn", "Beng", "Cans", "Cher", "Cyrl", "Deva", "Ethi"
, "Geor", | 27 "enum": [ "Arab", "Armn", "Beng", "Cans", "Cher", "Cyrl", "Deva", "Ethi"
, "Geor", |
| 28 "Grek", "Gujr", "Guru", "Hang", "Hans", "Hant", "Hebr", "Hrkt"
, "Knda", | 28 "Grek", "Gujr", "Guru", "Hang", "Hans", "Hant", "Hebr", "Hrkt"
, "Knda", |
| 29 "Khmr", "Laoo", "Mlym", "Mong", "Mymr", "Orya", "Sinh", "Taml"
, "Telu", | 29 "Khmr", "Laoo", "Mlym", "Mong", "Mymr", "Orya", "Sinh", "Taml"
, "Telu", |
| 30 "Thaa", "Thai", "Tibt", "Yiii" | 30 "Thaa", "Thai", "Tibt", "Yiii", "Zyyy" |
| 31 ], | 31 ], |
| 32 "description": "An ISO 15924 script code." | 32 "description": "An ISO 15924 script code. The default, or global, script
is represented by script code \"Zyyy\"." |
| 33 }, | 33 }, |
| 34 { | 34 { |
| 35 "id": "GenericFamily", | 35 "id": "GenericFamily", |
| 36 "type": "string", | 36 "type": "string", |
| 37 "enum": ["standard", "sansserif", "serif", "fixed", "cursive", "fantasy"
], | 37 "enum": ["standard", "sansserif", "serif", "fixed", "cursive", "fantasy"
], |
| 38 "description": "A CSS generic font family." | 38 "description": "A CSS generic font family." |
| 39 }, | 39 }, |
| 40 { | 40 { |
| 41 "id": "LevelOfControl", | 41 "id": "LevelOfControl", |
| 42 "description": "One of<br><var>not_controllable</var>: cannot be control
led 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", | 42 "description": "One of<br><var>not_controllable</var>: cannot be control
led 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", |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 { | 75 { |
| 76 "name": "getFont", | 76 "name": "getFont", |
| 77 "description": "Gets the font for a given script and generic font family
.", | 77 "description": "Gets the font for a given script and generic font family
.", |
| 78 "parameters": [ | 78 "parameters": [ |
| 79 { | 79 { |
| 80 "name": "details", | 80 "name": "details", |
| 81 "type": "object", | 81 "type": "object", |
| 82 "properties": { | 82 "properties": { |
| 83 "script": { | 83 "script": { |
| 84 "$ref": "ScriptCode", | 84 "$ref": "ScriptCode", |
| 85 "description": "The script for which the font should be retrieve
d. If omitted, the font for the global script is retrieved.", | 85 "description": "The script for which the font should be retrieve
d. If omitted, the font setting for the global script (script code \"Zyyy\") is
retrieved.", |
| 86 "optional": true | 86 "optional": true |
| 87 }, | 87 }, |
| 88 "genericFamily": { | 88 "genericFamily": { |
| 89 "$ref": "GenericFamily", | 89 "$ref": "GenericFamily", |
| 90 "description": "The generic font family for which the font shoul
d be retrieved." | 90 "description": "The generic font family for which the font shoul
d be retrieved." |
| 91 } | 91 } |
| 92 } | 92 } |
| 93 }, | 93 }, |
| 94 { | 94 { |
| 95 "type": "function", | 95 "type": "function", |
| (...skipping 17 matching lines...) Expand all Loading... |
| 113 { | 113 { |
| 114 "name": "setFont", | 114 "name": "setFont", |
| 115 "description": "Sets the font for a given script and generic font family
.", | 115 "description": "Sets the font for a given script and generic font family
.", |
| 116 "parameters": [ | 116 "parameters": [ |
| 117 { | 117 { |
| 118 "name": "details", | 118 "name": "details", |
| 119 "type": "object", | 119 "type": "object", |
| 120 "properties": { | 120 "properties": { |
| 121 "script": { | 121 "script": { |
| 122 "$ref": "ScriptCode", | 122 "$ref": "ScriptCode", |
| 123 "description": "The script code which the font should be set. If
omitted, the font for the global script is set.", | 123 "description": "The script code which the font should be set. If
omitted, the font setting for the global script (script code \"Zyyy\") is set."
, |
| 124 "optional": true | 124 "optional": true |
| 125 }, | 125 }, |
| 126 "genericFamily": { | 126 "genericFamily": { |
| 127 "$ref": "GenericFamily", | 127 "$ref": "GenericFamily", |
| 128 "description": "The generic font family for which the font shoul
d be set." | 128 "description": "The generic font family for which the font shoul
d be set." |
| 129 }, | 129 }, |
| 130 "fontName": { | 130 "fontName": { |
| 131 "type": "string", | 131 "type": "string", |
| 132 "description": "The font name. If a script is specified, the emp
ty string means to fallback to the global script font setting." | 132 "description": "The font name. If a script is specified, the emp
ty string means to fallback to the global script font setting." |
| 133 } | 133 } |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 "name": "onFontChanged", | 448 "name": "onFontChanged", |
| 449 "description": "Fired when a font setting changes.", | 449 "description": "Fired when a font setting changes.", |
| 450 "parameters": [ | 450 "parameters": [ |
| 451 { | 451 { |
| 452 "type": "object", | 452 "type": "object", |
| 453 "name": "details", | 453 "name": "details", |
| 454 "properties": { | 454 "properties": { |
| 455 "fontName": { "type": "string" }, | 455 "fontName": { "type": "string" }, |
| 456 "script": { | 456 "script": { |
| 457 "$ref": "ScriptCode", | 457 "$ref": "ScriptCode", |
| 458 "description": "The script code for which the font setting has c
hanged. If omitted, the global script font setting has changed.", | 458 "description": "The script code for which the font setting has c
hanged.", |
| 459 "optional": true | 459 "optional": true |
| 460 }, | 460 }, |
| 461 "genericFamily": { | 461 "genericFamily": { |
| 462 "$ref": "GenericFamily", | 462 "$ref": "GenericFamily", |
| 463 "description": "The generic font family for which the font setti
ng has changed." | 463 "description": "The generic font family for which the font setti
ng has changed." |
| 464 }, | 464 }, |
| 465 "levelOfControl": { | 465 "levelOfControl": { |
| 466 "$ref": "LevelOfControl", | 466 "$ref": "LevelOfControl", |
| 467 "description": "The level of control this extension has over the
setting." | 467 "description": "The level of control this extension has over the
setting." |
| 468 } | 468 } |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 546 "$ref": "LevelOfControl", | 546 "$ref": "LevelOfControl", |
| 547 "description": "The level of control this extension has over the
setting." | 547 "description": "The level of control this extension has over the
setting." |
| 548 } | 548 } |
| 549 } | 549 } |
| 550 } | 550 } |
| 551 ] | 551 ] |
| 552 } | 552 } |
| 553 ] | 553 ] |
| 554 } | 554 } |
| 555 ] | 555 ] |
| OLD | NEW |