OLD | NEW |
---|---|
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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
118 "name": "callback", | 118 "name": "callback", |
119 "parameters": [ | 119 "parameters": [ |
120 { | 120 { |
121 "name": "results", | 121 "name": "results", |
122 "type": "array", | 122 "type": "array", |
123 "items": { "$ref": "FontName" } | 123 "items": { "$ref": "FontName" } |
124 } | 124 } |
125 ] | 125 ] |
126 } | 126 } |
127 ] | 127 ] |
128 }, | |
129 { | |
130 "name": "getDefaultFontSize", | |
131 "type": "function", | |
132 "description": "Gets the default font size.", | |
133 "parameters": [ | |
134 { | |
135 "name": "details", | |
136 "type": "object", | |
137 "description": "This parameter is currently unused." | |
Matt Perry
2012/03/23 18:32:53
Just remove this param if its not used. Do you hav
falken
2012/03/24 04:27:13
Yes, I think eventually we want the font size pref
Matt Perry
2012/03/26 18:31:18
OK, makes sense. Do you foresee it being optional?
falken
2012/03/27 02:04:11
OK, I'll make it optional in the next patch (http:
| |
138 }, | |
139 { | |
140 "name": "callback", | |
141 "type": "function", | |
142 "optional": "true", | |
143 "parameters": [ | |
144 { | |
145 "name": "details", | |
146 "type": "object", | |
147 "properties": { | |
148 "pixelSize": { | |
149 "type": "integer", | |
150 "description": "The font size in pixels." | |
151 } | |
152 } | |
153 } | |
154 ] | |
155 } | |
156 ] | |
157 }, | |
158 { | |
159 "name": "setDefaultFontSize", | |
160 "type": "function", | |
161 "description": "Sets the default font size.", | |
162 "parameters": [ | |
163 { | |
164 "name": "details", | |
165 "type": "object", | |
166 "properties": { | |
167 "pixelSize": { | |
168 "type": "integer", | |
169 "description": "The font size in pixels." | |
170 } | |
171 } | |
172 }, | |
173 { | |
174 "type": "function", | |
175 "name": "callback", | |
176 "optional": "true", | |
177 "parameters": [] | |
178 } | |
179 ] | |
128 } | 180 } |
129 ] | 181 ] |
130 } | 182 } |
131 ] | 183 ] |
OLD | NEW |