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

Issue 2319933002: X11: Remove calls to XSelectInput (Closed)

Created:
4 years, 3 months ago by Tom (Use chromium acct)
Modified:
4 years, 3 months ago
CC:
chromium-reviews, kalyank, sadrul, tfarina, dcheng, tdresser+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

X11: Remove calls to XSelectInput This CL removes all calls to XSelectInput, or XCreateWindow using CWEventMask, from the browser process that uses the main X display (ie, the one returned by gfx::GetXDisplay()). Window event selection will instead by managed by XWindowEventManager. BUG=634084 Committed: https://crrev.com/6b2728b7cb80270903832d5f177613e03a8db009 Cr-Commit-Position: refs/heads/master@{#418634}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Change mask stuff in window_tree_host_x11, remove XSelectInput in ui/compositor, update dependent patch set #

Total comments: 5

Patch Set 3 : Update dependent patch set #

Patch Set 4 : Rebase #

Patch Set 5 : Remove XWindowEventManager #

Total comments: 1

Patch Set 6 : Use WeakPtr #

Total comments: 10

Patch Set 7 : Fix comments and move SetEventMask to anon namespace #

Total comments: 4

Patch Set 8 : Comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -95 lines) Patch
M ash/display/mirror_window_controller.cc View 1 2 2 chunks +6 lines, -20 lines 0 comments Download
M ui/aura/window_tree_host_x11.h View 1 3 chunks +7 lines, -0 lines 0 comments Download
M ui/aura/window_tree_host_x11.cc View 1 5 4 chunks +21 lines, -7 lines 0 comments Download
M ui/base/clipboard/clipboard_aurax11.cc View 5 3 chunks +6 lines, -1 line 0 comments Download
D ui/base/x/x11_window_event_manager.h View 1 2 3 4 5 6 7 4 chunks +15 lines, -11 lines 0 comments Download
D ui/base/x/x11_window_event_manager.cc View 1 2 3 4 5 6 7 4 chunks +32 lines, -15 lines 0 comments Download
M ui/compositor/test/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/compositor/test/test_compositor_host_x11.cc View 1 5 3 chunks +8 lines, -5 lines 0 comments Download
M ui/events/platform/x11/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A + ui/events/platform/x11/DEPS View 1 chunk +1 line, -1 line 0 comments Download
M ui/events/platform/x11/x11_event_source.h View 2 chunks +2 lines, -0 lines 0 comments Download
M ui/events/platform/x11/x11_event_source.cc View 5 2 chunks +3 lines, -1 line 0 comments Download
M ui/platform_window/x11/x11_window_base.h View 2 chunks +3 lines, -0 lines 0 comments Download
M ui/platform_window/x11/x11_window_base.cc View 5 2 chunks +2 lines, -1 line 0 comments Download
M ui/views/test/x11_property_change_waiter.h View 2 chunks +3 lines, -3 lines 0 comments Download
M ui/views/test/x11_property_change_waiter.cc View 5 3 chunks +5 lines, -11 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h View 2 chunks +4 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc View 1 2 5 2 chunks +2 lines, -1 line 0 comments Download
M ui/views/widget/desktop_aura/x11_desktop_handler.h View 2 chunks +7 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/x11_desktop_handler.cc View 5 2 chunks +4 lines, -5 lines 0 comments Download
M ui/views/widget/desktop_aura/x11_whole_screen_move_loop.h View 3 chunks +5 lines, -1 line 0 comments Download
M ui/views/widget/desktop_aura/x11_whole_screen_move_loop.cc View 5 4 chunks +15 lines, -12 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 71 (44 generated)
Tom (Use chromium acct)
+erg for X11 stuff +sky for OWNERS +derat for FYI and review
4 years, 3 months ago (2016-09-07 22:47:22 UTC) #4
Daniel Erat
https://codereview.chromium.org/2319933002/diff/1/ui/aura/window_tree_host_x11.cc File ui/aura/window_tree_host_x11.cc (right): https://codereview.chromium.org/2319933002/diff/1/ui/aura/window_tree_host_x11.cc#newcode136 ui/aura/window_tree_host_x11.cc:136: long event_mask = ButtonPressMask | ButtonReleaseMask | FocusChangeMask | ...
4 years, 3 months ago (2016-09-07 22:58:36 UTC) #6
Tom (Use chromium acct)
https://codereview.chromium.org/2319933002/diff/1/ui/aura/window_tree_host_x11.cc File ui/aura/window_tree_host_x11.cc (right): https://codereview.chromium.org/2319933002/diff/1/ui/aura/window_tree_host_x11.cc#newcode477 ui/aura/window_tree_host_x11.cc:477: xwindow_events_.reset(event_selector); On 2016/09/07 22:58:36, Daniel Erat wrote: > xwindow_events_.reset(new ...
4 years, 3 months ago (2016-09-07 23:31:17 UTC) #7
Daniel Erat
https://codereview.chromium.org/2319933002/diff/20001/ui/aura/window_tree_host_x11.cc File ui/aura/window_tree_host_x11.cc (right): https://codereview.chromium.org/2319933002/diff/20001/ui/aura/window_tree_host_x11.cc#newcode477 ui/aura/window_tree_host_x11.cc:477: xwindow_events_.reset( is there a risk that we can miss ...
4 years, 3 months ago (2016-09-07 23:36:16 UTC) #8
sadrul
https://codereview.chromium.org/2319933002/diff/20001/ui/aura/window_tree_host_x11.h File ui/aura/window_tree_host_x11.h (right): https://codereview.chromium.org/2319933002/diff/20001/ui/aura/window_tree_host_x11.h#newcode57 ui/aura/window_tree_host_x11.h:57: void DisableInput(); Why do we want this?
4 years, 3 months ago (2016-09-08 00:09:20 UTC) #10
sadrul
Can you add a BUG=?
4 years, 3 months ago (2016-09-08 00:09:38 UTC) #11
Daniel Erat
https://codereview.chromium.org/2319933002/diff/20001/ui/aura/window_tree_host_x11.h File ui/aura/window_tree_host_x11.h (right): https://codereview.chromium.org/2319933002/diff/20001/ui/aura/window_tree_host_x11.h#newcode57 ui/aura/window_tree_host_x11.h:57: void DisableInput(); On 2016/09/08 00:09:19, sadrul wrote: > Why ...
4 years, 3 months ago (2016-09-08 03:05:51 UTC) #13
Tom (Use chromium acct)
https://codereview.chromium.org/2319933002/diff/20001/ui/aura/window_tree_host_x11.cc File ui/aura/window_tree_host_x11.cc (right): https://codereview.chromium.org/2319933002/diff/20001/ui/aura/window_tree_host_x11.cc#newcode477 ui/aura/window_tree_host_x11.cc:477: xwindow_events_.reset( On 2016/09/07 23:36:16, Daniel Erat wrote: > is ...
4 years, 3 months ago (2016-09-08 17:15:15 UTC) #14
Daniel Erat
lgtm if others are happy https://codereview.chromium.org/2319933002/diff/20001/ui/aura/window_tree_host_x11.cc File ui/aura/window_tree_host_x11.cc (right): https://codereview.chromium.org/2319933002/diff/20001/ui/aura/window_tree_host_x11.cc#newcode477 ui/aura/window_tree_host_x11.cc:477: xwindow_events_.reset( On 2016/09/08 17:15:15, ...
4 years, 3 months ago (2016-09-08 18:11:28 UTC) #15
Elliot Glaysher
owners lgtm
4 years, 3 months ago (2016-09-08 19:08:10 UTC) #16
Tom (Use chromium acct)
sky@ PTAL
4 years, 3 months ago (2016-09-09 02:18:31 UTC) #17
sky
Rubber stamp LGTM
4 years, 3 months ago (2016-09-09 15:26:46 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2319933002/60001
4 years, 3 months ago (2016-09-12 17:15:38 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/294606)
4 years, 3 months ago (2016-09-12 17:18:20 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2319933002/80001
4 years, 3 months ago (2016-09-12 17:22:33 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/266952) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 3 months ago (2016-09-12 17:25:30 UTC) #32
Tom (Use chromium acct)
derat@ please take another look. Some tests were failing because aura::Env was getting destroyed after ...
4 years, 3 months ago (2016-09-13 19:53:11 UTC) #42
Daniel Erat
On 2016/09/13 19:53:11, Tom Anderson wrote: > derat@ please take another look. > > Some ...
4 years, 3 months ago (2016-09-13 22:12:50 UTC) #45
Daniel Erat
(i don't know why rietveld decided to not include my comment.) https://codereview.chromium.org/2319933002/diff/140001/ui/base/x/x11_scoped_event_selector.cc File ui/base/x/x11_scoped_event_selector.cc (right): ...
4 years, 3 months ago (2016-09-13 22:15:36 UTC) #46
Tom (Use chromium acct)
No idea why it says "D" on ui/base/x/x11_window_event_manager.*, but the deltas are still there On ...
4 years, 3 months ago (2016-09-14 01:14:23 UTC) #52
Daniel Erat
thanks, this approach looks good! i mostly just have comments about comments. https://codereview.chromium.org/2319933002/diff/160001/ui/base/x/x11_window_event_manager.cc File ui/base/x/x11_window_event_manager.cc ...
4 years, 3 months ago (2016-09-14 04:56:10 UTC) #55
Tom (Use chromium acct)
https://codereview.chromium.org/2319933002/diff/160001/ui/base/x/x11_window_event_manager.cc File ui/base/x/x11_window_event_manager.cc (right): https://codereview.chromium.org/2319933002/diff/160001/ui/base/x/x11_window_event_manager.cc#newcode79 ui/base/x/x11_window_event_manager.cc:79: for (const auto& mask_pair : mask_map_) On 2016/09/14 04:56:09, ...
4 years, 3 months ago (2016-09-14 17:51:08 UTC) #58
Daniel Erat
thanks! lgtm with more comment nits https://codereview.chromium.org/2319933002/diff/180001/ui/base/x/x11_window_event_manager.cc File ui/base/x/x11_window_event_manager.cc (right): https://codereview.chromium.org/2319933002/diff/180001/ui/base/x/x11_window_event_manager.cc#newcode18 ui/base/x/x11_window_event_manager.cc:18: // Asks the ...
4 years, 3 months ago (2016-09-14 17:54:10 UTC) #59
Tom (Use chromium acct)
thanks derat@ going to upload this patch set if the bots are happy https://codereview.chromium.org/2319933002/diff/180001/ui/base/x/x11_window_event_manager.cc File ...
4 years, 3 months ago (2016-09-14 18:00:43 UTC) #60
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2319933002/200001
4 years, 3 months ago (2016-09-14 19:03:48 UTC) #67
commit-bot: I haz the power
Committed patchset #8 (id:200001)
4 years, 3 months ago (2016-09-14 19:13:19 UTC) #69
commit-bot: I haz the power
4 years, 3 months ago (2016-09-14 19:16:29 UTC) #71
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/6b2728b7cb80270903832d5f177613e03a8db009
Cr-Commit-Position: refs/heads/master@{#418634}

Powered by Google App Engine
This is Rietveld 408576698