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

Unified Diff: chrome/test/data/extensions/api_test/page_action/background.html

Issue 269079: Implement new page action API. (Closed)
Patch Set: compile fixes 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/api_test/page_action/background.html
diff --git a/chrome/test/data/extensions/api_test/page_action/background.html b/chrome/test/data/extensions/api_test/page_action/background.html
new file mode 100755
index 0000000000000000000000000000000000000000..89e8f6fee7b335e2985c4149c7fdc41bee589ce9
--- /dev/null
+++ b/chrome/test/data/extensions/api_test/page_action/background.html
@@ -0,0 +1,12 @@
+<html>
+<head>
+<script>
+ // Called when the user clicks on the browser action.
+ chrome.pageAction.onClicked.addListener(function(windowId) {
+ chrome.test.notifyPass();
+ });
+
+ chrome.test.notifyPass();
+</script>
+</head>
+</html>

Powered by Google App Engine
This is Rietveld 408576698