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

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

Issue 291003: Implement badges for page actions. Also add badge text color API. (Closed)
Patch Set: argb Created 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/samples/test_browser_action/background.html
diff --git a/chrome/test/data/extensions/samples/test_browser_action/background.html b/chrome/test/data/extensions/samples/test_browser_action/background.html
index 8170e86ce747e8bb83cfa241f13bd34032825bde..bcf5083345c1443c3299bb44e4f7b3673a520115 100644
--- a/chrome/test/data/extensions/samples/test_browser_action/background.html
+++ b/chrome/test/data/extensions/samples/test_browser_action/background.html
@@ -5,6 +5,7 @@
var clicks = 0;
chrome.browserAction.onClicked.addListener(function() {
chrome.browserAction.setIcon({iconIndex:clicks});
+ chrome.browserAction.setBadgeText({text:""+i});
clicks++;
// We only have 1 icon, but cycle through 3 icons to test the
// out-of-bounds index bug.
« no previous file with comments | « chrome/common/extensions/extension_action.cc ('k') | chrome/test/data/extensions/samples/test_page_action/background.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698