Chromium Code Reviews| 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. The popup will be from the usual location if the button is not hidden and anchor ed from the settings button otherwise.", | |
|
Finnur
2013/10/15 10:44:21
nit: Is that "anchored" or "anchor ed"?
More impo
justinlin
2013/10/16 07:06:48
Ha, it is "anchored" in the code. Not sure why cod
Finnur
2013/10/16 15:01:26
I asked not to prompt you to do it in this changel
justinlin
2013/10/16 19:31:29
Yes, I can tackle them or maybe someone on my team
| |
| 318 "nodoc": true, | |
| 319 "parameters": [ | |
| 320 { | |
| 321 "type": "function", | |
| 322 "name": "callback", | |
| 323 "parameters": [ | |
| 324 { | |
| 325 "name": "popupView", | |
| 326 "type": "object", | |
| 327 "additionalProperties": { "type": "any" } | |
| 328 } | |
| 329 ] | |
|
Finnur
2013/10/15 10:44:21
Is it necessary to return the view here? Is this a
Matt Perry
2013/10/15 21:29:41
Should be fine. Extensions can already get the pop
Finnur
2013/10/16 15:01:26
Yeah. Minor short-circuit in my brain. For a minut
| |
| 330 } | |
| 331 ] | |
| 313 } | 332 } |
| 314 ], | 333 ], |
| 315 "events": [ | 334 "events": [ |
| 316 { | 335 { |
| 317 "name": "onClicked", | 336 "name": "onClicked", |
| 318 "type": "function", | 337 "type": "function", |
| 319 "description": "Fired when a browser action icon is clicked. This event will not fire if the browser action has a popup.", | 338 "description": "Fired when a browser action icon is clicked. This event will not fire if the browser action has a popup.", |
| 320 "parameters": [ | 339 "parameters": [ |
| 321 { | 340 { |
| 322 "name": "tab", | 341 "name": "tab", |
| 323 "$ref": "tabs.Tab" | 342 "$ref": "tabs.Tab" |
| 324 } | 343 } |
| 325 ] | 344 ] |
| 326 } | 345 } |
| 327 ] | 346 ] |
| 328 } | 347 } |
| 329 ] | 348 ] |
| OLD | NEW |