Index: mojo/examples/sample_app/sample_app.cc |
diff --git a/mojo/examples/sample_app/sample_app.cc b/mojo/examples/sample_app/sample_app.cc |
index 66e9df464ea20b8714d5ad2fdf087257bb2dea09..bb9d073c38319c19d7db84b89c97ad4d804d12be 100644 |
--- a/mojo/examples/sample_app/sample_app.cc |
+++ b/mojo/examples/sample_app/sample_app.cc |
@@ -71,11 +71,11 @@ class SampleApp : public Application, public mojo::NativeViewportClient { |
gles2_client_->SetSize(bounds.size()); |
} |
- virtual void OnEvent(const Event& event) MOJO_OVERRIDE { |
- if (!event.location().is_null()) { |
+ virtual void OnEvent(const Event& event, |
+ const mojo::Callback<void()>& callback) MOJO_OVERRIDE { |
+ if (!event.location().is_null()) |
gles2_client_->HandleInputEvent(event); |
- viewport_->AckEvent(event); |
- } |
+ callback.Run(); |
} |
private: |