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

Side by Side Diff: chrome/test/data/extensions/api_test/page_action/update.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 <script>
4 // Test that we can change various properties of the browser action.
5 // The C++ verifies.
6 chrome.tabs.getSelected(null, function(tab) {
7 chrome.pageAction.show(tab.id);
8 chrome.pageAction.setTitle({title: "Modified", tabId: tab.id});
9 chrome.pageAction.setBadgeText({text: "badge", tabId: tab.id});
10 chrome.pageAction.setBadgeBackgroundColor(
11 {color: [255,255,255,255], tabId: tab.id});
12
13 chrome.test.notifyPass();
14 });
15 </script>
16 </head>
17 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698