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

Issue 10855159: Support Drag and Drop across displays. (Closed)

Created:
8 years, 4 months ago by mazda
Modified:
6 years, 2 months ago
CC:
chromium-reviews, sadrul, ben+watch_chromium.org, tfarina, jam, dcheng, joi+watch-content_chromium.org, darin-cc_chromium.org, rdsmith+dwatch_chromium.org, danakj
Visibility:
Public.

Description

Support Drag and Drop across displays. This CL introduces DragDropTracker, which - Makes a dummy window capture events while dragging an item, and - Dispatches mouse events to the window at the pointer location in DragDropController::PreHandleMouseEvent. BUG=136817 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=153401

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : Delete DragDropTrackerWindowDelegate #

Patch Set 4 : Delete unnecessary headers #

Patch Set 5 : add drag_drop_tracker_unittest.cc #

Patch Set 6 : #

Patch Set 7 : #

Total comments: 18

Patch Set 8 : address comments #

Patch Set 9 : #

Total comments: 6

Patch Set 10 : handle the case where the second display is disconnected while dragging #

Total comments: 3

Patch Set 11 : address comment and fix win_aura build #

Patch Set 12 : Fix BookmarkBarViewTest7.DNDToDifferentMenu #

Patch Set 13 : Disable DragDropTrackerTest on Win #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+383 lines, -31 lines) Patch
M ash/ash.gyp View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -0 lines 0 comments Download
M ash/drag_drop/drag_drop_controller.h View 1 2 3 4 5 6 7 5 chunks +5 lines, -2 lines 0 comments Download
M ash/drag_drop/drag_drop_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 9 chunks +25 lines, -18 lines 1 comment Download
M ash/drag_drop/drag_drop_controller_unittest.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
A ash/drag_drop/drag_drop_tracker.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +51 lines, -0 lines 0 comments Download
A ash/drag_drop/drag_drop_tracker.cc View 1 2 3 4 5 6 7 1 chunk +68 lines, -0 lines 0 comments Download
A ash/drag_drop/drag_drop_tracker_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +212 lines, -0 lines 0 comments Download
M ash/drag_drop/drag_image_view.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M ash/shell.cc View 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/download/download_util.cc View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_view_aura.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/aura/client/drag_drop_client.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/root_window.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M ui/views/drag_utils.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 26 (1 generated)
mazda
Hi Scott, Could you check the change is the right approach? I'll add a unittest ...
8 years, 4 months ago (2012-08-14 23:14:44 UTC) #1
sky
Why don't the events go to the other rootwindow when you cross over to another ...
8 years, 4 months ago (2012-08-15 13:45:10 UTC) #2
mazda
> Why don't the events go to the other rootwindow when you cross over to ...
8 years, 4 months ago (2012-08-15 23:54:15 UTC) #3
sky
On Wed, Aug 15, 2012 at 4:54 PM, <mazda@chromium.org> wrote: >> Why don't the events ...
8 years, 4 months ago (2012-08-16 00:43:36 UTC) #4
sky
Added Dan to the review since I cc'd him on the latest email.
8 years, 4 months ago (2012-08-16 00:44:03 UTC) #5
Daniel Erat
On 2012/08/16 00:43:36, sky wrote: > On Wed, Aug 15, 2012 at 4:54 PM, <https://mail.google.com/mail/?view=cm&fs=1&tf=1&to=mazda@chromium.org> ...
8 years, 4 months ago (2012-08-16 13:23:53 UTC) #6
mazda
Daniel, Thank you for your comment. The approach in this CL does not use native ...
8 years, 4 months ago (2012-08-16 21:26:31 UTC) #7
sky
I think getting the right events to route to the right window would be a ...
8 years, 4 months ago (2012-08-16 22:38:32 UTC) #8
Daniel Erat
I think it'll be tricky to get right. I'd suggest avoiding trying to regrab, as ...
8 years, 4 months ago (2012-08-16 23:27:06 UTC) #9
mazda
Scott, Daniel Could you start the review of this CL and judge between this approach ...
8 years, 4 months ago (2012-08-17 23:08:04 UTC) #10
Daniel Erat
It's more Scott's call than mine,since I'm not very familiar with this code, but the ...
8 years, 4 months ago (2012-08-17 23:39:22 UTC) #11
sky
Ok, we go with this approach. http://codereview.chromium.org/10855159/diff/13001/ash/drag_drop/drag_drop_controller.cc File ash/drag_drop/drag_drop_controller.cc (right): http://codereview.chromium.org/10855159/diff/13001/ash/drag_drop/drag_drop_controller.cc#newcode237 ash/drag_drop/drag_drop_controller.cc:237: ui::TouchStatus DragDropController::PreHandleTouchEvent( Do ...
8 years, 4 months ago (2012-08-20 15:35:18 UTC) #12
varunjain
http://codereview.chromium.org/10855159/diff/13001/ash/drag_drop/drag_drop_controller.cc File ash/drag_drop/drag_drop_controller.cc (right): http://codereview.chromium.org/10855159/diff/13001/ash/drag_drop/drag_drop_controller.cc#newcode237 ash/drag_drop/drag_drop_controller.cc:237: ui::TouchStatus DragDropController::PreHandleTouchEvent( On 2012/08/20 15:35:18, sky wrote: > Do ...
8 years, 4 months ago (2012-08-20 15:53:19 UTC) #13
varunjain
http://codereview.chromium.org/10855159/diff/13001/ash/drag_drop/drag_drop_controller.cc File ash/drag_drop/drag_drop_controller.cc (right): http://codereview.chromium.org/10855159/diff/13001/ash/drag_drop/drag_drop_controller.cc#newcode218 ash/drag_drop/drag_drop_controller.cc:218: return false; when can this happen? Drag drop is ...
8 years, 4 months ago (2012-08-20 16:21:22 UTC) #14
mazda
Thank you for the review. Please take another look. http://codereview.chromium.org/10855159/diff/13001/ash/drag_drop/drag_drop_controller.cc File ash/drag_drop/drag_drop_controller.cc (right): http://codereview.chromium.org/10855159/diff/13001/ash/drag_drop/drag_drop_controller.cc#newcode218 ash/drag_drop/drag_drop_controller.cc:218: ...
8 years, 4 months ago (2012-08-21 02:10:58 UTC) #15
varunjain
http://codereview.chromium.org/10855159/diff/13001/ash/drag_drop/drag_drop_controller.cc File ash/drag_drop/drag_drop_controller.cc (right): http://codereview.chromium.org/10855159/diff/13001/ash/drag_drop/drag_drop_controller.cc#newcode218 ash/drag_drop/drag_drop_controller.cc:218: return false; On 2012/08/21 02:10:59, mazda wrote: > On ...
8 years, 4 months ago (2012-08-21 04:37:25 UTC) #16
mazda
Sorry for the belated reply. It took some time to handle the case where the ...
8 years, 4 months ago (2012-08-24 08:29:00 UTC) #17
varunjain
LGTM for drag_drop_* changes http://codereview.chromium.org/10855159/diff/40/ash/drag_drop/drag_drop_tracker_unittest.cc File ash/drag_drop/drag_drop_tracker_unittest.cc (right): http://codereview.chromium.org/10855159/diff/40/ash/drag_drop/drag_drop_tracker_unittest.cc#newcode18 ash/drag_drop/drag_drop_tracker_unittest.cc:18: class DragDropTrackerTest : public test::AshTestBase ...
8 years, 4 months ago (2012-08-24 13:00:53 UTC) #18
sky
LGTM
8 years, 4 months ago (2012-08-24 18:06:08 UTC) #19
mazda
Thank you for the review. http://codereview.chromium.org/10855159/diff/40/ash/drag_drop/drag_drop_tracker_unittest.cc File ash/drag_drop/drag_drop_tracker_unittest.cc (right): http://codereview.chromium.org/10855159/diff/40/ash/drag_drop/drag_drop_tracker_unittest.cc#newcode18 ash/drag_drop/drag_drop_tracker_unittest.cc:18: class DragDropTrackerTest : public ...
8 years, 4 months ago (2012-08-24 18:52:37 UTC) #20
sky
Make sure you update the description of the cl too. On Fri, Aug 24, 2012 ...
8 years, 4 months ago (2012-08-24 19:16:36 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mazda@chromium.org/10855159/27003
8 years, 4 months ago (2012-08-25 00:43:41 UTC) #22
mazda
On 2012/08/24 19:16:36, sky wrote: > Make sure you update the description of the cl ...
8 years, 4 months ago (2012-08-25 00:48:49 UTC) #23
commit-bot: I haz the power
Change committed as 153401
8 years, 3 months ago (2012-08-26 11:59:06 UTC) #24
danakj
6 years, 2 months ago (2014-09-27 01:15:05 UTC) #26
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/10855159/diff/27003/ash/drag_drop/drag...
File ash/drag_drop/drag_drop_controller.cc (right):

https://chromiumcodereview.appspot.com/10855159/diff/27003/ash/drag_drop/drag...
ash/drag_drop/drag_drop_controller.cc:311: drag_drop_tracker_.Pass();
This is not going to work with unique_ptr, we should break the link to
DragDropController before calling Cleanup() rather than depending on this.

Powered by Google App Engine
This is Rietveld 408576698