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 |