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

Unified Diff: mojo/examples/sample_app/sample_app.cc

Issue 218763002: Change AckEvent into request / response (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
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:

Powered by Google App Engine
This is Rietveld 408576698