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

Unified Diff: chrome/common/extensions/api/experimental.fonts.json

Issue 9689054: Generate documentation for experimental Font Settings Extension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/api/experimental.fonts.json
diff --git a/chrome/common/extensions/api/experimental.fonts.json b/chrome/common/extensions/api/experimental.fonts.json
deleted file mode 100644
index 98ce2eb0b0a4078139119c35dbe49fda6ee074f2..0000000000000000000000000000000000000000
--- a/chrome/common/extensions/api/experimental.fonts.json
+++ /dev/null
@@ -1,121 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-[
- {
- "namespace": "experimental.fontSettings",
- "types": [
- {
- "id": "FontName",
- "type": "object",
- "description": "Represents a font name.",
- "properties": {
- "fontName": {
- "type": "string",
- "description": "The font name."
- },
- "localizedName": {
- "type": "string",
- "description": "The font name localized for the current locale."
- }
- }
- }
- ],
- "functions": [
- {
- "name": "getFontName",
- "type": "function",
- "description": "Gets the font name of the current setting for a given script and generic font family.",
- "parameters": [
- {
- "name": "details",
- "type": "object",
- "properties": {
- "script": {
- "type": "string",
- "enum": ["Arab", "Hang", "Hans", "Hant", "Hrkt"],
- "description": "The ISO 15924 script code for which the font setting should be retrieved. If omitted, the global script font setting is retrieved.",
- "optional": true
- },
- "genericFamily": {
- "type": "string",
- "enum": ["standard", "sansserif", "serif", "fixed", "cursive", "fantasy"],
- "description": "The CSS generic font family for which the font setting should be retrieved."
- }
- }
- },
- {
- "type": "function",
- "name": "callback",
- "optional": "true",
- "parameters": [
- {
- "name": "details",
- "type": "object",
- "properties": {
- "fontName": {
- "type": "string",
- "description": "The font name."
- }
- }
- }
- ]
- }
- ]
- },
- {
- "name": "setFontName",
- "type": "function",
- "description": "Sets the font name of the current setting for a given script and generic font family.",
- "parameters": [
- {
- "name": "details",
- "type": "object",
- "properties": {
- "script": {
- "type": "string",
- "enum": ["Arab", "Hang", "Hans", "Hant", "Hrkt"],
- "description": "The ISO 15924 script code for which the font setting should be retrieved. If omitted, the global script font setting is retrieved.",
- "optional": true
- },
- "genericFamily": {
- "type": "string",
- "enum": ["standard", "sansserif", "serif", "fixed", "cursive", "fantasy"],
- "description": "The CSS generic font family for which the font setting should be retrieved."
- },
- "fontName": {
- "type": "string",
- "description": "The font name."
- }
- }
- },
- {
- "type": "function",
- "name": "callback",
- "optional": "true",
- "parameters": []
- }
- ]
- },
- {
- "name": "getFontList",
- "type": "function",
- "description": "Gets a list of fonts on the system.",
- "parameters": [
- {
- "type": "function",
- "name": "callback",
- "parameters": [
- {
- "name": "results",
- "type": "array",
- "items": { "$ref": "FontName" }
- }
- ]
- }
- ]
- }
- ]
- }
-]

Powered by Google App Engine
This is Rietveld 408576698