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

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

Issue 1543293003: Switch to standard integer types in base/android/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « base/android/jni_array_unittest.cc ('k') | base/android/jni_generator/sample_for_tests.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 5
6 #ifndef BASE_ANDROID_JNI_GENERATOR_JNI_GENERATOR_HELPER_H_ 6 #ifndef BASE_ANDROID_JNI_GENERATOR_JNI_GENERATOR_HELPER_H_
7 #define BASE_ANDROID_JNI_GENERATOR_JNI_GENERATOR_HELPER_H_ 7 #define BASE_ANDROID_JNI_GENERATOR_JNI_GENERATOR_HELPER_H_
8 8
9 #include <jni.h> 9 #include <jni.h>
10 10
11 #include "base/android/jni_android.h" 11 #include "base/android/jni_android.h"
12 #include "base/android/scoped_java_ref.h" 12 #include "base/android/scoped_java_ref.h"
13 #include "base/basictypes.h"
14 #include "base/logging.h" 13 #include "base/logging.h"
15 14
16 // Project-specific macros used by the header files generated by 15 // Project-specific macros used by the header files generated by
17 // jni_generator.py. Different projects can then specify their own 16 // jni_generator.py. Different projects can then specify their own
18 // implementation for this file. 17 // implementation for this file.
19 #define CHECK_NATIVE_PTR(env, jcaller, native_ptr, method_name, ...) \ 18 #define CHECK_NATIVE_PTR(env, jcaller, native_ptr, method_name, ...) \
20 DCHECK(native_ptr) << method_name; 19 DCHECK(native_ptr) << method_name;
21 20
22 #define CHECK_CLAZZ(env, jcaller, clazz, ...) \ 21 #define CHECK_CLAZZ(env, jcaller, clazz, ...) \
23 DCHECK(clazz); 22 DCHECK(clazz);
24 23
25 namespace jni_generator { 24 namespace jni_generator {
26 25
27 inline void HandleRegistrationError(JNIEnv* env, jclass clazz, 26 inline void HandleRegistrationError(JNIEnv* env, jclass clazz,
28 const char* filename) { 27 const char* filename) {
29 LOG(ERROR) << "RegisterNatives failed in " << filename; 28 LOG(ERROR) << "RegisterNatives failed in " << filename;
30 } 29 }
31 30
32 inline void CheckException(JNIEnv* env) { 31 inline void CheckException(JNIEnv* env) {
33 base::android::CheckException(env); 32 base::android::CheckException(env);
34 } 33 }
35 34
36 } // namespace jni_generator 35 } // namespace jni_generator
37 36
38 using base::android::ScopedJavaLocalRef; 37 using base::android::ScopedJavaLocalRef;
39 using base::android::JavaParamRef; 38 using base::android::JavaParamRef;
40 39
41 #endif // BASE_ANDROID_JNI_GENERATOR_JNI_GENERATOR_HELPER_H_ 40 #endif // BASE_ANDROID_JNI_GENERATOR_JNI_GENERATOR_HELPER_H_
OLDNEW
« no previous file with comments | « base/android/jni_array_unittest.cc ('k') | base/android/jni_generator/sample_for_tests.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698