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

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

Issue 9836036: Add getDefaultFontSize and setDefaultFontSize to Font Settings Extension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch for landing 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
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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
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."
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 ]
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_function_registry.cc ('k') | chrome/common/extensions/docs/examples/api/fontSettings.zip » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698