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

Unified Diff: mojo/services/native_viewport/native_viewport_android.h

Issue 63493002: Wires up MotionEvents for mojo_shell_apk on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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/services/native_viewport/native_viewport_android.h
diff --git a/mojo/services/native_viewport/native_viewport_android.h b/mojo/services/native_viewport/native_viewport_android.h
index f1600cb653ff607e018217b9477d86a053ef5185..736fc0326db607737f305f44ac95898a71868cab 100644
--- a/mojo/services/native_viewport/native_viewport_android.h
+++ b/mojo/services/native_viewport/native_viewport_android.h
@@ -7,6 +7,8 @@
#include "base/memory/weak_ptr.h"
#include "mojo/services/native_viewport/native_viewport.h"
+#include "ui/events/event_constants.h"
+#include "ui/gfx/sequential_id_generator.h"
#include "ui/gfx/size.h"
namespace gpu {
@@ -30,6 +32,8 @@ class NativeViewportAndroid : public NativeViewport {
void OnNativeWindowCreated(ANativeWindow* window);
void OnNativeWindowDestroyed();
void OnResized(const gfx::Size& size);
+ void OnMotionEvent(bool is_touch, int pointer_id, ui::EventType action,
+ float x, float y, int64 time_ms);
private:
// Overridden from NativeViewport:
@@ -42,6 +46,7 @@ class NativeViewportAndroid : public NativeViewport {
ANativeWindow* window_;
gfx::Size size_;
scoped_ptr<gpu::GLInProcessContext> gl_context_;
+ ui::SequentialIDGenerator id_generator_;
base::WeakPtrFactory<NativeViewportAndroid> weak_factory_;

Powered by Google App Engine
This is Rietveld 408576698