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

Side by Side Diff: base/android/jni_generator/golden_sample_for_tests_jni.h

Issue 10803055: Android Allows nested namespace in @JNINamespace annotation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file is autogenerated by 5 // This file is autogenerated by
6 // base/android/jni_generator/jni_generator_tests.py 6 // base/android/jni_generator/jni_generator_tests.py
7 // For 7 // For
8 // org/chromium/example/jni_generator/SampleForTests 8 // org/chromium/example/jni_generator/SampleForTests
9 9
10 #ifndef org_chromium_example_jni_generator_SampleForTests_JNI 10 #ifndef org_chromium_example_jni_generator_SampleForTests_JNI
(...skipping 13 matching lines...) Expand all
24 const char kInnerClassClassPath[] = 24 const char kInnerClassClassPath[] =
25 "org/chromium/example/jni_generator/SampleForTests$InnerClass"; 25 "org/chromium/example/jni_generator/SampleForTests$InnerClass";
26 const char kSampleForTestsClassPath[] = 26 const char kSampleForTestsClassPath[] =
27 "org/chromium/example/jni_generator/SampleForTests"; 27 "org/chromium/example/jni_generator/SampleForTests";
28 // Leaking this jclass as we cannot use LazyInstance from some threads. 28 // Leaking this jclass as we cannot use LazyInstance from some threads.
29 jclass g_InnerClass_clazz = NULL; 29 jclass g_InnerClass_clazz = NULL;
30 // Leaking this jclass as we cannot use LazyInstance from some threads. 30 // Leaking this jclass as we cannot use LazyInstance from some threads.
31 jclass g_SampleForTests_clazz = NULL; 31 jclass g_SampleForTests_clazz = NULL;
32 } // namespace 32 } // namespace
33 33
34 namespace content { 34 namespace base {
35 namespace android {
35 36
36 static jint Init(JNIEnv* env, jobject obj); 37 static jint Init(JNIEnv* env, jobject obj);
37 38
38 static jdouble GetDoubleFunction(JNIEnv* env, jobject obj); 39 static jdouble GetDoubleFunction(JNIEnv* env, jobject obj);
39 40
40 static jfloat GetFloatFunction(JNIEnv* env, jclass clazz); 41 static jfloat GetFloatFunction(JNIEnv* env, jclass clazz);
41 42
42 static void SetNonPODDatatype(JNIEnv* env, jobject obj, 43 static void SetNonPODDatatype(JNIEnv* env, jobject obj,
43 jobject rect); 44 jobject rect);
44 45
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 280
280 if (env->RegisterNatives(g_SampleForTests_clazz, 281 if (env->RegisterNatives(g_SampleForTests_clazz,
281 kMethodsSampleForTests, 282 kMethodsSampleForTests,
282 kMethodsSampleForTestsSize) < 0) { 283 kMethodsSampleForTestsSize) < 0) {
283 LOG(ERROR) << "RegisterNatives failed in " << __FILE__; 284 LOG(ERROR) << "RegisterNatives failed in " << __FILE__;
284 return false; 285 return false;
285 } 286 }
286 287
287 return true; 288 return true;
288 } 289 }
289 } // namespace content 290 } // namespace android
291 } // namespace base
290 292
291 #endif // org_chromium_example_jni_generator_SampleForTests_JNI 293 #endif // org_chromium_example_jni_generator_SampleForTests_JNI
OLDNEW
« no previous file with comments | « base/android/jni_generator/SampleForTests.java ('k') | base/android/jni_generator/jni_generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698