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

Side by Side Diff: content/test/data/browser_plugin_focus.html

Issue 250063002: Browser Plugin: Simplified guest attachment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed New Window API test Created 6 years, 8 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
« no previous file with comments | « content/test/data/browser_plugin_embedder.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 <html>
2 <head> 2 <head>
3 <script type="text/javascript"> 3 <script type="text/javascript">
4 function SetSrc(src) { 4 function SetSrc(src) {
5 plugin = document.getElementById('plugin'); 5 plugin = document.getElementById('plugin');
6 plugin.src = src; 6 plugin.src = src;
7 } 7 }
8 </script> 8 </script>
9 </head> 9 </head>
10 10
11 <body> 11 <body>
12 <button id="before" tabindex="0">Before</button> 12 <button id="before" tabindex="0">Before</button>
13 <object id="plugin" 13 <object id="plugin"
14 tabindex="0" 14 tabindex="0"
15 type="application/browser-plugin" 15 type="application/browser-plugin"
16 width="640" 16 width="640"
17 height="480" 17 height="480"
18 border="0px"></object> 18 border="0px"></object>
19 <button id="after" tabindex="0">After</button> 19 <button id="after" tabindex="0">After</button>
20 <script type="text/javascript"> 20 <script type="text/javascript">
21 var plugin = document.getElementById('plugin'); 21 var plugin = document.getElementById('plugin');
22 plugin.addEventListener('-internal-instanceid-allocated', function(e) { 22 plugin.addEventListener('-internal-instanceid-allocated', function(e) {
23 plugin['-internal-attach']({}); 23 var detail = e.detail ? JSON.parse(e.detail) : {};
24 plugin['-internal-attach'](detail.windowId, {});
24 }); 25 });
25 </script> 26 </script>
26 </body> 27 </body>
27 </html> 28 </html>
OLDNEW
« no previous file with comments | « content/test/data/browser_plugin_embedder.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698