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

Issue 1749323002: Update WindowTree::OnWindowInputEventAck to include handled (Closed)

Created:
4 years, 9 months ago by jonross
Modified:
4 years, 9 months ago
CC:
chromium-reviews, rjkroege, mlamouri+watch-content_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, tfarina, jam, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, 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

Update WindowTree::OnWindowInputEventAck to include handled To support post-target accelerators we plan to have the client application report whether an input event was handled or not, when ack-ing the event. This change updates WindowTree::OnWindowInputEventAck to include a boolean parameter |handled|. PlatformWindowMus will always mark events as handled. CompositorMusConnection will base the handled state on the ack state of the renderer. TEST=WindowTreeClientImplTest, WindowTreeApptest, WindowTreeTest, CompositorMusConnectionTest BUG=560478 Committed: https://crrev.com/c3385cc179280dd4b09733b2954be7e9ae3b5112 Cr-Commit-Position: refs/heads/master@{#379821}

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Patch Set 3 : Rebase #

Patch Set 4 : Missing Component Build DEPS #

Unified diffs Side-by-side diffs Delta from patch set Stats (+555 lines, -56 lines) Patch
M components/mus/public/cpp/input_event_handler.h View 1 1 chunk +8 lines, -5 lines 0 comments Download
M components/mus/public/cpp/lib/window_tree_client_impl.cc View 1 1 chunk +9 lines, -5 lines 0 comments Download
M components/mus/public/cpp/tests/test_window_tree.h View 1 chunk +1 line, -1 line 0 comments Download
M components/mus/public/cpp/tests/test_window_tree.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/mus/public/cpp/tests/window_tree_client_impl_unittest.cc View 3 chunks +14 lines, -7 lines 0 comments Download
M components/mus/public/interfaces/window_tree.mojom View 2 chunks +4 lines, -3 lines 0 comments Download
M components/mus/ws/window_tree.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/mus/ws/window_tree.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/mus/ws/window_tree_apptest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/mus/ws/window_tree_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/input/input_handler_manager.h View 2 chunks +5 lines, -4 lines 0 comments Download
M content/renderer/input/render_widget_input_handler.h View 1 chunk +4 lines, -4 lines 0 comments Download
M content/renderer/mus/compositor_mus_connection.h View 2 chunks +8 lines, -5 lines 0 comments Download
M content/renderer/mus/compositor_mus_connection.cc View 4 chunks +15 lines, -6 lines 0 comments Download
A content/renderer/mus/compositor_mus_connection_unittest.cc View 1 chunk +466 lines, -0 lines 0 comments Download
M content/renderer/mus/render_widget_mus_connection.h View 2 chunks +3 lines, -2 lines 0 comments Download
M content/renderer/mus/render_widget_mus_connection.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M content/test/BUILD.gn View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/mus/platform_window_mus.h View 1 chunk +4 lines, -3 lines 0 comments Download
M ui/views/mus/platform_window_mus.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 36 (15 generated)
jonross
Hi, I've prepared this patch to expand WindowTree::OnWindowInputEventAck to include a boolean for if the ...
4 years, 9 months ago (2016-03-01 19:46:49 UTC) #2
sky
https://codereview.chromium.org/1749323002/diff/1/components/mus/public/cpp/input_event_handler.h File components/mus/public/cpp/input_event_handler.h (right): https://codereview.chromium.org/1749323002/diff/1/components/mus/public/cpp/input_event_handler.h#newcode24 components/mus/public/cpp/input_event_handler.h:24: scoped_ptr<base::Callback<void(bool)>>* ack_callback) = 0; Document what the bool means. ...
4 years, 9 months ago (2016-03-01 23:08:17 UTC) #3
jonross
https://codereview.chromium.org/1749323002/diff/1/components/mus/public/cpp/lib/window_tree_client_impl.cc File components/mus/public/cpp/lib/window_tree_client_impl.cc (right): https://codereview.chromium.org/1749323002/diff/1/components/mus/public/cpp/lib/window_tree_client_impl.cc#newcode834 components/mus/public/cpp/lib/window_tree_client_impl.cc:834: ack_callback->Run(false); On 2016/03/01 23:08:17, sky wrote: > Why does ...
4 years, 9 months ago (2016-03-01 23:26:16 UTC) #4
sky
Got it. I like the current behavior in that it seems less prone. How about ...
4 years, 9 months ago (2016-03-02 03:32:40 UTC) #5
jonross
https://codereview.chromium.org/1749323002/diff/1/components/mus/public/cpp/input_event_handler.h File components/mus/public/cpp/input_event_handler.h (right): https://codereview.chromium.org/1749323002/diff/1/components/mus/public/cpp/input_event_handler.h#newcode24 components/mus/public/cpp/input_event_handler.h:24: scoped_ptr<base::Callback<void(bool)>>* ack_callback) = 0; On 2016/03/01 23:08:17, sky wrote: ...
4 years, 9 months ago (2016-03-02 15:23:24 UTC) #6
jonross
tdresser@chromium.org: Please review changes in content/renderer/input/* As discussed offline I've made parts of these classes ...
4 years, 9 months ago (2016-03-02 15:24:35 UTC) #8
jonross
Hi Ben, Could you provide an owners review of the changes in: content/renderer/mus/* ? I'm ...
4 years, 9 months ago (2016-03-02 15:25:57 UTC) #10
tdresser
content/renderer/input/ LGTM
4 years, 9 months ago (2016-03-02 16:04:41 UTC) #11
jonross
Hi Ben, Could you provide an owner's review of the changes in: content/renderer/mus/* ? Thanks, ...
4 years, 9 months ago (2016-03-04 15:47:37 UTC) #12
Ben Goodger (Google)
lgtm
4 years, 9 months ago (2016-03-04 20:24:14 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1749323002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1749323002/20001
4 years, 9 months ago (2016-03-04 20:37:08 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/140556) mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 9 months ago (2016-03-04 20:40:30 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1749323002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1749323002/40001
4 years, 9 months ago (2016-03-07 16:39:18 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_ng/builds/60351)
4 years, 9 months ago (2016-03-07 17:15:45 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1749323002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1749323002/60001
4 years, 9 months ago (2016-03-08 00:16:54 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/34731)
4 years, 9 months ago (2016-03-08 02:56:00 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1749323002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1749323002/60001
4 years, 9 months ago (2016-03-08 12:56:10 UTC) #30
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 9 months ago (2016-03-08 14:03:36 UTC) #31
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/c3385cc179280dd4b09733b2954be7e9ae3b5112 Cr-Commit-Position: refs/heads/master@{#379821}
4 years, 9 months ago (2016-03-08 14:04:52 UTC) #33
Nico
I believe this broke component builds on Windows with GN, see e.g. https://build.chromium.org/p/chromium.fyi/builders/CrWinClang64%28dbg%29/builds/4025 Please take ...
4 years, 9 months ago (2016-03-08 14:59:15 UTC) #35
jonross
4 years, 9 months ago (2016-03-08 15:07:15 UTC) #36
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/1774973002/ by jonross@chromium.org.

The reason for reverting is: This broke the Windows component build.

https://build.chromium.org/p/chromium.fyi/builders/CrWinClang64%28dbg%29/buil....

Powered by Google App Engine
This is Rietveld 408576698