| 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 "description": "Use browser actions to put icons in the main Google Chrome t
oolbar, to the right of the address bar. In addition to its <a href='#icon'>icon
</a>, a browser action can also have a <a href='#tooltip'>tooltip</a>, a <a href
='#badge'>badge</a>, and a <a href = '#popups'>popup</a>.", | 8 "description": "Use browser actions to put icons in the main Google Chrome t
oolbar, to the right of the address bar. In addition to its <a href='#icon'>icon
</a>, a browser action can also have a <a href='#tooltip'>tooltip</a>, a <a href
='#badge'>badge</a>, and a <a href = '#popups'>popup</a>.", |
| 9 "types": [ | 9 "types": [ |
| 10 { | 10 { |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 "description": "Disables the browser action for a tab.", | 303 "description": "Disables the browser action for a tab.", |
| 304 "parameters": [ | 304 "parameters": [ |
| 305 { | 305 { |
| 306 "type": "integer", | 306 "type": "integer", |
| 307 "optional": true, | 307 "optional": true, |
| 308 "name": "tabId", | 308 "name": "tabId", |
| 309 "minimum": 0, | 309 "minimum": 0, |
| 310 "description": "The id of the tab for which you want to modify the b
rowser action." | 310 "description": "The id of the tab for which you want to modify the b
rowser action." |
| 311 } | 311 } |
| 312 ] | 312 ] |
| 313 }, |
| 314 { |
| 315 "name": "openPopup", |
| 316 "type": "function", |
| 317 "description": "Opens the extension popup window without a user action."
, |
| 318 "nodoc": true, |
| 319 "parameters": [] |
| 313 } | 320 } |
| 314 ], | 321 ], |
| 315 "events": [ | 322 "events": [ |
| 316 { | 323 { |
| 317 "name": "onClicked", | 324 "name": "onClicked", |
| 318 "type": "function", | 325 "type": "function", |
| 319 "description": "Fired when a browser action icon is clicked. This event
will not fire if the browser action has a popup.", | 326 "description": "Fired when a browser action icon is clicked. This event
will not fire if the browser action has a popup.", |
| 320 "parameters": [ | 327 "parameters": [ |
| 321 { | 328 { |
| 322 "name": "tab", | 329 "name": "tab", |
| 323 "$ref": "tabs.Tab" | 330 "$ref": "tabs.Tab" |
| 324 } | 331 } |
| 325 ] | 332 ] |
| 326 } | 333 } |
| 327 ] | 334 ] |
| 328 } | 335 } |
| 329 ] | 336 ] |
| OLD | NEW |