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

Side by Side Diff: chrome/test/data/extensions/api_test/popup_api/toolband_popup.html

Issue 385061: experimental.popup support for tab-content-viewed extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « chrome/test/data/extensions/api_test/popup_api/toolband.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html>
1 <head> 2 <head>
2 <script> 3 <script>
3 function theAnswer() { 4 function theAnswer() {
4 return 42; 5 return 42;
5 } 6 }
6 7
7 function manipulateHost() { 8 function manipulateHost() {
8 var popupHost = chrome.experimental.popup.getAnchorWindow(); 9 var popupHost = chrome.experimental.popup.getParentWindow();
9 if (popupHost && popupHost.globalValue) { 10 if (popupHost && popupHost.globalValue) {
10 popupHost.globalValue = 42; 11 popupHost.globalValue = 42;
11 } 12 }
12 } 13 }
13 </script> 14 </script>
14 </head> 15 </head>
15 <body> 16 <body>
16 Popup-Contents 17 Popup-Contents
17 </body> 18 </body>
19 </html>
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/api_test/popup_api/toolband.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698