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

Side by Side Diff: samples/android_sample/jni/eventloop.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
OLDNEW
(Empty)
1 #ifndef EVENTLOOP_H
2 #define EVENTLOOP_H
3
4 #include <android_native_app_glue.h>
5 #include "activity_handler.h"
6 #include "input_handler.h"
7 #include "context.h"
8
9 class EventLoop {
10 public:
11 EventLoop(android_app* pAPplication);
12 void run(ActivityHandler* pActivityHandler,
13 Context* pContext);
14
15 protected:
16 void activate();
17 void deactivate();
18 void processActivityEvent(int32_t pCommand);
19 int32_t processInputEvent(AInputEvent* pEvent);
20
21 static void activityCallback(android_app* pApplication, int32_t pCommand);
22 static int32_t inputCallback(android_app* pApplication,
23 AInputEvent* pEvent);
24 private:
25 bool mEnabled;
26 bool mQuit;
27 ActivityHandler *mActivityHandler;
28 InputHandler *mInputHandler;
29 android_app* mApplication;
30 };
31
32 #endif
33
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698