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

Issue 196213004: Allows menu host windows to be enumerated in DragTargetWindowFinder (Closed)

Created:
6 years, 9 months ago by varkha
Modified:
6 years, 8 months ago
Reviewers:
sadrul, Elliot Glaysher
CC:
chromium-reviews, tfarina, ben+views_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Allows menu host windows to be enumerated in DragTargetWindowFinder. We create a cache that holds all XIDs of the menu windows that get created in X. The menus are evaluated for being drop targets before enumerating other windows. The menu XIDs cache gets updated in a root X11DesktopHandler when any menu (and Chrome menu in particular) gets created. TBR(sky) for OWNERS in ui/base/ui_base.gyp. BUG=349154, 349156, 344747, 83476 R=sadrul@chromium.org TBR=sky Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260046 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260138

Patch Set 1 #

Patch Set 2 : WIP - saving menu widget in MenuController to properly route mouse events #

Patch Set 3 : Adds menus to the lsit of top level windows returned by EnumerateTopLevelWindows #

Total comments: 2

Patch Set 4 : Adds menus to the lsit of top level windows returned by EnumerateTopLevelWindows (including other p… #

Total comments: 1

Patch Set 5 : WIP - posted task to dispatch dnd messages #

Patch Set 6 : Implements menu XID caching and dispatches mouse drags in a posted task #

Total comments: 2

Patch Set 7 : Implements menu XID caching and dispatches mouse drags in a posted task (test) #

Total comments: 21

Patch Set 8 : Implements menu XID caching and dispatches mouse drags in a posted task (comments) #

Patch Set 9 : Allows menu host windows to be enumerated in DragTargetWindowFinder (separated) #

Total comments: 4

Patch Set 10 : Allows menu host windows to be enumerated in DragTargetWindowFinder (nits) #

Patch Set 11 : Allows menu host windows to be enumerated in DragTargetWindowFinder (nits and rebase) #

Patch Set 12 : Allows menu host windows to be enumerated in DragTargetWindowFinder (fixing broken tests) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -6 lines) Patch
M ui/base/ui_base.gyp View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
A ui/base/x/x11_menu_list.h View 1 2 3 4 5 6 7 8 1 chunk +48 lines, -0 lines 0 comments Download
A ui/base/x/x11_menu_list.cc View 1 2 3 4 5 6 7 8 9 1 chunk +46 lines, -0 lines 0 comments Download
M ui/base/x/x11_util.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +14 lines, -2 lines 0 comments Download
M ui/views/corewm/desktop_capture_controller_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +17 lines, -4 lines 0 comments Download
M ui/views/widget/desktop_aura/x11_desktop_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +22 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (0 generated)
varkha
erg@, Please take a look. I was struggling with understanding why the menu window was ...
6 years, 9 months ago (2014-03-12 04:15:30 UTC) #1
Elliot Glaysher
What are the side effects of making the menus not override_redirect? GTK+ sets override_redirect on ...
6 years, 9 months ago (2014-03-12 05:10:57 UTC) #2
sadrul
On 2014/03/12 05:10:57, Elliot Glaysher wrote: > What are the side effects of making the ...
6 years, 9 months ago (2014-03-12 12:23:34 UTC) #3
varkha
sadrul@, could you please take a look and see if this direction is more promising?
6 years, 9 months ago (2014-03-19 01:48:19 UTC) #4
sadrul
https://codereview.chromium.org/196213004/diff/80001/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc File ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc (right): https://codereview.chromium.org/196213004/diff/80001/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc#newcode73 ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc:73: DragTargetWindowFinder(XID ignored_icon_window, From looking at the code, it looks ...
6 years, 9 months ago (2014-03-19 18:34:33 UTC) #5
varkha
https://codereview.chromium.org/196213004/diff/80001/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc File ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc (right): https://codereview.chromium.org/196213004/diff/80001/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc#newcode73 ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc:73: DragTargetWindowFinder(XID ignored_icon_window, On 2014/03/19 18:34:33, sadrul wrote: > From ...
6 years, 9 months ago (2014-03-19 19:19:12 UTC) #6
varkha
sadrul@, can you please take another look. I took inspiration from what happens in gdk_drag_find_window_for_screen ...
6 years, 9 months ago (2014-03-21 00:19:41 UTC) #7
sadrul
This general idea of Create/Destroy notify-events to update the list of windows look promising. But ...
6 years, 9 months ago (2014-03-22 17:55:18 UTC) #8
pkotwicz
I tried the CL and it looks ok in terms of drag and drop working ...
6 years, 9 months ago (2014-03-25 14:59:06 UTC) #9
varkha
I'm looking at two crash scenarios when the bookmark bar syncs and the menu closes ...
6 years, 9 months ago (2014-03-25 15:38:37 UTC) #10
varkha
sadrul@, erg@, Can you please take another look? This addresses the dragging speed, at least ...
6 years, 9 months ago (2014-03-25 17:56:39 UTC) #11
Elliot Glaysher
This looks better, but I deffer to sadrul here. https://codereview.chromium.org/196213004/diff/160001/ui/views/widget/desktop_aura/x11_desktop_handler.cc File ui/views/widget/desktop_aura/x11_desktop_handler.cc (right): https://codereview.chromium.org/196213004/diff/160001/ui/views/widget/desktop_aura/x11_desktop_handler.cc#newcode147 ui/views/widget/desktop_aura/x11_desktop_handler.cc:147: ...
6 years, 9 months ago (2014-03-25 20:11:07 UTC) #12
varkha
https://codereview.chromium.org/196213004/diff/160001/ui/views/widget/desktop_aura/x11_desktop_handler.cc File ui/views/widget/desktop_aura/x11_desktop_handler.cc (right): https://codereview.chromium.org/196213004/diff/160001/ui/views/widget/desktop_aura/x11_desktop_handler.cc#newcode147 ui/views/widget/desktop_aura/x11_desktop_handler.cc:147: // during mouse movement and drag events. On 2014/03/25 ...
6 years, 9 months ago (2014-03-26 00:15:53 UTC) #13
sadrul
I would encourage you to split this patch up into smaller pieces: * Set the ...
6 years, 9 months ago (2014-03-26 18:01:07 UTC) #14
sadrul
Other than that, the approach looks good.
6 years, 9 months ago (2014-03-26 18:01:29 UTC) #15
varkha
This patch keeps only the part with XMenuList and related changes that actually allow dragging ...
6 years, 9 months ago (2014-03-27 04:48:12 UTC) #16
sadrul
LGTM. Thanks for splitting this up! https://codereview.chromium.org/196213004/diff/250001/ui/views/corewm/desktop_capture_controller_unittest.cc File ui/views/corewm/desktop_capture_controller_unittest.cc (right): https://codereview.chromium.org/196213004/diff/250001/ui/views/corewm/desktop_capture_controller_unittest.cc#newcode104 ui/views/corewm/desktop_capture_controller_unittest.cc:104: RunPendingMessages(); On 2014/03/27 ...
6 years, 9 months ago (2014-03-27 19:13:46 UTC) #17
sadrul
Also, please update the CL description to include some details about how the fix works.
6 years, 9 months ago (2014-03-27 19:14:31 UTC) #18
varkha
Thanks for helping me through this! https://codereview.chromium.org/196213004/diff/250001/ui/views/corewm/desktop_capture_controller_unittest.cc File ui/views/corewm/desktop_capture_controller_unittest.cc (right): https://codereview.chromium.org/196213004/diff/250001/ui/views/corewm/desktop_capture_controller_unittest.cc#newcode104 ui/views/corewm/desktop_capture_controller_unittest.cc:104: RunPendingMessages(); On 2014/03/27 ...
6 years, 9 months ago (2014-03-27 20:05:29 UTC) #19
varkha
The CQ bit was checked by varkha@chromium.org
6 years, 9 months ago (2014-03-27 20:05:44 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/varkha@chromium.org/196213004/440001
6 years, 9 months ago (2014-03-27 20:07:30 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-27 20:07:37 UTC) #22
commit-bot: I haz the power
Failed to apply patch for ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 9 months ago (2014-03-27 20:07:38 UTC) #23
varkha
The CQ bit was checked by varkha@chromium.org
6 years, 9 months ago (2014-03-27 20:18:30 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/varkha@chromium.org/196213004/460001
6 years, 9 months ago (2014-03-27 20:22:46 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-28 00:19:42 UTC) #26
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
6 years, 9 months ago (2014-03-28 00:19:43 UTC) #27
varkha
The CQ bit was checked by varkha@chromium.org
6 years, 9 months ago (2014-03-28 00:41:13 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/varkha@chromium.org/196213004/460001
6 years, 9 months ago (2014-03-28 00:42:47 UTC) #29
commit-bot: I haz the power
Change committed as 260046
6 years, 9 months ago (2014-03-28 00:50:14 UTC) #30
calamity
A revert of this CL has been created in https://codereview.chromium.org/216133002/ by calamity@chromium.org. The reason for ...
6 years, 9 months ago (2014-03-28 02:28:28 UTC) #31
varkha
The scenario that broke the views_unittests is the same as what was causing the trouble ...
6 years, 9 months ago (2014-03-28 03:13:41 UTC) #32
varkha
The CQ bit was checked by varkha@chromium.org
6 years, 9 months ago (2014-03-28 03:41:50 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/varkha@chromium.org/196213004/480001
6 years, 9 months ago (2014-03-28 03:43:27 UTC) #34
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-28 06:05:46 UTC) #35
commit-bot: I haz the power
Retried try job too often on ios_dbg_simulator for step(s) components_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_dbg_simulator&number=136775
6 years, 9 months ago (2014-03-28 06:05:47 UTC) #36
varkha
The CQ bit was checked by varkha@chromium.org
6 years, 9 months ago (2014-03-28 11:32:22 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/varkha@chromium.org/196213004/480001
6 years, 9 months ago (2014-03-28 11:33:15 UTC) #38
varkha
6 years, 9 months ago (2014-03-28 15:49:16 UTC) #39
Message was sent while issue was closed.
Committed patchset #12 manually as r260138 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698