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

Issue 1572027: Return an approximately correct drop effect from WebDragTarget::OnDrop. (Closed)

Created:
10 years, 8 months ago by dcheng
Modified:
9 years, 7 months ago
Reviewers:
tony, sky
CC:
chromium-reviews, ben+cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Return an approximately correct drop effect from WebDragTarget::OnDrop. This isn't actually guaranteed to be correct, since it's the cached value from previous dragenter / dragover results, but hopefully it's somewhat correct part of the time. To prevent potential data loss, all moves are mapped to copies. A future improvement might to fire a ViewHostMsg_UpdateDragCursor after the renderer processes the drop event. BUG=39399 TEST=Manual testing using the attached test case on the bug. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=43925

Patch Set 1 #

Total comments: 12

Patch Set 2 : Patch Set 2 #

Patch Set 3 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -28 lines) Patch
M chrome/browser/tab_contents/web_drag_utils_win.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/tab_contents/web_drag_utils_win.cc View 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/web_drop_target_win.cc View 1 2 5 chunks +15 lines, -16 lines 0 comments Download
M chrome/browser/views/tab_contents/tab_contents_drag_win.cc View 3 chunks +2 lines, -12 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
dcheng
10 years, 8 months ago (2010-04-07 19:52:37 UTC) #1
tony
http://codereview.chromium.org/1572027/diff/1/4 File chrome/browser/tab_contents/web_drop_target_win.cc (right): http://codereview.chromium.org/1572027/diff/1/4#newcode138 chrome/browser/tab_contents/web_drop_target_win.cc:138: return web_drag_utils_win::WebDragOpToWinDragOp(drag_cursor_); I think this is only supposed to ...
10 years, 8 months ago (2010-04-08 00:00:20 UTC) #2
dcheng
http://codereview.chromium.org/1572027/diff/1/4 File chrome/browser/tab_contents/web_drop_target_win.cc (right): http://codereview.chromium.org/1572027/diff/1/4#newcode138 chrome/browser/tab_contents/web_drop_target_win.cc:138: return web_drag_utils_win::WebDragOpToWinDragOp(drag_cursor_); On 2010/04/08 00:00:20, tony wrote: > I ...
10 years, 8 months ago (2010-04-08 00:10:10 UTC) #3
tony
http://codereview.chromium.org/1572027/diff/1/4 File chrome/browser/tab_contents/web_drop_target_win.cc (right): http://codereview.chromium.org/1572027/diff/1/4#newcode138 chrome/browser/tab_contents/web_drop_target_win.cc:138: return web_drag_utils_win::WebDragOpToWinDragOp(drag_cursor_); On 2010/04/08 00:10:10, dcheng wrote: > drag_cursor_ ...
10 years, 8 months ago (2010-04-08 00:21:01 UTC) #4
dcheng
http://codereview.chromium.org/1572027/diff/1/4 File chrome/browser/tab_contents/web_drop_target_win.cc (right): http://codereview.chromium.org/1572027/diff/1/4#newcode138 chrome/browser/tab_contents/web_drop_target_win.cc:138: return web_drag_utils_win::WebDragOpToWinDragOp(drag_cursor_); On 2010/04/08 00:21:01, tony wrote: > On ...
10 years, 8 months ago (2010-04-08 01:02:46 UTC) #5
tony
http://codereview.chromium.org/1572027/diff/1/4 File chrome/browser/tab_contents/web_drop_target_win.cc (right): http://codereview.chromium.org/1572027/diff/1/4#newcode218 chrome/browser/tab_contents/web_drop_target_win.cc:218: return web_drag_utils_win::WebDragOpToWinDragOp(drag_cursor_); On 2010/04/08 01:02:46, dcheng wrote: > If ...
10 years, 8 months ago (2010-04-08 01:35:38 UTC) #6
dcheng
http://codereview.chromium.org/1572027/diff/1/4 File chrome/browser/tab_contents/web_drop_target_win.cc (right): http://codereview.chromium.org/1572027/diff/1/4#newcode218 chrome/browser/tab_contents/web_drop_target_win.cc:218: return web_drag_utils_win::WebDragOpToWinDragOp(drag_cursor_); On 2010/04/08 01:35:38, tony wrote: > On ...
10 years, 8 months ago (2010-04-08 03:02:20 UTC) #7
tony
On 2010/04/08 03:02:20, dcheng wrote: > I wouldn't be particularly surprised if a number of ...
10 years, 8 months ago (2010-04-08 03:17:12 UTC) #8
dcheng1
On Wed, Apr 7, 2010 at 8:17 PM, <tony@chromium.org> wrote: > On 2010/04/08 03:02:20, dcheng ...
10 years, 8 months ago (2010-04-08 03:41:01 UTC) #9
dcheng
http://codereview.chromium.org/1572027/diff/1/4 File chrome/browser/tab_contents/web_drop_target_win.cc (right): http://codereview.chromium.org/1572027/diff/1/4#newcode218 chrome/browser/tab_contents/web_drop_target_win.cc:218: return web_drag_utils_win::WebDragOpToWinDragOp(drag_cursor_); On 2010/04/08 00:21:01, tony wrote: > On ...
10 years, 8 months ago (2010-04-08 04:59:10 UTC) #10
tony
10 years, 8 months ago (2010-04-08 05:02:00 UTC) #11
LGTM

Powered by Google App Engine
This is Rietveld 408576698