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

Unified Diff: chrome/test/data/extensions/samples/make_page_red/background.html

Issue 256032: Add an API to manipulate the browser action badge. (Closed)
Patch Set: meet halfway Created 11 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/extensions/extension_action.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/samples/make_page_red/background.html
diff --git a/chrome/test/data/extensions/samples/make_page_red/background.html b/chrome/test/data/extensions/samples/make_page_red/background.html
index 084359575d6d02c3ddacd7b765622683851cb02b..30631d23222de858687dfc6bb05fec2ffe9bd928 100755
--- a/chrome/test/data/extensions/samples/make_page_red/background.html
+++ b/chrome/test/data/extensions/samples/make_page_red/background.html
@@ -5,6 +5,14 @@
chrome.browserAction.onClicked.addListener(function(windowId) {
chrome.tabs.executeScript(null, {code:"document.body.bgColor='red'"});
});
+
+ chrome.browserAction.setBadgeBackgroundColor([100, 0, 200, 0]);
+
+ var i = 0;
+ window.setInterval(function() {
+ chrome.browserAction.setBadgeText(String(i));
+ i++;
+ }, 10);
</script>
</head>
</html>
« no previous file with comments | « chrome/common/extensions/extension_action.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698