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

Issue 14122008: Enable touch-initiated drag-drop work on Windows (Closed)

Created:
7 years, 8 months ago by Hongbo Min
Modified:
6 years, 5 months ago
Reviewers:
girard, dcheng, oshima, sky, varunjain
CC:
chromium-reviews, yusukes+watch_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, James Su, nhu
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Enable touch-initiated drag-drop works on Windows. Once long press gesture is forwarded on a draggable element, it calls DoDragDrop function which runs into its own loop and wait for mouse down and move event to proceed, however, there is no mouse down event triggered if it is initiated by touch. This fix is to simulate a mouse down event to drive DoDragDrop to go ahead. BUG=229301 TEST=http://html5demos.com/drag

Patch Set 1 #

Total comments: 8

Patch Set 2 : Rebase to trunk and update #

Total comments: 20

Patch Set 3 : rebase to trunk #

Patch Set 4 : update #

Patch Set 5 : hot fixing #

Total comments: 12

Patch Set 6 : update #

Total comments: 7

Patch Set 7 : more fixings #

Total comments: 4

Patch Set 8 : #

Total comments: 6

Patch Set 9 : fixings in drag_source_win #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -14 lines) Patch
M content/browser/renderer_host/render_widget_host_view_win.h View 1 2 chunks +7 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_win.cc View 1 2 3 3 chunks +12 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_drag_win.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_drag_win.cc View 1 2 3 4 5 6 7 6 chunks +84 lines, -7 lines 0 comments Download
M content/browser/web_contents/web_drag_source_win.h View 1 2 3 4 5 2 chunks +5 lines, -1 line 0 comments Download
M content/browser/web_contents/web_drag_source_win.cc View 1 2 3 4 5 4 chunks +15 lines, -3 lines 0 comments Download
M ui/base/dragdrop/drag_source_win.h View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -0 lines 0 comments Download
M ui/base/dragdrop/drag_source_win.cc View 1 2 3 4 5 6 7 8 2 chunks +14 lines, -2 lines 0 comments Download

Messages

