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

Side by Side 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 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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 } 276 }
277 } 277 }
278 }, 278 },
279 { 279 {
280 "type": "function", 280 "type": "function",
281 "name": "callback", 281 "name": "callback",
282 "optional": true, 282 "optional": true,
283 "parameters": [] 283 "parameters": []
284 } 284 }
285 ] 285 ]
286 },
287 {
288 "name": "getDefaultCharacterSet",
289 "description": "Gets the default character set.",
290 "parameters": [
291 {
292 "name": "details",
293 "type": "object",
294 "optional": true,
295 "description": "This parameter is currently unused."
296 },
297 {
298 "name": "callback",
299 "type": "function",
300 "optional": true,
301 "parameters": [
302 {
303 "name": "details",
304 "type": "object",
305 "properties": {
306 "charset": {
307 "type": "string",
308 "description": "The default character set, such as \"ISO-885 9-1\"."
309 }
310 }
311 }
312 ]
313 }
314 ]
315 },
316 {
317 "name": "setDefaultCharacterSet",
318 "description": "Sets the default character set.",
319 "parameters": [
320 {
321 "name": "details",
322 "type": "object",
323 "properties": {
324 "charset": {
325 "type": "string",
326 "description": "The character set."
327 }
328 }
329 },
330 {
331 "name": "callback",
332 "type": "function",
333 "optional": true,
334 "parameters": []
335 }
336 ]
286 } 337 }
287 ], 338 ],
288 "events": [ 339 "events": [
289 { 340 {
290 "name": "onFontChanged", 341 "name": "onFontChanged",
291 "description": "Fired when a font setting changes.", 342 "description": "Fired when a font setting changes.",
292 "parameters": [ 343 "parameters": [
293 { 344 {
294 "type": "object", 345 "type": "object",
295 "name": "details", 346 "name": "details",
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 "type": "integer", 415 "type": "integer",
365 "description": "The font size in pixels." 416 "description": "The font size in pixels."
366 }, 417 },
367 "levelOfControl": { 418 "levelOfControl": {
368 "$ref": "LevelOfControl", 419 "$ref": "LevelOfControl",
369 "description": "The level of control this extension has over the setting." 420 "description": "The level of control this extension has over the setting."
370 } 421 }
371 } 422 }
372 } 423 }
373 ] 424 ]
425 },
426 {
427 "name": "onDefaultCharacterSetChanged",
428 "description": "Fired when the default character set setting changes.",
429 "parameters": [
430 {
431 "type": "object",
432 "name": "details",
433 "properties": {
434 "charset": {
435 "type": "string",
436 "description": "The character set."
437 },
438 "levelOfControl": {
439 "$ref": "LevelOfControl",
440 "description": "The level of control this extension has over the setting."
441 }
442 }
443 }
444 ]
374 } 445 }
375 ] 446 ]
376 } 447 }
377 ] 448 ]
OLDNEW
« 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