diff options
author | jonross <jonross@chromium.org> | 2016-03-08 06:03:26 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-08 14:04:36 +0000 |
commit | c3385cc179280dd4b09733b2954be7e9ae3b5112 (patch) | |
tree | fcb8a119477033e1e18f3b8ca5b4bd0b0445b7ea /components/mus/public/cpp/tests/test_window_tree.cc | |
parent | 1d3dd7dbbeea929087e089ae1e8acdaa4fae80aa (diff) | |
download | chromium_src-c3385cc179280dd4b09733b2954be7e9ae3b5112.zip chromium_src-c3385cc179280dd4b09733b2954be7e9ae3b5112.tar.gz chromium_src-c3385cc179280dd4b09733b2954be7e9ae3b5112.tar.bz2 |
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
Review URL: https://codereview.chromium.org/1749323002
Cr-Commit-Position: refs/heads/master@{#379821}
Diffstat (limited to 'components/mus/public/cpp/tests/test_window_tree.cc')
-rw-r--r-- | components/mus/public/cpp/tests/test_window_tree.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/mus/public/cpp/tests/test_window_tree.cc b/components/mus/public/cpp/tests/test_window_tree.cc index 398a661..7301bd9 100644 --- a/components/mus/public/cpp/tests/test_window_tree.cc +++ b/components/mus/public/cpp/tests/test_window_tree.cc @@ -132,7 +132,7 @@ void TestWindowTree::SetImeVisibility(uint32_t window_id, bool visible, mojo::TextInputStatePtr state) {} -void TestWindowTree::OnWindowInputEventAck(uint32_t event_id) { +void TestWindowTree::OnWindowInputEventAck(uint32_t event_id, bool handled) { EXPECT_FALSE(acked_events_.count(event_id)); acked_events_.insert(event_id); } |