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

Unified Diff: content/renderer/mus/render_widget_mus_connection.cc

Issue 1749323002: Update WindowTree::OnWindowInputEventAck to include handled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missing Component Build DEPS Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/mus/render_widget_mus_connection.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/mus/render_widget_mus_connection.cc
diff --git a/content/renderer/mus/render_widget_mus_connection.cc b/content/renderer/mus/render_widget_mus_connection.cc
index c2dc1d137b5cb8d48bbdb30ee9f54ac6d11b12cd..bced0df833a11370bf6cc5ba7f00f1e0be7a83ec 100644
--- a/content/renderer/mus/render_widget_mus_connection.cc
+++ b/content/renderer/mus/render_widget_mus_connection.cc
@@ -118,8 +118,8 @@ void RenderWidgetMusConnection::OnDidOverscroll(
void RenderWidgetMusConnection::OnInputEventAck(
scoped_ptr<InputEventAck> input_event_ack) {
DCHECK(!pending_ack_.is_null());
- // TODO(fsamuel): Use the state in |input_event_ack|.
- pending_ack_.Run();
+ pending_ack_.Run(input_event_ack->state ==
+ InputEventAckState::INPUT_EVENT_ACK_STATE_CONSUMED);
pending_ack_.Reset();
}
@@ -161,12 +161,12 @@ void RenderWidgetMusConnection::OnConnectionLost() {
void RenderWidgetMusConnection::OnWindowInputEvent(
scoped_ptr<blink::WebInputEvent> input_event,
- const base::Closure& ack) {
+ const base::Callback<void(bool)>& ack) {
DCHECK(thread_checker_.CalledOnValidThread());
// If we don't yet have a RenderWidgetInputHandler then we don't yet have
// an initialized RenderWidget.
if (!input_handler_) {
- ack.Run();
+ ack.Run(false);
return;
}
// TODO(fsamuel): It would be nice to add this DCHECK but the reality is an
« no previous file with comments | « content/renderer/mus/render_widget_mus_connection.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698