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

Unified Diff: samples/android_sample/jni/input_service.h

Issue 11434046: Android rayshader sample. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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
« no previous file with comments | « samples/android_sample/jni/input_handler.h ('k') | samples/android_sample/jni/input_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/android_sample/jni/input_service.h
===================================================================
--- samples/android_sample/jni/input_service.h (revision 0)
+++ samples/android_sample/jni/input_service.h (revision 0)
@@ -0,0 +1,28 @@
+#ifndef INPUTSERVICE_H
+#define INPUTSERVICE_H
+
+#include <android_native_app_glue.h>
+#include "jni/input_handler.h"
+#include "jni/types.h"
+#include "jni/vm_glue.h"
+
+class InputService : public InputHandler {
+ public:
+ InputService(android_app* application,
+ VMGlue* vm_glue,
+ const int32_t& width,
+ const int32_t& height);
+
+ public:
+ int32_t Start();
+ bool OnTouchEvent(AInputEvent* event);
+ bool OnKeyEvent(AInputEvent* event);
+
+ private:
+ android_app* application_;
+ VMGlue* vm_glue_;
+ const int32_t& width_, &height_;
+};
+
+#endif
+
« no previous file with comments | « samples/android_sample/jni/input_handler.h ('k') | samples/android_sample/jni/input_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698