Total messages: 61 (0 generated)
Hongbo Min
Ben, please review this patch. Currently, from my test on Win8 tablet with touch support, ...
7 years, 8 months ago (2013-04-15 11:56:36 UTC) #1
dcheng
https://codereview.chromium.org/14122008/diff/1/content/browser/renderer_host/render_widget_host_view_win.h File content/browser/renderer_host/render_widget_host_view_win.h (right): https://codereview.chromium.org/14122008/diff/1/content/browser/renderer_host/render_widget_host_view_win.h#newcode287 content/browser/renderer_host/render_widget_host_view_win.h:287: bool has_valid_long_press_gesture() { return has_valid_long_press_gesture_; } Nit: make this ...
7 years, 8 months ago (2013-04-15 18:07:37 UTC) #2
Hongbo Min
https://codereview.chromium.org/14122008/diff/1/content/browser/web_contents/web_contents_drag_win.cc File content/browser/web_contents/web_contents_drag_win.cc (right): https://codereview.chromium.org/14122008/diff/1/content/browser/web_contents/web_contents_drag_win.cc#newcode453 content/browser/web_contents/web_contents_drag_win.cc:453: ip.mi.dwFlags = MOUSEEVENTF_RIGHTDOWN | MOUSEEVENTF_ABSOLUTE; On 2013/04/15 18:07:37, dcheng ...
7 years, 8 months ago (2013-04-16 01:13:44 UTC) #3
dcheng
https://codereview.chromium.org/14122008/diff/1/content/browser/web_contents/web_contents_drag_win.cc File content/browser/web_contents/web_contents_drag_win.cc (right): https://codereview.chromium.org/14122008/diff/1/content/browser/web_contents/web_contents_drag_win.cc#newcode453 content/browser/web_contents/web_contents_drag_win.cc:453: ip.mi.dwFlags = MOUSEEVENTF_RIGHTDOWN | MOUSEEVENTF_ABSOLUTE; On 2013/04/16 01:13:44, Hongbo ...
7 years, 8 months ago (2013-04-16 01:27:27 UTC) #4
Hongbo Min
On 2013/04/16 01:27:27, dcheng wrote: > https://codereview.chromium.org/14122008/diff/1/content/browser/web_contents/web_contents_drag_win.cc > File content/browser/web_contents/web_contents_drag_win.cc (right): > > https://codereview.chromium.org/14122008/diff/1/content/browser/web_contents/web_contents_drag_win.cc#newcode453 > ...
7 years, 8 months ago (2013-04-16 03:26:03 UTC) #5
dcheng
On 2013/04/16 03:26:03, Hongbo Min wrote: > On 2013/04/16 01:27:27, dcheng wrote: > > > ...
7 years, 8 months ago (2013-04-16 03:56:35 UTC) #6
Hongbo Min
On 2013/04/16 03:56:35, dcheng wrote: > On 2013/04/16 03:26:03, Hongbo Min wrote: > > On ...
7 years, 8 months ago (2013-04-16 05:23:39 UTC) #7
Hongbo Min
On 2013/04/16 05:23:39, Hongbo Min wrote: > On 2013/04/16 03:56:35, dcheng wrote: > > On ...
7 years, 8 months ago (2013-04-24 06:15:30 UTC) #8
dcheng
On 2013/04/24 06:15:30, Hongbo Min wrote: > On 2013/04/16 05:23:39, Hongbo Min wrote: > > ...
7 years, 8 months ago (2013-04-25 00:55:08 UTC) #9
Hongbo Min
Sure, I'd like to try it today.
7 years, 8 months ago (2013-04-25 01:49:11 UTC) #10
Hongbo Min
On 2013/04/25 01:49:11, Hongbo Min wrote: > Sure, I'd like to try it today. dcheng@, ...
7 years, 8 months ago (2013-04-25 06:15:15 UTC) #11
Hongbo Min
ping dcheng@ ... Thanks.
7 years, 7 months ago (2013-05-03 05:01:09 UTC) #12
dcheng
On 2013/05/03 05:01:09, Hongbo Min wrote: > ping dcheng@ ... Thanks. Sorry for the delay ...
7 years, 7 months ago (2013-05-07 00:27:31 UTC) #13
Hongbo Min
dcheng@, I have just updated the patch. According to my test on win8 tablet, the ...
7 years, 7 months ago (2013-05-16 14:47:59 UTC) #14
Hongbo Min
dcheng@, could you please have a look at this again? Thanks.
7 years, 7 months ago (2013-05-20 09:36:10 UTC) #15
dcheng
On 2013/05/20 09:36:10, Hongbo Min wrote: > dcheng@, could you please have a look at ...
7 years, 7 months ago (2013-05-23 00:44:08 UTC) #16
dcheng
https://codereview.chromium.org/14122008/diff/27001/content/browser/renderer_host/render_widget_host_view_win.cc File content/browser/renderer_host/render_widget_host_view_win.cc (right): https://codereview.chromium.org/14122008/diff/27001/content/browser/renderer_host/render_widget_host_view_win.cc#newcode1751 content/browser/renderer_host/render_widget_host_view_win.cc:1751: // On Windows, a mouse up event gets triggerred ...
7 years, 7 months ago (2013-05-24 01:10:36 UTC) #17
Hongbo Min
https://codereview.chromium.org/14122008/diff/27001/content/browser/renderer_host/render_widget_host_view_win.cc File content/browser/renderer_host/render_widget_host_view_win.cc (right): https://codereview.chromium.org/14122008/diff/27001/content/browser/renderer_host/render_widget_host_view_win.cc#newcode1751 content/browser/renderer_host/render_widget_host_view_win.cc:1751: // On Windows, a mouse up event gets triggerred ...
7 years, 7 months ago (2013-05-27 14:51:40 UTC) #18
Hongbo Min
7 years, 7 months ago (2013-05-28 00:38:05 UTC) #19
dcheng
+oshima for real to see what he has to say about the monitor code. I'll ...
7 years, 6 months ago (2013-05-28 07:38:35 UTC) #20
oshima
Any reason why you can't or shouldn't use gfx::Screen to get the display size? I ...
7 years, 6 months ago (2013-05-28 20:21:39 UTC) #21
dcheng
https://codereview.chromium.org/14122008/diff/49001/content/browser/web_contents/web_contents_drag_win.cc File content/browser/web_contents/web_contents_drag_win.cc (right): https://codereview.chromium.org/14122008/diff/49001/content/browser/web_contents/web_contents_drag_win.cc#newcode81 content/browser/web_contents/web_contents_drag_win.cc:81: if (msg->message == WM_RBUTTONUP) Nit: I think you can ...
7 years, 6 months ago (2013-05-28 20:34:02 UTC) #22
Hongbo Min
https://codereview.chromium.org/14122008/diff/49001/content/browser/web_contents/web_contents_drag_win.cc File content/browser/web_contents/web_contents_drag_win.cc (right): https://codereview.chromium.org/14122008/diff/49001/content/browser/web_contents/web_contents_drag_win.cc#newcode81 content/browser/web_contents/web_contents_drag_win.cc:81: if (msg->message == WM_RBUTTONUP) On 2013/05/28 20:34:02, dcheng wrote: ...
7 years, 6 months ago (2013-05-29 06:08:03 UTC) #23
Hongbo Min
On 2013/05/28 20:21:39, oshima wrote: > Any reason why you can't or shouldn't use gfx::Screen ...
7 years, 6 months ago (2013-05-29 06:09:12 UTC) #24
oshima
https://codereview.chromium.org/14122008/diff/56001/content/browser/web_contents/web_contents_drag_win.cc File content/browser/web_contents/web_contents_drag_win.cc (right): https://codereview.chromium.org/14122008/diff/56001/content/browser/web_contents/web_contents_drag_win.cc#newcode462 content/browser/web_contents/web_contents_drag_win.cc:462: gfx::Display display = screen->GetDisplayNearestPoint(last_touch_position); It may be better to ...
7 years, 6 months ago (2013-05-29 14:41:01 UTC) #25
girard
Regarding the impact of high dpi: The code as written should work fine once high ...
7 years, 6 months ago (2013-05-29 18:57:51 UTC) #26
dcheng
https://codereview.chromium.org/14122008/diff/56001/content/browser/web_contents/web_contents_drag_win.cc File content/browser/web_contents/web_contents_drag_win.cc (right): https://codereview.chromium.org/14122008/diff/56001/content/browser/web_contents/web_contents_drag_win.cc#newcode65 content/browser/web_contents/web_contents_drag_win.cc:65: msg->message == WM_KEYDOWN || msg->message == WM_KEYUP || WM_LBUTTONUP ...
7 years, 6 months ago (2013-05-29 20:16:43 UTC) #27
Hongbo Min
https://codereview.chromium.org/14122008/diff/56001/content/browser/web_contents/web_contents_drag_win.cc File content/browser/web_contents/web_contents_drag_win.cc (right): https://codereview.chromium.org/14122008/diff/56001/content/browser/web_contents/web_contents_drag_win.cc#newcode65 content/browser/web_contents/web_contents_drag_win.cc:65: msg->message == WM_KEYDOWN || msg->message == WM_KEYUP || On ...
7 years, 6 months ago (2013-05-30 01:31:49 UTC) #28
Hongbo Min
https://codereview.chromium.org/14122008/diff/49001/content/browser/web_contents/web_contents_drag_win.cc File content/browser/web_contents/web_contents_drag_win.cc (right): https://codereview.chromium.org/14122008/diff/49001/content/browser/web_contents/web_contents_drag_win.cc#newcode81 content/browser/web_contents/web_contents_drag_win.cc:81: if (msg->message == WM_RBUTTONUP) On 2013/05/29 18:57:52, girard wrote: ...
7 years, 6 months ago (2013-05-30 01:36:02 UTC) #29
oshima
On 2013/05/30 01:36:02, Hongbo Min wrote: > https://codereview.chromium.org/14122008/diff/49001/content/browser/web_contents/web_contents_drag_win.cc > File content/browser/web_contents/web_contents_drag_win.cc (right): > > https://codereview.chromium.org/14122008/diff/49001/content/browser/web_contents/web_contents_drag_win.cc#newcode81 ...
7 years, 6 months ago (2013-05-30 18:32:21 UTC) #30
dcheng
LGTM with some nits. https://codereview.chromium.org/14122008/diff/56001/content/browser/web_contents/web_contents_drag_win.cc File content/browser/web_contents/web_contents_drag_win.cc (right): https://codereview.chromium.org/14122008/diff/56001/content/browser/web_contents/web_contents_drag_win.cc#newcode81 content/browser/web_contents/web_contents_drag_win.cc:81: if (touch_initiated_drag_drop && (msg->message == ...
7 years, 6 months ago (2013-05-31 00:57:04 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hongbo.min@intel.com/14122008/72001
7 years, 6 months ago (2013-06-01 02:30:17 UTC) #32
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=6297
7 years, 6 months ago (2013-06-01 02:40:26 UTC) #33
Hongbo Min
ben@, need your lgtm for this CL. Thanks.
7 years, 6 months ago (2013-06-01 12:14:28 UTC) #34
Hongbo Min
https://codereview.chromium.org/14122008/diff/64001/content/browser/web_contents/web_contents_drag_win.cc File content/browser/web_contents/web_contents_drag_win.cc (right): https://codereview.chromium.org/14122008/diff/64001/content/browser/web_contents/web_contents_drag_win.cc#newcode76 content/browser/web_contents/web_contents_drag_win.cc:76: if (!touch_initiated_drag_drop && ((msg->message == WM_LBUTTONUP || On 2013/05/31 ...
7 years, 6 months ago (2013-06-02 02:41:21 UTC) #35
Hongbo Min
ping ben@ ... Thanks
7 years, 6 months ago (2013-06-04 07:46:52 UTC) #36
Hongbo Min
ping ben@ ... Thanks!
7 years, 6 months ago (2013-06-04 07:46:54 UTC) #37
Hongbo Min
dcheng@, could you please help add the owners of the changed files? Thanks.
7 years, 6 months ago (2013-06-07 01:40:53 UTC) #38
varunjain
+sky since ben seems to be busy.
7 years, 6 months ago (2013-06-07 19:46:47 UTC) #39
sky
https://codereview.chromium.org/14122008/diff/72001/content/browser/web_contents/web_contents_drag_win.cc File content/browser/web_contents/web_contents_drag_win.cc (right): https://codereview.chromium.org/14122008/diff/72001/content/browser/web_contents/web_contents_drag_win.cc#newcode353 content/browser/web_contents/web_contents_drag_win.cc:353: SendMouseEventForTouchDnD(); This seems like a hack. Are we doing ...
7 years, 6 months ago (2013-06-07 21:29:50 UTC) #40
Hongbo Min
https://codereview.chromium.org/14122008/diff/72001/content/browser/web_contents/web_contents_drag_win.cc File content/browser/web_contents/web_contents_drag_win.cc (right): https://codereview.chromium.org/14122008/diff/72001/content/browser/web_contents/web_contents_drag_win.cc#newcode353 content/browser/web_contents/web_contents_drag_win.cc:353: SendMouseEventForTouchDnD(); On 2013/06/07 21:29:50, sky wrote: > This seems ...
7 years, 6 months ago (2013-06-08 03:08:48 UTC) #41
sky
On Fri, Jun 7, 2013 at 8:08 PM, <hongbo.min@intel.com> wrote: > > https://codereview.chromium.org/14122008/diff/72001/content/browser/web_contents/web_contents_drag_win.cc > File ...
7 years, 6 months ago (2013-06-10 14:53:02 UTC) #42
Hongbo Min
On 2013/06/10 14:53:02, sky wrote: > On Fri, Jun 7, 2013 at 8:08 PM, <mailto:hongbo.min@intel.com> ...
7 years, 6 months ago (2013-06-20 13:24:59 UTC) #43
Hongbo Min
On 2013/06/20 13:24:59, Hongbo Min wrote: > On 2013/06/10 14:53:02, sky wrote: > > On ...
7 years, 6 months ago (2013-06-20 13:43:14 UTC) #44
sky
What happens if you spy on events in another app, say IE or FF? On ...
7 years, 6 months ago (2013-06-20 17:39:13 UTC) #45
Hongbo Min
On 2013/06/20 17:39:13, sky wrote: > What happens if you spy on events in another ...
7 years, 6 months ago (2013-06-21 02:00:14 UTC) #46
sky
Aren't there other apps that support what we're trying to do? On Thu, Jun 20, ...
7 years, 6 months ago (2013-06-21 15:44:49 UTC) #47
Hongbo Min
On 2013/06/21 15:44:49, sky wrote: > Aren't there other apps that support what we're trying ...
7 years, 6 months ago (2013-06-24 02:46:03 UTC) #48
sky
This still feels like the wrong thing to me, but I don't have any other ...
7 years, 6 months ago (2013-06-24 16:13:41 UTC) #49
Hongbo Min
On 2013/06/24 16:13:41, sky wrote: > This still feels like the wrong thing to me, ...
7 years, 6 months ago (2013-06-24 23:32:50 UTC) #50
girard
On 2013/06/24 16:13:41, sky wrote: > This still feels like the wrong thing to me, ...
7 years, 5 months ago (2013-06-27 07:47:12 UTC) #51
Hongbo Min
On 2013/06/27 07:47:12, girard wrote: > On 2013/06/24 16:13:41, sky wrote: > > This still ...
7 years, 5 months ago (2013-06-27 14:49:28 UTC) #52
Hongbo Min
On 2013/06/27 14:49:28, Hongbo Min wrote: > On 2013/06/27 07:47:12, girard wrote: > > On ...
7 years, 5 months ago (2013-06-27 15:04:29 UTC) #53
girard
On 2013/06/27 15:04:29, Hongbo Min wrote: > On 2013/06/27 14:49:28, Hongbo Min wrote: > > ...
7 years, 5 months ago (2013-06-27 16:30:11 UTC) #54
varunjain
On 2013/06/27 16:30:11, girard wrote: > On 2013/06/27 15:04:29, Hongbo Min wrote: > > On ...
7 years, 5 months ago (2013-06-27 18:58:01 UTC) #55
girard
On 2013/06/27 18:58:01, varunjain wrote: > On 2013/06/27 16:30:11, girard wrote: > > On 2013/06/27 ...
7 years, 5 months ago (2013-06-27 19:06:43 UTC) #56
Hongbo Min
On 2013/06/27 19:06:43, girard wrote: > On 2013/06/27 18:58:01, varunjain wrote: > > On 2013/06/27 ...
7 years, 5 months ago (2013-07-03 01:58:00 UTC) #57
varunjain
On 2013/07/03 01:58:00, Hongbo Min wrote: > On 2013/06/27 19:06:43, girard wrote: > > On ...
7 years, 5 months ago (2013-07-03 04:52:46 UTC) #58
Hongbo Min
On 2013/07/03 04:52:46, varunjain wrote: > On 2013/07/03 01:58:00, Hongbo Min wrote: > > On ...
7 years, 5 months ago (2013-07-03 04:56:32 UTC) #59
varunjain
On 2013/07/03 04:56:32, Hongbo Min wrote: > On 2013/07/03 04:52:46, varunjain wrote: > > On ...
7 years, 5 months ago (2013-07-04 05:31:56 UTC) #60
Hongbo Min
7 years, 5 months ago (2013-07-04 09:03:24 UTC) #61
On 2013/07/04 05:31:56, varunjain wrote:
> On 2013/07/03 04:56:32, Hongbo Min wrote:
> > On 2013/07/03 04:52:46, varunjain wrote:
> > > On 2013/07/03 01:58:00, Hongbo Min wrote:
> > > > On 2013/06/27 19:06:43, girard wrote:
> > > > > On 2013/06/27 18:58:01, varunjain wrote:
> > > > > > On 2013/06/27 16:30:11, girard wrote:
> > > > > > > On 2013/06/27 15:04:29, Hongbo Min wrote:
> > > > > > > > On 2013/06/27 14:49:28, Hongbo Min wrote:
> > > > > > > > > On 2013/06/27 07:47:12, girard wrote:
> > > > > > > > > > On 2013/06/24 16:13:41, sky wrote:
> > > > > > > > > > > This still feels like the wrong thing to me, but I don't
> have
> > > any
> > > > > > other
> > > > > > > > > ideas.
> > > > > > > > > > > Maybe Varun or Girard does.
> > > > > > > > > > 
> > > > > > > > > > 
> > > > > > > > > > This "fix" would also send fake mouse messages through
webkit
> > and
> > > > the
> > > > > > > > > javascript
> > > > > > > > > > client, and we don't want that to happen. So we'll need to
do
> > > > > something
> > > > > > a
> > > > > > > > > little
> > > > > > > > > > better.
> > > > > > > > > 
> > > > > > > > > Good catch. Will update it later.
> > > > > > > > 
> > > > > > > > After re-thinking the problem you raised, I think the webkit and
> JS
> > > > won't
> > > > > > get
> > > > > > > > the fake mouse message since the SendMouseEventForDnD gets
called
> > > inisde
> > > > > > > > WebContentsDragWin::DoDragging, followed by DoDragDrop and then
> run
> > a
> > > > > > separate
> > > > > > > > event loop to consume this event, as a result, the RWHV doesn't
> have
> > a
> > > > > > chance
> > > > > > > to
> > > > > > > > forward the fake event at all.
> > > > > > > 
> > > > > > > Sorry - my comment about fake mouse messages was referring to my
own
> > > > patch,
> > > > > > not
> > > > > > > yours. Yours won't cause any issues with the content window. Mine
> was
> > > > > allowing
> > > > > > > events (that had previously been blocked/dropped) to be sent to
the
> > > > content
> > > > > > > window.
> > > > > > 
> > > > > > FYI, I have been told that IE11 preview
> > > > > >
> > >
> >
>
(http://msdn.microsoft.com/en-us/library/ie/dn265022%252525252528v=vs.85%25252...)
> > > > > supports
> > > > > > touch drag drop initiated through long press. It might be worthwhile
> to
> > > use
> > > > > > spy++ to check how they got over this issue.
> > > > > 
> > > > > IE fires pointer events through to the browser. They don't suppress
> mouse
> > > > events
> > > > > like we do. That means they can call DoDragDrop, and DoDragDrop will
> still
> > > > > receive WM_MOUSEMOVE, WM_LBUTTONUP, etc.
> > > > 
> > > > varunjain@, then what is the conclusion for this patch?
> > > 
> > > Hi Hongbo, apologies for the delayed response. I have been meaning to give
> > this
> > > more attention the last few days but always keep getting distracted by
other
> > > things. I wanted to wait before replying till I have had a chance to test
> > stuff
> > > on a win machine myself.
> > > I did get a chance to play around with touch dnd on win 7 a little bit
last
> > > week. Although it seems flaky, it does work. So I am less convinced that
> this
> > is
> > > the right fix. I will allot some time tomorrow to play with it a little
more
> > to
> > > see when/why exactly it does not work. I should have a better response for
> you
> > > after that.
> > 
> > That's fine. Thanks for your update.
> 
> Hi, I got a chance to look into this a bit today. After discussing with
girard@
> I think we are convinced that simulated mouse events are necessary for DnD to
> work. So you are in the right direction, but your fix is not quite the right
> way. I would like to go back to girard@'s suggestion of letting simulated
mouse
> events flow through in RenderWidgetHostViewWin::ForwardMouseEventToRenderer().
> Obviously we do not want to send these events to the renderer. But we do want
to
> do other stuff that is currently not being done. I think the code should look
> something like this (starting from line 2955):
> 
>   if (!touch_events_enabled_ || !ui::IsMouseEventFromTouch(message)) {
>     // Send the event to the renderer before changing mouse capture, so that
>     // the capturelost event arrives after mouseup.
>     render_widget_host_->ForwardMouseEvent(event);
>   }
> 
>   if (touch_dnd_in_progress_ || !touch_events_enabled_ ||
> !ui::IsMouseEventFromTouch(message)) {  
>     switch (event.type) {
>       case WebInputEvent::MouseMove:
>         TrackMouseLeave(true);
>         break;
>       case WebInputEvent::MouseLeave:
>         TrackMouseLeave(false);
>         break;
>       case WebInputEvent::MouseDown:
>         SetCapture();
>         break;
>       case WebInputEvent::MouseUp:
>         if (GetCapture() == m_hWnd)
>           ReleaseCapture();
>         break;
>     }
>   }
> 
> This makes touch dnd work. Basically if touch dnd is in progress, we let
> simulated mouse events in (without sending them to the renderer). girard@
> suggested that we activate this part of the code (the switch statement block)
> for simulated mouse events regardless of whether touch dnd is in progress or
> not. I agree that this would keep things clean, but am hesitant in turning it
on
> generally since I am not familiar with what it does. But I think this is a
small
> detail that the reviewer(s) should decide on.

I am quitely a bit confused now. If the touch DnD is in progress, it means that
DoDragDrop was already called, and the event loop is controlled by the blackbox
of DoDragDrop, then the RWHV window doesn't have a chance to receive such a
simulated mouse event, right?

Powered by Google App Engine
This is Rietveld 408576698