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

Unified Diff: components/mus/public/cpp/input_event_handler.h

Issue 1749323002: Update WindowTree::OnWindowInputEventAck to include handled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
Index: components/mus/public/cpp/input_event_handler.h
diff --git a/components/mus/public/cpp/input_event_handler.h b/components/mus/public/cpp/input_event_handler.h
index ebd159717f58f48c16b513f5cb33b3171a4b20c7..797b017af23b6c0ac66b75479c2de68a21148322 100644
--- a/components/mus/public/cpp/input_event_handler.h
+++ b/components/mus/public/cpp/input_event_handler.h
@@ -18,9 +18,11 @@ class InputEventHandler {
// The event handler can asynchronously ack the event by taking ownership of
// the |ack_callback|. If the handler does not take ownership of the callback,
// then WindowTreeClientImpl will ack the event.
- virtual void OnWindowInputEvent(Window* target,
- mojom::EventPtr event,
- scoped_ptr<base::Closure>* ack_callback) = 0;
+ virtual void OnWindowInputEvent(
+ Window* target,
+ mojom::EventPtr event,
+ scoped_ptr<base::Callback<void(bool)>>* ack_callback) = 0;
sky 2016/03/01 23:08:17 Document what the bool means.
jonross 2016/03/02 15:23:23 Done.
+
protected:
virtual ~InputEventHandler() {}
};

Powered by Google App Engine
This is Rietveld 408576698