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

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

Issue 9699110: Add more scripts for per-script font preferences. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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
« no previous file with comments | « no previous file | chrome/common/extensions/docs/examples/api/fontSettings.zip » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 16 matching lines...) Expand all
27 "name": "getFontName", 27 "name": "getFontName",
28 "type": "function", 28 "type": "function",
29 "description": "Gets the font name of the current setting for a given sc ript and generic font family.", 29 "description": "Gets the font name of the current setting for a given sc ript and generic font family.",
30 "parameters": [ 30 "parameters": [
31 { 31 {
32 "name": "details", 32 "name": "details",
33 "type": "object", 33 "type": "object",
34 "properties": { 34 "properties": {
35 "script": { 35 "script": {
36 "type": "string", 36 "type": "string",
37 "enum": ["Arab", "Hang", "Hans", "Hant", "Hrkt"], 37 "enum": [
38 "Arab", "Armn", "Beng", "Cans", "Cher", "Cyrl", "Deva", "Eth i", "Geor",
39 "Grek", "Gujr", "Guru", "Hang", "Hans", "Hant", "Hebr", "Hrk t", "Knda",
40 "Khmr", "Laoo", "Mlym", "Mong", "Mymr", "Orya", "Sinh", "Tam l", "Telu",
41 "Thaa", "Thai", "Tibt", "Yiii"
42 ],
38 "description": "The ISO 15924 script code for which the font set ting should be retrieved. If omitted, the global script font setting is retrieve d.", 43 "description": "The ISO 15924 script code for which the font set ting should be retrieved. If omitted, the global script font setting is retrieve d.",
39 "optional": true 44 "optional": true
40 }, 45 },
41 "genericFamily": { 46 "genericFamily": {
42 "type": "string", 47 "type": "string",
43 "enum": ["standard", "sansserif", "serif", "fixed", "cursive", " fantasy"], 48 "enum": ["standard", "sansserif", "serif", "fixed", "cursive", " fantasy"],
44 "description": "The CSS generic font family for which the font s etting should be retrieved." 49 "description": "The CSS generic font family for which the font s etting should be retrieved."
45 } 50 }
46 } 51 }
47 }, 52 },
(...skipping 20 matching lines...) Expand all
68 "name": "setFontName", 73 "name": "setFontName",
69 "type": "function", 74 "type": "function",
70 "description": "Sets the font name of the current setting for a given sc ript and generic font family.", 75 "description": "Sets the font name of the current setting for a given sc ript and generic font family.",
71 "parameters": [ 76 "parameters": [
72 { 77 {
73 "name": "details", 78 "name": "details",
74 "type": "object", 79 "type": "object",
75 "properties": { 80 "properties": {
76 "script": { 81 "script": {
77 "type": "string", 82 "type": "string",
78 "enum": ["Arab", "Hang", "Hans", "Hant", "Hrkt"], 83 "enum": [
84 "Arab", "Armn", "Beng", "Cans", "Cher", "Cyrl", "Deva", "Eth i", "Geor",
85 "Grek", "Gujr", "Guru", "Hang", "Hans", "Hant", "Hebr", "Hrk t", "Knda",
86 "Khmr", "Laoo", "Mlym", "Mong", "Mymr", "Orya", "Sinh", "Tam l", "Telu",
87 "Thaa", "Thai", "Tibt", "Yiii"
88 ],
79 "description": "The ISO 15924 script code for which the font set ting should be set. If omitted, the global script font setting is set.", 89 "description": "The ISO 15924 script code for which the font set ting should be set. If omitted, the global script font setting is set.",
80 "optional": true 90 "optional": true
81 }, 91 },
82 "genericFamily": { 92 "genericFamily": {
83 "type": "string", 93 "type": "string",
84 "enum": ["standard", "sansserif", "serif", "fixed", "cursive", " fantasy"], 94 "enum": ["standard", "sansserif", "serif", "fixed", "cursive", " fantasy"],
85 "description": "The CSS generic font family for which the font s etting should be set." 95 "description": "The CSS generic font family for which the font s etting should be set."
86 }, 96 },
87 "fontName": { 97 "fontName": {
88 "type": "string", 98 "type": "string",
(...skipping 23 matching lines...) Expand all
112 "type": "array", 122 "type": "array",
113 "items": { "$ref": "FontName" } 123 "items": { "$ref": "FontName" }
114 } 124 }
115 ] 125 ]
116 } 126 }
117 ] 127 ]
118 } 128 }
119 ] 129 ]
120 } 130 }
121 ] 131 ]
OLDNEW
« no previous file with comments | « no previous file | chrome/common/extensions/docs/examples/api/fontSettings.zip » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698