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

Side by Side Diff: chrome/common/extensions/api/browserAction.json

Issue 10022005: Let json schema compiler handle using arrays as types (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Minor style changes 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
« no previous file with comments | « chrome/common/extensions/api/api.gyp ('k') | tools/json_schema_compiler/cc_generator.py » ('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": "browserAction", 7 "namespace": "browserAction",
8 "dependencies": [ "tabs" ], 8 "dependencies": [ "tabs" ],
9 "types": [ 9 "types": [
10 { 10 {
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 { 204 {
205 "name": "setBadgeBackgroundColor", 205 "name": "setBadgeBackgroundColor",
206 "type": "function", 206 "type": "function",
207 "description": "Sets the background color for the badge.", 207 "description": "Sets the background color for the badge.",
208 "parameters": [ 208 "parameters": [
209 { 209 {
210 "name": "details", 210 "name": "details",
211 "type": "object", 211 "type": "object",
212 "properties": { 212 "properties": {
213 "color": { 213 "color": {
214 "type": "string",
215 "description": "An array of four integers in the range [0,255] t hat make up the RGBA color of the badge. For example, opaque red is <code>[255, 0, 0, 255]</code>. Can also be a string with a CSS value, with opaque red being <code>#FF0000</code> or <code>#F00</code>.", 214 "description": "An array of four integers in the range [0,255] t hat make up the RGBA color of the badge. For example, opaque red is <code>[255, 0, 0, 255]</code>. Can also be a string with a CSS value, with opaque red being <code>#FF0000</code> or <code>#F00</code>.",
216 "choices": [ 215 "choices": [
217 {"type": "string"}, 216 {"type": "string"},
218 {"$ref": "ColorArray"} 217 {"$ref": "ColorArray"}
219 ] 218 ]
220 }, 219 },
221 "tabId": { 220 "tabId": {
222 "type": "integer", 221 "type": "integer",
223 "optional": true, 222 "optional": true,
224 "description": "Limits the change to when a particular tab is se lected. Automatically resets when the tab is closed." 223 "description": "Limits the change to when a particular tab is se lected. Automatically resets when the tab is closed."
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 "parameters": [ 263 "parameters": [
265 { 264 {
266 "name": "tab", 265 "name": "tab",
267 "$ref": "Tab" 266 "$ref": "Tab"
268 } 267 }
269 ] 268 ]
270 } 269 }
271 ] 270 ]
272 } 271 }
273 ] 272 ]
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/api.gyp ('k') | tools/json_schema_compiler/cc_generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698