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

Unified Diff: mojo/examples/compositor_app/compositor_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/compositor_app/compositor_app.cc
diff --git a/mojo/examples/compositor_app/compositor_app.cc b/mojo/examples/compositor_app/compositor_app.cc
index 75ca06f706c2bece18ce53b9697b38be45fa00b4..a8ce781721935d67769fcb581ea2c07e1f923b07 100644
--- a/mojo/examples/compositor_app/compositor_app.cc
+++ b/mojo/examples/compositor_app/compositor_app.cc
@@ -62,10 +62,9 @@ class SampleApp : public Application, public NativeViewportClient {
host_->SetSize(bounds.size());
}
- virtual void OnEvent(const Event& event) OVERRIDE {
- if (!event.location().is_null()) {
- viewport_->AckEvent(event);
- }
+ virtual void OnEvent(const Event& event,
+ const mojo::Callback<void()>& callback) OVERRIDE {
+ callback.Run();
}
private:

Powered by Google App Engine
This is Rietveld 408576698