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
3 // found in the LICENSE file.
7 "namespace": "scriptBadge",
8 "description": "Use the <code>chrome.scriptBadge</code> API to control the behaviour of the script badge.",
13 "description": "Sets the html document to be opened as a popup when the user clicks on the script badge's icon.",
19 "tabId": {"type": "integer", "minimum": 0, "description": "The id of the tab for which you want to modify the script badge."},
22 "description": "The html file to show in a popup. If set to the empty string (''), no popup is shown."
31 "description": "Gets the html document set as the popup for this script badge.",
39 "description": "Specify the tab to get the popup from."
56 "name": "getAttention",
59 "description": "Brings the script badge to the attention of the user, imploring her to click. You should call this when you detect that you can do something to a particular tab. Do not call this for every tab. That's tacky. If the user clicks on the badge, the activeTab APIs become available. If the extension has already run on this tab, this call does nothing.",
68 "description": "Specify the tab to request to act on."
79 "description": "Fired when a script badge icon is clicked. This event will not fire if the script badge has a popup.",