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

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

Issue 11088043: browser-plugin: Allow accepting drag-n-drop events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/browser_plugin/browser_plugin.cc ('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
(Empty)
1 <textarea id='id_message'>
2 </textarea>
3
4 <object id="plugin"
5 tabindex="0"
6 type="application/browser-plugin"
7 width="240"
8 height="120"
9 style='border: solid 1px red'
10 contentEditable
11 >
12 </object>
13
14 <script>
15 function dragLocation() {
16 return [id_message.offsetLeft + id_message.offsetWidth / 2,
17 id_message.offsetTop + id_message.offsetHeight / 2];
18 }
19
20 function dropLocation() {
21 return [plugin.offsetLeft + plugin.offsetWidth / 2,
22 plugin.offsetTop + plugin.offsetHeight / 2];
23 }
24
25 function SetSrc(src) {
26 plugin = document.getElementById('plugin');
27 plugin.src = src;
28 }
29 </script>
OLDNEW
« no previous file with comments | « content/renderer/browser_plugin/browser_plugin.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698