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

Issue 14294003: Touch-initiated drag-out to download file but fails. (Closed)

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

Description

Touch-initiated drag-out to download file but fails. BUG=

Patch Set 1 #

Patch Set 2 : Rebase to trunk #

Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -6 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 3 chunks +11 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_drag_win.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_drag_win.cc View 1 6 chunks +61 lines, -3 lines 0 comments Download
M content/browser/web_contents/web_drag_source_win.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_drag_source_win.cc View 1 5 chunks +24 lines, -2 lines 0 comments Download
M ui/base/dragdrop/drag_source_win.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/base/dragdrop/drag_source_win.cc View 2 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
Hongbo Min
I add some logging output to track the issue in drag-out downloading file. The following ...
7 years, 8 months ago (2013-04-16 09:26:42 UTC) #1
dcheng
On 2013/04/16 09:26:42, Hongbo Min wrote: > I add some logging output to track the ...
7 years, 8 months ago (2013-04-16 21:01:17 UTC) #2
Hongbo Min
On 2013/04/16 21:01:17, dcheng wrote: > On 2013/04/16 09:26:42, Hongbo Min wrote: > > I ...
7 years, 8 months ago (2013-04-19 13:25:04 UTC) #3
dcheng
On 2013/04/19 13:25:04, Hongbo Min wrote: > On 2013/04/16 21:01:17, dcheng wrote: > > On ...
7 years, 8 months ago (2013-04-19 20:24:12 UTC) #4
dcheng
On 2013/04/19 20:24:12, dcheng wrote: > On 2013/04/19 13:25:04, Hongbo Min wrote: > > On ...
7 years, 8 months ago (2013-04-23 04:04:20 UTC) #5
dcheng
On 2013/04/23 04:04:20, dcheng wrote: > On 2013/04/19 20:24:12, dcheng wrote: > > On 2013/04/19 ...
7 years, 8 months ago (2013-04-23 04:17:32 UTC) #6
dcheng
On 2013/04/23 04:17:32, dcheng wrote: > On 2013/04/23 04:04:20, dcheng wrote: > > On 2013/04/19 ...
7 years, 8 months ago (2013-04-24 05:38:56 UTC) #7
Hongbo Min
On 2013/04/24 05:38:56, dcheng wrote: > On 2013/04/23 04:17:32, dcheng wrote: > > On 2013/04/23 ...
7 years, 8 months ago (2013-04-24 05:43:21 UTC) #8
dcheng
On 2013/04/24 05:43:21, Hongbo Min wrote: > On 2013/04/24 05:38:56, dcheng wrote: > > On ...
7 years, 8 months ago (2013-04-24 05:55:48 UTC) #9
Hongbo Min
7 years, 8 months ago (2013-04-24 06:03:25 UTC) #10
On 2013/04/24 05:55:48, dcheng wrote:
> On 2013/04/24 05:43:21, Hongbo Min wrote:
> > On 2013/04/24 05:38:56, dcheng wrote:
> > > On 2013/04/23 04:17:32, dcheng wrote:
> > > > On 2013/04/23 04:04:20, dcheng wrote:
> > > > > On 2013/04/19 20:24:12, dcheng wrote:
> > > > > > On 2013/04/19 13:25:04, Hongbo Min wrote:
> > > > > > > On 2013/04/16 21:01:17, dcheng wrote:
> > > > > > > > On 2013/04/16 09:26:42, Hongbo Min wrote:
> > > > > > > > > I add some logging output to track the issue in drag-out
> > downloading
> > > > > file.
> > > > > > > > > 
> > > > > > > > > The following is the output on my Win8 tablet after long press
> on
> > > the
> > > > > file
> > > > > > > > link
> > > > > > > > > at http://www.thecssninja.com/demo/gmail_dragout/:
> > > > > > > > > 
> > > > > > > > > - call WebDragSource::ShouldDropDragSource: key_state: 2"
> > > > > > > > > - call WebContentsDragWin::OnWaitForData"
> > > > > > > > > 
> > > > > > > > > Then the browser window gets freezed, no responsiveness.
> > > > > > > > > 
> > > > > > > > > The fact that key_state is 2 means DoDragDrop got
MK_RBUTTONDOWN
> > > mask,
> > > > > and
> > > > > > > is
> > > > > > > > > expected to be continued since the
> > DragSourceWin::QueryContinueDrag
> > > > > > returns
> > > > > > > > > S_OK.
> > > > > > > > > 
> > > > > > > > > Any hints?
> > > > > > > > 
> > > > > > > > I'm going to try to find a touch device to test on locally. If I
> had
> > > to
> > > > > > guess,
> > > > > > > > there's a deadlock somewhere =(
> > > > > > > 
> > > > > > > dcheng@, how is going on? Do you have any progress?
> > > > > > 
> > > > > > Sorry about the delay. I had some issues setting up Win8 but I plan
on
> > > > testing
> > > > > > this today.
> > > > > 
> > > > > Sorry I finally managed to test this more thoroughly today. I'm pretty
> > sure
> > > > this
> > > > > is the bug I linked earlier (http://crbug.com/163387). We should
> probably
> > > fix
> > > > > that...
> > > > 
> > > > (By we, I guess I mean "I").
> > > 
> > > After some more analysis, the issue is at
> > >
> >
>
http://src.chromium.org/viewvc/chrome/trunk/src/ui/base/dragdrop/os_exchange_....
> > > 
> > > As a hack to test your solution, change the check to also check for
> > VK_RBUTTON.
> > > I think I have a better permanent solution though.
> > 
> > Thanks for your sharing. Could you please also share your permanent solution
> or
> > a patch set? I am interesting in how to make DoDragDrop happy on touch
screen.
> 
> I need to try some experiments when I'm in the office tomorrow for the
permanent
> fix for the deadlock, but I will try to have it checked in by 5PM PST
tomorrow.
> 
> As for your original patch, I think it's largely OK. I have a few minor
> comments, but I was wondering if you wanted to update it to include the
support
> for dragging out DownloadURL before I look at it again?
> 
> Sorry for the long investigation; I had some issues getting machines and
setting
> them up. =/

OK, thanks for your further deep investigation. I'd like to update it and merge
the drag-out downloading to the CL https://codereview.chromium.org/14122008/.

Powered by Google App Engine
This is Rietveld 408576698