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

Side by Side Diff: chrome/test/data/extensions/api_test/page_action/update2.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 unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <head>
3 </head>
4 <body>
5 <canvas id="canvas" width="27" height="23">
6 <script>
7 // Test that even if we set the icon after the extension loads, it shows up.
8 chrome.tabs.getSelected(null, function(tab) {
9 chrome.pageAction.show(tab.id);
10 chrome.pageAction.setIcon({tabId: tab.id,
11 imageData:document.getElementById("canvas")
12 .getContext('2d').getImageData(0, 0, 16, 16)});
13 chrome.test.notifyPass();
14 });
15 </script>
16 </body>
17 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698