mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-09-18 07:00:20 +00:00
Merge pull request #29958 from grandin-j/patch-1
Update chrome.pageAction with optional callbacks for show/hide
This commit is contained in:
Vendored
+2
-2
@@ -4525,12 +4525,12 @@ declare namespace chrome.pageAction {
|
||||
* Shows the page action. The page action is shown whenever the tab is selected.
|
||||
* @param tabId The id of the tab for which you want to modify the page action.
|
||||
*/
|
||||
export function hide(tabId: number): void;
|
||||
export function hide(tabId: number, callback?: () => void): void;
|
||||
/**
|
||||
* Shows the page action. The page action is shown whenever the tab is selected.
|
||||
* @param tabId The id of the tab for which you want to modify the page action.
|
||||
*/
|
||||
export function show(tabId: number): void;
|
||||
export function show(tabId: number, callback?: () => void): void;
|
||||
/** Sets the title of the page action. This is displayed in a tooltip over the page action. */
|
||||
export function setTitle(details: TitleDetails): void;
|
||||
/** Sets the html document to be opened as a popup when the user clicks on the page action's icon. */
|
||||
|
||||
Reference in New Issue
Block a user