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

Issue 2118383002: mus: Disregard windows that explicitly set can_accept_events to be false when sending events. (Closed)

Created:
4 years, 5 months ago by riajiang
Modified:
4 years, 5 months ago
Reviewers:
msw, sadrul, sky, dcheng
CC:
chromium-reviews, rjkroege, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, tfarina, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mus: Disregard windows that explicitly set can_accept_events to be false when sending events. BUG=588311 TEST=mus_ws_unittests Committed: https://crrev.com/7207207e4326fbc04fa2d226a2c85bafde3c9518 Cr-Commit-Position: refs/heads/master@{#405298}

Patch Set 1 #

Patch Set 2 : Only set accept_events when it's false #

Total comments: 12

Patch Set 3 : Check if can set accept_events; formatting #

Patch Set 4 : Move function locations. #

Total comments: 8

Patch Set 5 : Check if can_accept_events setting has changed; change names #

Total comments: 10

Patch Set 6 : Move can_accept_events_ to ui::Window; check if top window can accept events. #

Total comments: 4

Patch Set 7 : Early return #

Total comments: 20

Patch Set 8 : Ordering; etc #

Total comments: 4

Patch Set 9 : Fix comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -1 line) Patch
M services/ui/public/cpp/lib/window.cc View 1 2 3 4 5 6 1 chunk +8 lines, -0 lines 0 comments Download
M services/ui/public/cpp/lib/window_tree_client.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M services/ui/public/cpp/tests/test_window_tree.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/public/cpp/tests/test_window_tree.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M services/ui/public/cpp/window.h View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -0 lines 0 comments Download
M services/ui/public/cpp/window_tree_client.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/public/interfaces/window_tree.mojom View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M services/ui/ws/access_policy.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/ws/default_access_policy.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/ws/default_access_policy.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M services/ui/ws/server_window.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
M services/ui/ws/server_window.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/ws/test_utils.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M services/ui/ws/window_finder.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -1 line 0 comments Download
M services/ui/ws/window_finder_unittest.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M services/ui/ws/window_manager_access_policy.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/ws/window_manager_access_policy.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M services/ui/ws/window_tree.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M services/ui/ws/window_tree.cc View 1 2 3 4 5 6 7 1 chunk +9 lines, -0 lines 0 comments Download
M services/ui/ws/window_tree_unittest.cc View 1 2 3 4 5 6 7 1 chunk +12 lines, -0 lines 0 comments Download
M ui/views/mus/native_widget_mus.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 40 (15 generated)
riajiang
4 years, 5 months ago (2016-07-04 23:38:20 UTC) #3
riajiang
4 years, 5 months ago (2016-07-05 16:29:16 UTC) #5
sky
https://codereview.chromium.org/2118383002/diff/20001/services/ui/public/cpp/window.h File services/ui/public/cpp/window.h (right): https://codereview.chromium.org/2118383002/diff/20001/services/ui/public/cpp/window.h#newcode228 services/ui/public/cpp/window.h:228: void SetAcceptEvents(bool accept_events); nit: this is a bad location ...
4 years, 5 months ago (2016-07-06 16:21:25 UTC) #7
riajiang
https://codereview.chromium.org/2118383002/diff/20001/services/ui/public/cpp/window.h File services/ui/public/cpp/window.h (right): https://codereview.chromium.org/2118383002/diff/20001/services/ui/public/cpp/window.h#newcode228 services/ui/public/cpp/window.h:228: void SetAcceptEvents(bool accept_events); On 2016/07/06 16:21:25, sky wrote: > ...
4 years, 5 months ago (2016-07-08 17:59:59 UTC) #8
sky
Looking good, just nits. https://codereview.chromium.org/2118383002/diff/60001/services/ui/public/cpp/window.h File services/ui/public/cpp/window.h (right): https://codereview.chromium.org/2118383002/diff/60001/services/ui/public/cpp/window.h#newcode213 services/ui/public/cpp/window.h:213: void SetAcceptEvents(bool accept_events); nit: SetCanAcceptEvents. ...
4 years, 5 months ago (2016-07-08 20:35:00 UTC) #9
sadrul
https://codereview.chromium.org/2118383002/diff/60001/ui/views/mus/native_widget_mus.cc File ui/views/mus/native_widget_mus.cc (right): https://codereview.chromium.org/2118383002/diff/60001/ui/views/mus/native_widget_mus.cc#newcode686 ui/views/mus/native_widget_mus.cc:686: window_->SetAcceptEvents(params.accept_events); You can do this unconditionally (like SetCanFocus above). ...
4 years, 5 months ago (2016-07-09 14:51:22 UTC) #10
riajiang
https://codereview.chromium.org/2118383002/diff/60001/services/ui/public/cpp/window.h File services/ui/public/cpp/window.h (right): https://codereview.chromium.org/2118383002/diff/60001/services/ui/public/cpp/window.h#newcode213 services/ui/public/cpp/window.h:213: void SetAcceptEvents(bool accept_events); On 2016/07/08 20:35:00, sky (OOO until ...
4 years, 5 months ago (2016-07-11 15:48:38 UTC) #11
riajiang
+msw, since sky is OOO
4 years, 5 months ago (2016-07-11 20:17:10 UTC) #13
msw
Sadrul is likely a more qualified reviewer, but since I'm still in the services/ui/OWNERS file, ...
4 years, 5 months ago (2016-07-11 20:36:19 UTC) #15
sadrul
https://codereview.chromium.org/2118383002/diff/80001/services/ui/public/cpp/lib/window_tree_client.cc File services/ui/public/cpp/lib/window_tree_client.cc (right): https://codereview.chromium.org/2118383002/diff/80001/services/ui/public/cpp/lib/window_tree_client.cc#newcode713 services/ui/public/cpp/lib/window_tree_client.cc:713: can_accept_events_ = can_accept_events; This is wrong. Some window in ...
4 years, 5 months ago (2016-07-12 17:32:33 UTC) #16
riajiang
https://codereview.chromium.org/2118383002/diff/80001/services/ui/public/cpp/lib/window_tree_client.cc File services/ui/public/cpp/lib/window_tree_client.cc (right): https://codereview.chromium.org/2118383002/diff/80001/services/ui/public/cpp/lib/window_tree_client.cc#newcode713 services/ui/public/cpp/lib/window_tree_client.cc:713: can_accept_events_ = can_accept_events; On 2016/07/12 17:32:33, sadrul wrote: > ...
4 years, 5 months ago (2016-07-12 18:46:41 UTC) #17
sadrul
lgtm https://codereview.chromium.org/2118383002/diff/100001/services/ui/public/cpp/lib/window.cc File services/ui/public/cpp/lib/window.cc (right): https://codereview.chromium.org/2118383002/diff/100001/services/ui/public/cpp/lib/window.cc#newcode451 services/ui/public/cpp/lib/window.cc:451: if (client_ && can_accept_events_ != can_accept_events) { Prefer ...
4 years, 5 months ago (2016-07-12 19:44:19 UTC) #18
sadrul
Update the CL description with BUG=...
4 years, 5 months ago (2016-07-12 19:44:56 UTC) #19
riajiang
https://codereview.chromium.org/2118383002/diff/100001/services/ui/public/cpp/lib/window.cc File services/ui/public/cpp/lib/window.cc (right): https://codereview.chromium.org/2118383002/diff/100001/services/ui/public/cpp/lib/window.cc#newcode451 services/ui/public/cpp/lib/window.cc:451: if (client_ && can_accept_events_ != can_accept_events) { On 2016/07/12 ...
4 years, 5 months ago (2016-07-12 20:51:40 UTC) #21
msw
lgtm with nits. https://codereview.chromium.org/2118383002/diff/120001/services/ui/public/cpp/tests/test_window_tree.h File services/ui/public/cpp/tests/test_window_tree.h (right): https://codereview.chromium.org/2118383002/diff/120001/services/ui/public/cpp/tests/test_window_tree.h#newcode108 services/ui/public/cpp/tests/test_window_tree.h:108: void SetCanAcceptEvents(uint32_t window_id, bool can_accept_events) override; ...
4 years, 5 months ago (2016-07-12 22:07:23 UTC) #22
riajiang
+dcheng for the mojom https://codereview.chromium.org/2118383002/diff/120001/services/ui/public/cpp/tests/test_window_tree.h File services/ui/public/cpp/tests/test_window_tree.h (right): https://codereview.chromium.org/2118383002/diff/120001/services/ui/public/cpp/tests/test_window_tree.h#newcode108 services/ui/public/cpp/tests/test_window_tree.h:108: void SetCanAcceptEvents(uint32_t window_id, bool can_accept_events) ...
4 years, 5 months ago (2016-07-13 00:01:46 UTC) #24
msw
lgtm with just one more optional nit; thanks. https://codereview.chromium.org/2118383002/diff/120001/services/ui/ws/server_window.h File services/ui/ws/server_window.h (right): https://codereview.chromium.org/2118383002/diff/120001/services/ui/ws/server_window.h#newcode231 services/ui/ws/server_window.h:231: bool ...
4 years, 5 months ago (2016-07-13 01:04:19 UTC) #25
dcheng
mojo lgtm https://codereview.chromium.org/2118383002/diff/140001/services/ui/public/interfaces/window_tree.mojom File services/ui/public/interfaces/window_tree.mojom (right): https://codereview.chromium.org/2118383002/diff/140001/services/ui/public/interfaces/window_tree.mojom#newcode242 services/ui/public/interfaces/window_tree.mojom:242: // window is not accepting events, none ...
4 years, 5 months ago (2016-07-13 14:32:59 UTC) #26
riajiang
https://codereview.chromium.org/2118383002/diff/140001/services/ui/public/cpp/window.h File services/ui/public/cpp/window.h (right): https://codereview.chromium.org/2118383002/diff/140001/services/ui/public/cpp/window.h#newcode213 services/ui/public/cpp/window.h:213: // Only calls ui::WindowTreeClient's SetCanAcceptEvents if the new On ...
4 years, 5 months ago (2016-07-13 18:03:49 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/2118383002/160001
4 years, 5 months ago (2016-07-13 18:05:40 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/103325)
4 years, 5 months ago (2016-07-13 19:31:13 UTC) #32
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/2118383002/160001
4 years, 5 months ago (2016-07-13 19:42:45 UTC) #34
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 5 months ago (2016-07-13 21:38:29 UTC) #36
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-13 21:38:42 UTC) #37
commit-bot: I haz the power
4 years, 5 months ago (2016-07-13 21:41:26 UTC) #39
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/7207207e4326fbc04fa2d226a2c85bafde3c9518
Cr-Commit-Position: refs/heads/master@{#405298}

Powered by Google App Engine
This is Rietveld 408576698