From 1981c59d94d57a1f8279932cf863df46a1dd8505 Mon Sep 17 00:00:00 2001 From: Rob Wu Date: Tue, 5 Jun 2018 15:13:48 +0200 Subject: [PATCH] fix: Add missing browserAction APIs (#99) Note that the "openPopup" method is only available to the dev channel: https://chromium.googlesource.com/chromium/src/+/c2b078825ab52c22d0b473682b8eb214836ede25/chrome/common/extensions/api/_api_features.json#178 https://crbug.com/436489 --- api-metadata.json | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/api-metadata.json b/api-metadata.json index b259c22..200b243 100644 --- a/api-metadata.json +++ b/api-metadata.json @@ -64,6 +64,16 @@ } }, "browserAction": { + "disable": { + "minArgs": 0, + "maxArgs": 1, + "fallbackToNoCallback": true + }, + "enable": { + "minArgs": 0, + "maxArgs": 1, + "fallbackToNoCallback": true + }, "getBadgeBackgroundColor": { "minArgs": 1, "maxArgs": 1 @@ -80,9 +90,33 @@ "minArgs": 1, "maxArgs": 1 }, + "openPopup": { + "minArgs": 0, + "maxArgs": 0 + }, + "setBadgeBackgroundColor": { + "minArgs": 1, + "maxArgs": 1, + "fallbackToNoCallback": true + }, + "setBadgeText": { + "minArgs": 1, + "maxArgs": 1, + "fallbackToNoCallback": true + }, "setIcon": { "minArgs": 1, "maxArgs": 1 + }, + "setPopup": { + "minArgs": 1, + "maxArgs": 1, + "fallbackToNoCallback": true + }, + "setTitle": { + "minArgs": 1, + "maxArgs": 1, + "fallbackToNoCallback": true } }, "browsingData": {