Index: chrome/test/data/extensions/samples/print_browser_action/background.html |
=================================================================== |
--- chrome/test/data/extensions/samples/print_browser_action/background.html (revision 0) |
+++ chrome/test/data/extensions/samples/print_browser_action/background.html (revision 0) |
@@ -0,0 +1,14 @@ |
+<html> |
+<head> |
+<script> |
+ // Called when the user clicks on the browser action. |
+ chrome.browserAction.onClicked.addListener(function(windowId) { |
+ chrome.tabs.getSelected(windowId, function(tab) { |
+ var action_url = "javascript:window.print();"; |
+ chrome.tabs.update(tab.id, {url: action_url}); |
+ }); |
+ }); |
+</script> |
+</head> |
+</html> |
+ |
Property changes on: chrome\test\data\extensions\samples\print_browser_action\background.html |
___________________________________________________________________ |
Added: svn:eol-style |
+ LF |