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

Side by Side Diff: chrome/common/extensions/api/experimental.fontSettings.json

Issue 10108007: Font Settings Extension API: Rename get/setFontName to get/setFont. (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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 22 matching lines...) Expand all
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 "functions": [ 41 "functions": [
42 { 42 {
43 "name": "getFontName", 43 "name": "getFont",
44 "description": "Gets the font name of the current setting for a given sc ript and generic font family.", 44 "description": "Gets the current font setting for a given script and gen eric font family.",
45 "parameters": [ 45 "parameters": [
46 { 46 {
47 "name": "details", 47 "name": "details",
48 "type": "object", 48 "type": "object",
49 "properties": { 49 "properties": {
50 "script": { 50 "script": {
51 "$ref": "ScriptCode", 51 "$ref": "ScriptCode",
52 "description": "The script for which the font setting should be retrieved. If omitted, the global script font setting is retrieved.", 52 "description": "The script for which the font setting should be retrieved. If omitted, the global script font setting is retrieved.",
53 "optional": true 53 "optional": true
54 }, 54 },
(...skipping 16 matching lines...) Expand all
71 "type": "string", 71 "type": "string",
72 "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 scri pt font setting." 72 "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 scri pt font setting."
73 } 73 }
74 } 74 }
75 } 75 }
76 ] 76 ]
77 } 77 }
78 ] 78 ]
79 }, 79 },
80 { 80 {
81 "name": "setFontName", 81 "name": "setFont",
82 "description": "Sets the font name of the current setting for a given sc ript and generic font family.", 82 "description": "Sets the font setting for a given script and generic fon t family.",
83 "parameters": [ 83 "parameters": [
84 { 84 {
85 "name": "details", 85 "name": "details",
86 "type": "object", 86 "type": "object",
87 "properties": { 87 "properties": {
88 "script": { 88 "script": {
89 "$ref": "ScriptCode", 89 "$ref": "ScriptCode",
90 "description": "The script code which the font setting should be set. If omitted, the global script font setting is set.", 90 "description": "The script code which the font setting should be set. If omitted, the global script font setting is set.",
91 "optional": true 91 "optional": true
92 }, 92 },
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 "type": "function", 274 "type": "function",
275 "name": "callback", 275 "name": "callback",
276 "optional": true, 276 "optional": true,
277 "parameters": [] 277 "parameters": []
278 } 278 }
279 ] 279 ]
280 } 280 }
281 ], 281 ],
282 "events": [ 282 "events": [
283 { 283 {
284 "name": "onFontNameChanged", 284 "name": "onFontChanged",
285 "description": "Fired when a font name preference changes.", 285 "description": "Fired when a font setting changes.",
286 "parameters": [ 286 "parameters": [
287 { 287 {
288 "type": "object", 288 "type": "object",
289 "name": "details", 289 "name": "details",
290 "properties": { 290 "properties": {
291 "fontName": { "type": "string" }, 291 "fontName": { "type": "string" },
292 "script": { 292 "script": {
293 "$ref": "ScriptCode", 293 "$ref": "ScriptCode",
294 "description": "The script code for which the font setting has c hanged. If omitted, the global script font setting has changed.", 294 "description": "The script code for which the font setting has c hanged. If omitted, the global script font setting has changed.",
295 "optional": true 295 "optional": true
296 }, 296 },
297 "genericFamily": { 297 "genericFamily": {
298 "$ref": "GenericFamily", 298 "$ref": "GenericFamily",
299 "description": "The generic font family for which the font setti ng has changed." 299 "description": "The generic font family for which the font setti ng has changed."
300 }, 300 },
301 "levelOfControl": { 301 "levelOfControl": {
302 "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", 302 "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",
303 "type": "string", 303 "type": "string",
304 "enum": ["not_controllable", "controlled_by_other_extensions", " controllable_by_this_extension", "controlled_by_this_extension"] 304 "enum": ["not_controllable", "controlled_by_other_extensions", " controllable_by_this_extension", "controlled_by_this_extension"]
305 } 305 }
306 } 306 }
307 } 307 }
308 ] 308 ]
309 } 309 }
310 ] 310 ]
311 } 311 }
312 ] 312 ]
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_function_registry.cc ('k') | chrome/common/extensions/docs/examples/api/fontSettings.zip » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698