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

Unified Diff: chrome/test/data/extensions/samples/test_page_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
« no previous file with comments | « chrome/test/data/extensions/samples/test_browser_action/background.html ('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/test_page_action/background.html
diff --git a/chrome/test/data/extensions/samples/test_page_action/background.html b/chrome/test/data/extensions/samples/test_page_action/background.html
index 2c5685de9fcd2986b117c59fcec78eb4460d22ea..d8d9d7831a6d0f3aceb18a05322393e363241769 100644
--- a/chrome/test/data/extensions/samples/test_page_action/background.html
+++ b/chrome/test/data/extensions/samples/test_page_action/background.html
@@ -14,12 +14,12 @@
chrome.pageAction.show(info.tabId);
} else {
chrome.pageAction.hide(info.tabId);
- setTimeout(function() { chrome.pageAction.show(info.tabId); }, 1000);
+ setTimeout(function() { chrome.pageAction.show(info.tabId); }, 200);
}
chrome.pageAction.setTitle({title: "click:" + clicks, tabId: info.tabId});
chrome.pageAction.setBadgeTextColor({
tabId: info.tabId,
- color: [0, 255, clicks * 50, 255]
+ color: [255, 255, clicks * 50, 255]
});
chrome.pageAction.setBadgeBackgroundColor({
tabId: info.tabId,
@@ -27,7 +27,7 @@
});
chrome.pageAction.setBadgeText({
tabId: info.tabId,
- text: clicks + ""
+ text: i + ""
});
// We only have 2 icons, but cycle through 3 icons to test the
« no previous file with comments | « chrome/test/data/extensions/samples/test_browser_action/background.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698