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.
7 "namespace": "fontSettings",
8 "description": "The fontSettings API.",
13 "description": "Represents a font name.",
17 "description": "The font name."
21 "description": "The font name localized for the current locale."
26 "id": "FakeStringType",
28 "description": "Used to test a string type."
31 "id": "GenericFamily",
33 "enum": ["standard", "sansserif", "serif", "fixed", "cursive", "fantasy"],
34 "description": "A CSS generic font family."
37 "id": "LevelOfControl",
38 "description": "One of<br><var>not_controllable</var>: cannot 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",
40 "enum": ["not_controllable", "controlled_by_other_extensions", "controllable_by_this_extension", "controlled_by_this_extension"]
46 "description": "Clears the font set by this extension, if any.",
53 "$ref": "FakeStringType",
54 "description": "The script for which the font should be cleared. If omitted, the global script font setting is cleared.",
58 "$ref": "GenericFamily",
59 "description": "The generic font family for which the font should be cleared."
73 "description": "Gets the font for a given script and generic font family.",
80 "$ref": "FakeStringType",
81 "description": "The script for which the font should be retrieved. If omitted, the font for the global script is retrieved.",
85 "$ref": "GenericFamily",
86 "description": "The generic font family for which the font should be retrieved."
101 "description": "The font name. Rather than the literal font name preference value, this may be the name of the font that the system resolves the preference value to. The empty string signifies fallback to the global script font setting."
111 "description": "Sets the font for a given script and generic font family.",
118 "$ref": "FakeStringType",
119 "description": "The script code which the font should be set. If omitted, the font for the global script is set.",
123 "$ref": "GenericFamily",
124 "description": "The generic font family for which the font should be set."
128 "description": "The font name. If a script is specified, the empty string means to fallback to the global script font setting."
141 "name": "getFontList",
142 "description": "Gets a list of fonts on the system.",
151 "items": { "$ref": "FontName" }
158 "name": "clearDefaultFontSize",
159 "description": "Clears the default font size set by this extension, if any.",
165 "description": "This parameter is currently unused.",
177 "name": "getDefaultFontSize",
178 "description": "Gets the default font size.",
184 "description": "This parameter is currently unused.",
198 "description": "The font size in pixels."
207 "name": "setDefaultFontSize",
208 "description": "Sets the default font size.",
216 "description": "The font size in pixels."
229 "name": "clearDefaultFixedFontSize",
230 "description": "Clears the default fixed font size set by this extension, if any.",
236 "description": "This parameter is currently unused.",
248 "name": "getDefaultFixedFontSize",
249 "description": "Gets the default size for fixed width fonts.",
255 "description": "This parameter is currently unused.",
269 "description": "The font size in pixels."
278 "name": "setDefaultFixedFontSize",
279 "description": "Sets the default size for fixed width fonts.",
287 "description": "The font size in pixels."
300 "name": "clearMinimumFontSize",
301 "description": "Clears the minimum font size set by this extension, if any.",
307 "description": "This parameter is currently unused.",
319 "name": "getMinimumFontSize",
320 "description": "Gets the minimum font size.",
326 "description": "This parameter is currently unused.",
340 "description": "The font size in pixels."
349 "name": "setMinimumFontSize",
350 "description": "Sets the minimum font size.",
358 "description": "The font size in pixels."
371 "name": "clearDefaultCharacterSet",
372 "description": "Clears the default character set set by this extension, if any.",
378 "description": "This parameter is currently unused.",
390 "name": "getDefaultCharacterSet",
391 "description": "Gets the default character set.",
397 "description": "This parameter is currently unused.",
411 "description": "The default character set, such as \"ISO-8859-1\"."
420 "name": "setDefaultCharacterSet",
421 "description": "Sets the default character set.",
429 "description": "The character set."
444 "name": "onFontChanged",
445 "description": "Fired when a font setting changes.",
451 "fontName": { "type": "string" },
453 "$ref": "FakeStringType",
454 "description": "The script code for which the font setting has changed. If omitted, the global script font setting has changed.",
458 "$ref": "GenericFamily",
459 "description": "The generic font family for which the font setting has changed."
462 "$ref": "LevelOfControl",
463 "description": "The level of control this extension has over the setting."
470 "name": "onDefaultFontSizeChanged",
471 "description": "Fired when the default font size setting changes.",
479 "description": "The font size in pixels."
482 "$ref": "LevelOfControl",
483 "description": "The level of control this extension has over the setting."
490 "name": "onDefaultFixedFontSizeChanged",
491 "description": "Fired when the default fixed font size setting changes.",
499 "description": "The font size in pixels."
502 "$ref": "LevelOfControl",
503 "description": "The level of control this extension has over the setting."
510 "name": "onMinimumFontSizeChanged",
511 "description": "Fired when the minimum font size setting changes.",
519 "description": "The font size in pixels."
522 "$ref": "LevelOfControl",
523 "description": "The level of control this extension has over the setting."
530 "name": "onDefaultCharacterSetChanged",
531 "description": "Fired when the default character set setting changes.",
539 "description": "The character set."
542 "$ref": "LevelOfControl",
543 "description": "The level of control this extension has over the setting."