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

Issue 11088043: browser-plugin: Allow accepting drag-n-drop events. (Closed)

Created:
8 years, 2 months ago by sadrul
Modified:
8 years, 2 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, dcheng, lazyboy, jam
Visibility:
Public.

Description

browser-plugin: Allow accepting drag-n-drop events. This allows dragging content from within the embedder (or other windows) into the browser-tag plugin. BUG=120264 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=161457

Patch Set 1 #

Total comments: 6

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : test #

Total comments: 4

Patch Set 5 : . #

Total comments: 16

Patch Set 6 : . #

Total comments: 2

Patch Set 7 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+339 lines, -97 lines) Patch
M content/browser/browser_plugin/browser_plugin_embedder.h View 3 chunks +9 lines, -0 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_embedder.cc View 2 chunks +12 lines, -0 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_embedder_helper.h View 3 chunks +9 lines, -0 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_embedder_helper.cc View 2 chunks +11 lines, -0 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.h View 4 chunks +23 lines, -0 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.cc View 1 2 3 4 5 6 4 chunks +35 lines, -0 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest_helper.h View 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest_helper.cc View 3 chunks +7 lines, -0 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_host_browsertest.cc View 1 2 3 4 5 6 31 chunks +129 lines, -75 lines 0 comments Download
M content/common/browser_plugin_messages.h View 1 2 3 4 5 6 2 chunks +14 lines, -0 lines 0 comments Download
M content/common/content_message_generator.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/common/drag_messages.h View 1 chunk +0 lines, -22 lines 0 comments Download
A content/common/drag_traits.h View 1 chunk +33 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin.h View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin.cc View 1 2 3 4 5 6 1 chunk +18 lines, -0 lines 0 comments Download
A content/test/data/browser_plugin_dragging.html View 1 2 3 4 5 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
sadrul
creis@ Please review. fsamuel@, lazyboy@ FYI (especially note the BrowserPluginGuest::set_embedder_render_view_host change and the note below) ...
8 years, 2 months ago (2012-10-09 23:09:42 UTC) #1
Fady Samuel
http://codereview.chromium.org/11088043/diff/1/content/browser/browser_plugin/browser_plugin_embedder.cc File content/browser/browser_plugin/browser_plugin_embedder.cc (right): http://codereview.chromium.org/11088043/diff/1/content/browser/browser_plugin/browser_plugin_embedder.cc#newcode98 content/browser/browser_plugin/browser_plugin_embedder.cc:98: guest->set_embedder_render_view_host(render_view_host); On 2012/10/09 23:09:42, sadrul wrote: > I believe ...
8 years, 2 months ago (2012-10-09 23:18:53 UTC) #2
sadrul
creis@ ping :) http://codereview.chromium.org/11088043/diff/1/content/browser/browser_plugin/browser_plugin_embedder.cc File content/browser/browser_plugin/browser_plugin_embedder.cc (right): http://codereview.chromium.org/11088043/diff/1/content/browser/browser_plugin/browser_plugin_embedder.cc#newcode98 content/browser/browser_plugin/browser_plugin_embedder.cc:98: guest->set_embedder_render_view_host(render_view_host); On 2012/10/09 23:18:53, Fady Samuel ...
8 years, 2 months ago (2012-10-10 18:43:22 UTC) #3
Fady Samuel
On 2012/10/10 18:43:22, sadrul wrote: > creis@ ping :) > > http://codereview.chromium.org/11088043/diff/1/content/browser/browser_plugin/browser_plugin_embedder.cc > File content/browser/browser_plugin/browser_plugin_embedder.cc ...
8 years, 2 months ago (2012-10-10 18:45:35 UTC) #4
Charlie Reis
In general, this looks ok. I don't know drag n drop code at all, though, ...
8 years, 2 months ago (2012-10-10 19:04:32 UTC) #5
sadrul
+jam@ Would you mind reviewing this change?
8 years, 2 months ago (2012-10-10 19:16:32 UTC) #6
jam
On 2012/10/10 19:16:32, sadrul wrote: > +jam@ Would you mind reviewing this change? I'm not ...
8 years, 2 months ago (2012-10-10 20:14:12 UTC) #7
jam
https://codereview.chromium.org/11088043/diff/1/content/common/browser_plugin_messages.h File content/common/browser_plugin_messages.h (right): https://codereview.chromium.org/11088043/diff/1/content/common/browser_plugin_messages.h#newcode133 content/common/browser_plugin_messages.h:133: WebKit::WebDragStatus, nit: see the convention in this file of ...
8 years, 2 months ago (2012-10-10 20:14:46 UTC) #8
sadrul
Thanks! http://codereview.chromium.org/11088043/diff/1/content/common/browser_plugin_messages.h File content/common/browser_plugin_messages.h (right): http://codereview.chromium.org/11088043/diff/1/content/common/browser_plugin_messages.h#newcode133 content/common/browser_plugin_messages.h:133: WebKit::WebDragStatus, On 2012/10/10 20:14:46, John Abd-El-Malek wrote: > ...
8 years, 2 months ago (2012-10-10 20:23:09 UTC) #9
sadrul
+sky@ Perhaps you could review this change (or suggest who could)?
8 years, 2 months ago (2012-10-10 21:12:58 UTC) #10
sky
John is a better reviewer for this.
8 years, 2 months ago (2012-10-10 21:34:53 UTC) #11
sadrul
Removing jam@ from reviewers list :) I have added a test, and the trybots are ...
8 years, 2 months ago (2012-10-11 17:30:16 UTC) #12
Fady Samuel
http://codereview.chromium.org/11088043/diff/12002/content/browser/browser_plugin/browser_plugin_host_browsertest.cc File content/browser/browser_plugin/browser_plugin_host_browsertest.cc (right): http://codereview.chromium.org/11088043/diff/12002/content/browser/browser_plugin/browser_plugin_host_browsertest.cc#newcode724 content/browser/browser_plugin/browser_plugin_host_browsertest.cc:724: IN_PROC_BROWSER_TEST_F(BrowserPluginHostTest, AcceptDragEvents) { What's happening here is not obvious ...
8 years, 2 months ago (2012-10-11 17:57:09 UTC) #13
Charlie Reis
I appreciate the test, and I've looked over it again. I'm happy to give it ...
8 years, 2 months ago (2012-10-11 18:02:52 UTC) #14
sadrul
http://codereview.chromium.org/11088043/diff/12002/content/browser/browser_plugin/browser_plugin_guest.cc File content/browser/browser_plugin/browser_plugin_guest.cc (right): http://codereview.chromium.org/11088043/diff/12002/content/browser/browser_plugin/browser_plugin_guest.cc#newcode175 content/browser/browser_plugin/browser_plugin_guest.cc:175: if (embedder_render_view_host_) { On 2012/10/11 18:02:52, creis wrote: > ...
8 years, 2 months ago (2012-10-11 18:31:18 UTC) #15
dcheng
The drag and drop portion looks OK (sorry I had to take a look at ...
8 years, 2 months ago (2012-10-11 20:11:51 UTC) #16
sadrul
Addressed all the comments. Thanks for the quick and thorough review! http://codereview.chromium.org/11088043/diff/14002/content/browser/browser_plugin/browser_plugin_host_browsertest.cc File content/browser/browser_plugin/browser_plugin_host_browsertest.cc (right): ...
8 years, 2 months ago (2012-10-11 20:41:21 UTC) #17
dcheng
Drag and drop LGTM. Thanks for making those fixes.
8 years, 2 months ago (2012-10-11 21:00:38 UTC) #18
Charlie Reis
Thanks, all! LGTM with nit. http://codereview.chromium.org/11088043/diff/9005/content/browser/browser_plugin/browser_plugin_host_browsertest.cc File content/browser/browser_plugin/browser_plugin_host_browsertest.cc (right): http://codereview.chromium.org/11088043/diff/9005/content/browser/browser_plugin/browser_plugin_host_browsertest.cc#newcode248 content/browser/browser_plugin/browser_plugin_host_browsertest.cc:248: // Executes the javascript ...
8 years, 2 months ago (2012-10-11 21:28:19 UTC) #19
sadrul
8 years, 2 months ago (2012-10-12 00:18:47 UTC) #20
Thanks for the reviews everyone! :)

http://codereview.chromium.org/11088043/diff/9005/content/browser/browser_plu...
File content/browser/browser_plugin/browser_plugin_host_browsertest.cc (right):

http://codereview.chromium.org/11088043/diff/9005/content/browser/browser_plu...
content/browser/browser_plugin/browser_plugin_host_browsertest.cc:248: //
Executes the javascript sunchronously and makes sure the returned value is
On 2012/10/11 21:28:20, creis wrote:
> nit: synchronously

Done.

Powered by Google App Engine
This is Rietveld 408576698