| 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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 "description": "Opens the extension popup window in the active window bu
t does not grant tab permissions.", | 317 "description": "Opens the extension popup window in the active window bu
t does not grant tab permissions.", |
| 318 "nodoc": true, | 318 "nodoc": true, |
| 319 "parameters": [ | 319 "parameters": [ |
| 320 { | 320 { |
| 321 "type": "function", | 321 "type": "function", |
| 322 "name": "callback", | 322 "name": "callback", |
| 323 "parameters": [ | 323 "parameters": [ |
| 324 { | 324 { |
| 325 "name": "popupView", | 325 "name": "popupView", |
| 326 "type": "object", | 326 "type": "object", |
| 327 "optional": true, |
| 328 "description": "JavaScript 'window' object for the popup window
if it was succesfully opened.", |
| 327 "additionalProperties": { "type": "any" } | 329 "additionalProperties": { "type": "any" } |
| 328 } | 330 } |
| 329 ] | 331 ] |
| 330 } | 332 } |
| 331 ] | 333 ] |
| 332 } | 334 } |
| 333 ], | 335 ], |
| 334 "events": [ | 336 "events": [ |
| 335 { | 337 { |
| 336 "name": "onClicked", | 338 "name": "onClicked", |
| 337 "type": "function", | 339 "type": "function", |
| 338 "description": "Fired when a browser action icon is clicked. This event
will not fire if the browser action has a popup.", | 340 "description": "Fired when a browser action icon is clicked. This event
will not fire if the browser action has a popup.", |
| 339 "parameters": [ | 341 "parameters": [ |
| 340 { | 342 { |
| 341 "name": "tab", | 343 "name": "tab", |
| 342 "$ref": "tabs.Tab" | 344 "$ref": "tabs.Tab" |
| 343 } | 345 } |
| 344 ] | 346 ] |
| 345 } | 347 } |
| 346 ] | 348 ] |
| 347 } | 349 } |
| 348 ] | 350 ] |
| OLD | NEW |