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

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

Issue 11416343: Refactored Android samples / embedder. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix type error on playBackground 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « samples/android_sample/jni/main.cc ('k') | samples/android_sample/jni/sound_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/android_sample/jni/resource.h
diff --git a/samples/android_sample/jni/resource.h b/samples/android_sample/jni/resource.h
index 54233a0c47bd7707951b78838bf7ee71d2c5c8f0..eeec42410a824d55d81c31295f65e46285d29074 100644
--- a/samples/android_sample/jni/resource.h
+++ b/samples/android_sample/jni/resource.h
@@ -1,8 +1,14 @@
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
#ifndef RESOURCE_H
#define RESOURCE_H
#include <android_native_app_glue.h>
+#include "jni/log.h"
+
class Resource {
public:
Resource(android_app* application, const char* path)
@@ -34,8 +40,8 @@ class Resource {
asset_ = AAssetManager_open(asset_manager_, path_, AASSET_MODE_UNKNOWN);
if (asset_ != NULL) {
descriptor_ = AAsset_openFileDescriptor(asset_, &start_, &length_);
- Log::Print("%s has start %d, length %d, fd %d",
- path_, start_, length_, descriptor_);
+ LOGI("%s has start %d, length %d, fd %d",
+ path_, start_, length_, descriptor_);
return 0;
}
return -1;
@@ -63,4 +69,3 @@ class Resource {
};
#endif
-
« no previous file with comments | « samples/android_sample/jni/main.cc ('k') | samples/android_sample/jni/sound_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698