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

Side by Side Diff: runtime/embedders/android/eventloop.h

Issue 11467028: Migrate files to embedder. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review fixes Created 7 years, 11 months 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 | « runtime/embedders/android/dart_host.cc ('k') | runtime/embedders/android/eventloop.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #ifndef EVENTLOOP_H 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 #define EVENTLOOP_H 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 #ifndef EMBEDDERS_ANDROID_EVENTLOOP_H_
6 #define EMBEDDERS_ANDROID_EVENTLOOP_H_
3 7
4 #include <android_native_app_glue.h> 8 #include <android_native_app_glue.h>
5 #include "jni/activity_handler.h" 9 #include "embedders/android/activity_handler.h"
6 #include "jni/context.h" 10 #include "embedders/android/context.h"
7 #include "jni/input_handler.h" 11 #include "embedders/android/input_handler.h"
8 12
9 class EventLoop { 13 class EventLoop {
10 public: 14 public:
11 explicit EventLoop(android_app* application); 15 explicit EventLoop(android_app* application);
12 void Run(ActivityHandler* activityHandler, Context* context); 16 void Run(ActivityHandler* activityHandler, Context* context);
13 17
14 protected: 18 protected:
15 void Activate(); 19 void Activate();
16 void Deactivate(); 20 void Deactivate();
17 void ProcessActivityEvent(int32_t command); 21 void ProcessActivityEvent(int32_t command);
18 int32_t ProcessInputEvent(AInputEvent* event); 22 int32_t ProcessInputEvent(AInputEvent* event);
19 23
20 static void ActivityCallback(android_app* application, int32_t command); 24 static void ActivityCallback(android_app* application, int32_t command);
21 static int32_t InputCallback(android_app* application, AInputEvent* event); 25 static int32_t InputCallback(android_app* application, AInputEvent* event);
22 26
23 private: 27 private:
24 bool enabled_; 28 bool enabled_;
25 bool quit_; 29 bool quit_;
30 android_app* application_;
26 ActivityHandler* activity_handler_; 31 ActivityHandler* activity_handler_;
27 InputHandler* input_handler_; 32 InputHandler* input_handler_;
28 android_app* application_;
29 }; 33 };
30 34
31 #endif 35 #endif // EMBEDDERS_ANDROID_EVENTLOOP_H_
32
OLDNEW
« no previous file with comments | « runtime/embedders/android/dart_host.cc ('k') | runtime/embedders/android/eventloop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698