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

Unified Diff: samples/android_sample/jni/main.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « samples/android_sample/jni/log.h ('k') | samples/android_sample/jni/resource.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/android_sample/jni/main.cc
diff --git a/samples/android_sample/jni/main.cc b/samples/android_sample/jni/main.cc
deleted file mode 100644
index 0c59b165f67de0df29d3954ee16581ff6cdbc43e..0000000000000000000000000000000000000000
--- a/samples/android_sample/jni/main.cc
+++ /dev/null
@@ -1,31 +0,0 @@
-#include "jni/context.h"
-#include "jni/dart_host.h"
-#include "jni/eventloop.h"
-#include "jni/graphics.h"
-#include "jni/input_service.h"
-#include "jni/vm_glue.h"
-
-SoundService* psound_service;
-
-void android_main(android_app* application) {
- Timer timer;
- Graphics graphics(application, &timer);
- VMGlue vmGlue(&graphics);
- InputService inputService(application, &vmGlue,
- graphics.width(), graphics.height());
- SoundService sound_service(application);
- psound_service = &sound_service;
- Context context;
- context = { &graphics, &inputService, psound_service, &timer, &vmGlue };
- EventLoop eventLoop(application);
- DartHost host(&context);
- eventLoop.Run(&host, &context);
-}
-
-void PlayBackground(const char* path) {
- psound_service->PlayBackground(path);
-}
-
-void StopBackground() {
- psound_service->StopBackground();
-}
« no previous file with comments | « samples/android_sample/jni/log.h ('k') | samples/android_sample/jni/resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698