| 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": "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 Loading... |
| 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 Loading... |
| 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 ] |
| OLD | NEW |