Get foreground tab on Android
[chromium-blink-merge.git] / content / test / data / browser_plugin_dragging.html
blob80cc14b820543a6acdb25892ca495af28a5e00ee
1 <html>
2 <head></head>
3 <body>
5 <textarea id='id_message'>
6 </textarea>
8 <object id="plugin"
9 tabindex="0"
10 type="application/browser-plugin"
11 width="240"
12 height="120"
13 style='border: solid 1px red'
15 </object>
17 <script>
18 function dragLocation() {
19 return [id_message.offsetLeft + id_message.offsetWidth / 2,
20 id_message.offsetTop + id_message.offsetHeight / 2];
23 function dropLocation() {
24 return [plugin.offsetLeft + plugin.offsetWidth / 2,
25 plugin.offsetTop + plugin.offsetHeight / 2];
28 function SetSrc(src) {
29 plugin = document.getElementById('plugin');
30 plugin.src = src;
33 var plugin = document.getElementById('plugin');
34 plugin.addEventListener('-internal-instanceid-allocated', function(e) {
35 plugin['-internal-attach']({});
36 });
37 </script>
39 </body>
40 </html>