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

Side by Side Diff: tools/json_schema_compiler/test/font_settings.json

Issue 10907151: Extensions Docs Server: Enum values do not show up if enum is a type (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 | « tools/json_schema_compiler/test/enums_unittest.cc ('k') | tools/json_schema_compiler/util.h » ('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": "fontSettings", 7 "namespace": "fontSettings",
8 "types": [ 8 "types": [
9 { 9 {
10 "id": "FontName", 10 "id": "FontName",
11 "type": "object", 11 "type": "object",
12 "description": "Represents a font name.", 12 "description": "Represents a font name.",
13 "properties": { 13 "properties": {
14 "fontName": { 14 "fontName": {
15 "type": "string", 15 "type": "string",
16 "description": "The font name." 16 "description": "The font name."
17 }, 17 },
18 "localizedName": { 18 "localizedName": {
19 "type": "string", 19 "type": "string",
20 "description": "The font name localized for the current locale." 20 "description": "The font name localized for the current locale."
21 } 21 }
22 } 22 }
23 }, 23 },
24 { 24 {
25 "id": "ScriptCode", 25 "id": "FakeStringType",
26 "type": "string", 26 "type": "string",
27 "enum": [ "Arab", "Armn", "Beng", "Cans", "Cher", "Cyrl", "Deva", "Ethi" , "Geor", 27 "description": "Used to test a string type."
28 "Grek", "Gujr", "Guru", "Hang", "Hans", "Hant", "Hebr", "Hrkt" , "Knda",
29 "Khmr", "Laoo", "Mlym", "Mong", "Mymr", "Orya", "Sinh", "Taml" , "Telu",
30 "Thaa", "Thai", "Tibt", "Yiii"
31 ],
32 "description": "An ISO 15924 script code."
33 }, 28 },
34 { 29 {
35 "id": "GenericFamily", 30 "id": "GenericFamily",
36 "type": "string", 31 "type": "string",
37 "enum": ["standard", "sansserif", "serif", "fixed", "cursive", "fantasy" ], 32 "enum": ["standard", "sansserif", "serif", "fixed", "cursive", "fantasy" ],
38 "description": "A CSS generic font family." 33 "description": "A CSS generic font family."
39 }, 34 },
40 { 35 {
41 "id": "LevelOfControl", 36 "id": "LevelOfControl",
42 "description": "One of<br><var>not_controllable</var>: cannot be control led 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", 37 "description": "One of<br><var>not_controllable</var>: cannot be control led 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",
43 "type": "string", 38 "type": "string",
44 "enum": ["not_controllable", "controlled_by_other_extensions", "controll able_by_this_extension", "controlled_by_this_extension"] 39 "enum": ["not_controllable", "controlled_by_other_extensions", "controll able_by_this_extension", "controlled_by_this_extension"]
45 } 40 }
46 ], 41 ],
47 "functions": [ 42 "functions": [
48 { 43 {
49 "name": "clearFont", 44 "name": "clearFont",
50 "description": "Clears the font set by this extension, if any.", 45 "description": "Clears the font set by this extension, if any.",
51 "parameters": [ 46 "parameters": [
52 { 47 {
53 "name": "details", 48 "name": "details",
54 "type": "object", 49 "type": "object",
55 "properties": { 50 "properties": {
56 "script": { 51 "script": {
57 "$ref": "ScriptCode", 52 "$ref": "FakeStringType",
58 "description": "The script for which the font should be cleared. If omitted, the global script font setting is cleared.", 53 "description": "The script for which the font should be cleared. If omitted, the global script font setting is cleared.",
59 "optional": true 54 "optional": true
60 }, 55 },
61 "genericFamily": { 56 "genericFamily": {
62 "$ref": "GenericFamily", 57 "$ref": "GenericFamily",
63 "description": "The generic font family for which the font shoul d be cleared." 58 "description": "The generic font family for which the font shoul d be cleared."
64 } 59 }
65 } 60 }
66 }, 61 },
67 { 62 {
68 "type": "function", 63 "type": "function",
69 "name": "callback", 64 "name": "callback",
70 "optional": true, 65 "optional": true,
71 "parameters": [] 66 "parameters": []
72 } 67 }
73 ] 68 ]
74 }, 69 },
75 { 70 {
76 "name": "getFont", 71 "name": "getFont",
77 "description": "Gets the font for a given script and generic font family .", 72 "description": "Gets the font for a given script and generic font family .",
78 "parameters": [ 73 "parameters": [
79 { 74 {
80 "name": "details", 75 "name": "details",
81 "type": "object", 76 "type": "object",
82 "properties": { 77 "properties": {
83 "script": { 78 "script": {
84 "$ref": "ScriptCode", 79 "$ref": "FakeStringType",
85 "description": "The script for which the font should be retrieve d. If omitted, the font for the global script is retrieved.", 80 "description": "The script for which the font should be retrieve d. If omitted, the font for the global script is retrieved.",
86 "optional": true 81 "optional": true
87 }, 82 },
88 "genericFamily": { 83 "genericFamily": {
89 "$ref": "GenericFamily", 84 "$ref": "GenericFamily",
90 "description": "The generic font family for which the font shoul d be retrieved." 85 "description": "The generic font family for which the font shoul d be retrieved."
91 } 86 }
92 } 87 }
93 }, 88 },
94 { 89 {
(...skipping 17 matching lines...) Expand all
112 }, 107 },
113 { 108 {
114 "name": "setFont", 109 "name": "setFont",
115 "description": "Sets the font for a given script and generic font family .", 110 "description": "Sets the font for a given script and generic font family .",
116 "parameters": [ 111 "parameters": [
117 { 112 {
118 "name": "details", 113 "name": "details",
119 "type": "object", 114 "type": "object",
120 "properties": { 115 "properties": {
121 "script": { 116 "script": {
122 "$ref": "ScriptCode", 117 "$ref": "FakeStringType",
123 "description": "The script code which the font should be set. If omitted, the font for the global script is set.", 118 "description": "The script code which the font should be set. If omitted, the font for the global script is set.",
124 "optional": true 119 "optional": true
125 }, 120 },
126 "genericFamily": { 121 "genericFamily": {
127 "$ref": "GenericFamily", 122 "$ref": "GenericFamily",
128 "description": "The generic font family for which the font shoul d be set." 123 "description": "The generic font family for which the font shoul d be set."
129 }, 124 },
130 "fontName": { 125 "fontName": {
131 "type": "string", 126 "type": "string",
132 "description": "The font name. If a script is specified, the emp ty string means to fallback to the global script font setting." 127 "description": "The font name. If a script is specified, the emp ty string means to fallback to the global script font setting."
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 { 442 {
448 "name": "onFontChanged", 443 "name": "onFontChanged",
449 "description": "Fired when a font setting changes.", 444 "description": "Fired when a font setting changes.",
450 "parameters": [ 445 "parameters": [
451 { 446 {
452 "type": "object", 447 "type": "object",
453 "name": "details", 448 "name": "details",
454 "properties": { 449 "properties": {
455 "fontName": { "type": "string" }, 450 "fontName": { "type": "string" },
456 "script": { 451 "script": {
457 "$ref": "ScriptCode", 452 "$ref": "FakeStringType",
458 "description": "The script code for which the font setting has c hanged. If omitted, the global script font setting has changed.", 453 "description": "The script code for which the font setting has c hanged. If omitted, the global script font setting has changed.",
459 "optional": true 454 "optional": true
460 }, 455 },
461 "genericFamily": { 456 "genericFamily": {
462 "$ref": "GenericFamily", 457 "$ref": "GenericFamily",
463 "description": "The generic font family for which the font setti ng has changed." 458 "description": "The generic font family for which the font setti ng has changed."
464 }, 459 },
465 "levelOfControl": { 460 "levelOfControl": {
466 "$ref": "LevelOfControl", 461 "$ref": "LevelOfControl",
467 "description": "The level of control this extension has over the setting." 462 "description": "The level of control this extension has over the setting."
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 "$ref": "LevelOfControl", 541 "$ref": "LevelOfControl",
547 "description": "The level of control this extension has over the setting." 542 "description": "The level of control this extension has over the setting."
548 } 543 }
549 } 544 }
550 } 545 }
551 ] 546 ]
552 } 547 }
553 ] 548 ]
554 } 549 }
555 ] 550 ]
OLDNEW
« no previous file with comments | « tools/json_schema_compiler/test/enums_unittest.cc ('k') | tools/json_schema_compiler/util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698