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

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

Issue 25305002: Implement initial chrome.browserAction.openPopup API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move to interactive_ui_test Created 7 years, 2 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
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 "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
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 in the active window bu t does not grant tab permissions.",
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 ]
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 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698