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

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 ba77f83c4891446fcb523221c41d1cc4db6192f0..1b366abd96d6d3826e87b3409fa76c86d5ff600b 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 OnTouchEvent(int pointer_id, ui::EventType action, float x, float y,
+ int64 time_ms);
private:
// Overridden from NativeViewport:
@@ -41,6 +45,7 @@ class NativeViewportAndroid : public NativeViewport {
NativeViewportDelegate* delegate_;
ANativeWindow* window_;
gfx::Size size_;
+ ui::SequentialIDGenerator id_generator_;
base::WeakPtrFactory<NativeViewportAndroid> weak_factory_;

Powered by Google App Engine
This is Rietveld 408576698