summaryrefslogtreecommitdiffstats
path: root/components/mus/public/cpp/input_event_handler.h
diff options
context:
space:
mode:
Diffstat (limited to 'components/mus/public/cpp/input_event_handler.h')
-rw-r--r--components/mus/public/cpp/input_event_handler.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/components/mus/public/cpp/input_event_handler.h b/components/mus/public/cpp/input_event_handler.h
index ebd1597..597653b 100644
--- a/components/mus/public/cpp/input_event_handler.h
+++ b/components/mus/public/cpp/input_event_handler.h
@@ -16,11 +16,14 @@ class Window;
class InputEventHandler {
public:
// 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;
+ // the |ack_callback|. The callback takes a bool representing whether the
+ // handler has consumed the event. If the handler does not take ownership of
+ // the callback, then WindowTreeClientImpl will ack the event as not consumed.
+ virtual void OnWindowInputEvent(
+ Window* target,
+ mojom::EventPtr event,
+ scoped_ptr<base::Callback<void(bool)>>* ack_callback) = 0;
+
protected:
virtual ~InputEventHandler() {}
};