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

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

Issue 246037: Integrate browser actions with the wrench menu. Browser actions (Closed)
Patch Set: alphabetize 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
Index: chrome/test/data/extensions/samples/make_page_red_no_icon/background.html
diff --git a/chrome/test/data/extensions/samples/make_page_red_no_icon/background.html b/chrome/test/data/extensions/samples/make_page_red_no_icon/background.html
new file mode 100644
index 0000000000000000000000000000000000000000..084359575d6d02c3ddacd7b765622683851cb02b
--- /dev/null
+++ b/chrome/test/data/extensions/samples/make_page_red_no_icon/background.html
@@ -0,0 +1,10 @@
+<html>
+<head>
+<script>
+ // Called when the user clicks on the browser action.
+ chrome.browserAction.onClicked.addListener(function(windowId) {
+ chrome.tabs.executeScript(null, {code:"document.body.bgColor='red'"});
+ });
+</script>
+</head>
+</html>

Powered by Google App Engine
This is Rietveld 408576698