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

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

Issue 100823010: Wire events through to sample_app (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years 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/native_viewport_client_impl.cc
diff --git a/mojo/examples/sample_app/native_viewport_client_impl.cc b/mojo/examples/sample_app/native_viewport_client_impl.cc
index c956051a80436953cbad51d7820bd1230a10588f..387a64eb79076c4ba0d5865c984c249c2e1bf75b 100644
--- a/mojo/examples/sample_app/native_viewport_client_impl.cc
+++ b/mojo/examples/sample_app/native_viewport_client_impl.cc
@@ -6,6 +6,8 @@
#include <stdio.h>
+#include "base/logging.h"
+
namespace mojo {
namespace examples {
@@ -32,5 +34,12 @@ void NativeViewportClientImpl::Open() {
void NativeViewportClientImpl::DidOpen() {
}
+void NativeViewportClientImpl::HandleEvent(const Event& event) {
+ if (!event.location().is_null()) {
+ LOG(INFO) << "Located Event @"
+ << event.location().x() << "," << event.location().y();
+ }
+}
+
} // namespace examples
} // namespace mojo
« no previous file with comments | « mojo/examples/sample_app/native_viewport_client_impl.h ('k') | mojo/services/native_viewport/native_viewport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698