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

Side by Side 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 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #ifndef INPUTSERVICE_H
2 #define INPUTSERVICE_H
3
4 #include <android_native_app_glue.h>
5 #include "jni/input_handler.h"
6 #include "jni/types.h"
7 #include "jni/vm_glue.h"
8
9 class InputService : public InputHandler {
10 public:
11 InputService(android_app* application,
12 VMGlue* vm_glue,
13 const int32_t& width,
14 const int32_t& height);
15
16 public:
17 int32_t Start();
18 bool OnTouchEvent(AInputEvent* event);
19 bool OnKeyEvent(AInputEvent* event);
20
21 private:
22 android_app* application_;
23 VMGlue* vm_glue_;
24 const int32_t& width_, &height_;
25 };
26
27 #endif
28
OLDNEW
« 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