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

Unified Diff: chrome/common/extensions/api/experimental.fontSettings.json

Issue 10008076: Add onFontNameChanged event to Font Settings API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/api/experimental.fontSettings.json
diff --git a/chrome/common/extensions/api/experimental.fontSettings.json b/chrome/common/extensions/api/experimental.fontSettings.json
index 800d758ca9419fe851143d86a29a0314f4a283ed..bbafb10d16b688f75f75ea35c3628be071ecec95 100644
--- a/chrome/common/extensions/api/experimental.fontSettings.json
+++ b/chrome/common/extensions/api/experimental.fontSettings.json
@@ -285,6 +285,43 @@
}
]
}
+ ],
+ "events": [
+ {
+ "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
+ "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.
+ "description": "Fired when a font name preference changes.",
+ "parameters": [
+ {
+ "type": "object",
+ "name": "details",
+ "properties": {
+ "fontName": { "type": "string" },
+ "script": {
+ "type": "string",
+ "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.
+ "Arab", "Armn", "Beng", "Cans", "Cher", "Cyrl", "Deva", "Ethi", "Geor",
+ "Grek", "Gujr", "Guru", "Hang", "Hans", "Hant", "Hebr", "Hrkt", "Knda",
+ "Khmr", "Laoo", "Mlym", "Mong", "Mymr", "Orya", "Sinh", "Taml", "Telu",
+ "Thaa", "Thai", "Tibt", "Yiii"
+ ],
+ "description": "The ISO 15924 script code for which the font setting has changed. If omitted, the global script font setting has changed.",
+ "optional": true
+ },
+ "genericFamily": {
+ "type": "string",
+ "enum": ["standard", "sansserif", "serif", "fixed", "cursive", "fantasy"],
+ "description": "The CSS generic font family for which the font setting has changed."
+ },
+ "levelOfControl": {
+ "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",
+ "type": "string",
+ "enum": ["not_controllable", "controlled_by_other_extensions", "controllable_by_this_extension", "controlled_by_this_extension"]
+ }
+ }
+ }
+ ]
+ }
]
}
]

Powered by Google App Engine
This is Rietveld 408576698