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

Side by Side Diff: chrome/test/data/extensions/api_test/popup/popup_from_infobar/in-infobar.html

Issue 6334101: Removal of chrome.experimental.popup set of APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script>
4 window.magic = 42;
5
6 function showPopup() {
7 var anchor = document.getElementById('anchor');
8 if (!anchor) {
9 chrome.test.fail('no anchor');
10 }
11 chrome.experimental.popup.show(
12 'in-popup.html',
13 {relativeTo: anchor});
14 }
15
16 function init() {
17 chrome.extension.getBackgroundPage().infobarCallback(showPopup);
18 }
19
20 </script>
21 </head>
22 <body onload='init()'>
23 <div id='anchor'>anchor</div>
24 </body>
25 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698