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

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

Issue 10142011: Add character encoding to Font Settings Extension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments 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 9b9af4181c23065182a3cd2c6604c4ff12e06b03..7e8801343f59b48b2e2cc9b448806377de00c056 100644
--- a/chrome/common/extensions/api/experimental.fontSettings.json
+++ b/chrome/common/extensions/api/experimental.fontSettings.json
@@ -283,6 +283,57 @@
"parameters": []
}
]
+ },
+ {
+ "name": "getDefaultCharacterSet",
+ "description": "Gets the default character set.",
+ "parameters": [
+ {
+ "name": "details",
+ "type": "object",
+ "optional": true,
+ "description": "This parameter is currently unused."
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "optional": true,
+ "parameters": [
+ {
+ "name": "details",
+ "type": "object",
+ "properties": {
+ "charset": {
+ "type": "string",
+ "description": "The default character set, such as \"ISO-8859-1\"."
+ }
+ }
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "name": "setDefaultCharacterSet",
+ "description": "Sets the default character set.",
+ "parameters": [
+ {
+ "name": "details",
+ "type": "object",
+ "properties": {
+ "charset": {
+ "type": "string",
+ "description": "The character set."
+ }
+ }
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "optional": true,
+ "parameters": []
+ }
+ ]
}
],
"events": [
@@ -371,6 +422,26 @@
}
}
]
+ },
+ {
+ "name": "onDefaultCharacterSetChanged",
+ "description": "Fired when the default character set setting changes.",
+ "parameters": [
+ {
+ "type": "object",
+ "name": "details",
+ "properties": {
+ "charset": {
+ "type": "string",
+ "description": "The character set."
+ },
+ "levelOfControl": {
+ "$ref": "LevelOfControl",
+ "description": "The level of control this extension has over the setting."
+ }
+ }
+ }
+ ]
}
]
}
« 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