Bug 1378410 - 3. Update generated bindings; r=me draft
authorJim Chen <nchen@mozilla.com>
Fri, 01 Sep 2017 14:02:44 -0400
changeset 657617 55b65c665263723e5d34560099e1c9d7044b981f
parent 657616 3a1769e4b45bab3175b3609d08e53534380facce
child 729475 92934d9e588500dfec2d9ef5672245f923e4ebde
push id77575
push userbmo:nchen@mozilla.com
push dateFri, 01 Sep 2017 18:04:14 +0000
reviewersme
bugs1378410
milestone57.0a1
Bug 1378410 - 3. Update generated bindings; r=me MozReview-Commit-ID: fKCoCqFmZk
widget/android/GeneratedJNINatives.h
widget/android/GeneratedJNIWrappers.cpp
widget/android/GeneratedJNIWrappers.h
widget/android/fennec/FennecJNINatives.h
widget/android/fennec/FennecJNIWrappers.cpp
widget/android/fennec/FennecJNIWrappers.h
--- a/widget/android/GeneratedJNINatives.h
+++ b/widget/android/GeneratedJNINatives.h
@@ -2,18 +2,20 @@
 // Generated by the Java program at /build/annotationProcessors at compile time
 // from annotations on Java methods. To update, change the annotations on the
 // corresponding Java methods and rerun the build. Manually updating this file
 // will cause your build to fail.
 
 #ifndef GeneratedJNINatives_h
 #define GeneratedJNINatives_h
 
+#ifndef MOZ_PREPROCESSOR
 #include "GeneratedJNIWrappers.h"
 #include "mozilla/jni/Natives.h"
+#endif
 
 namespace mozilla {
 namespace java {
 
 template<class Impl>
 class AndroidGamepadManager::Natives : public mozilla::jni::NativeImpl<AndroidGamepadManager, Impl>
 {
 public:
--- a/widget/android/GeneratedJNIWrappers.cpp
+++ b/widget/android/GeneratedJNIWrappers.cpp
@@ -1,16 +1,18 @@
 // GENERATED CODE
 // Generated by the Java program at /build/annotationProcessors at compile time
 // from annotations on Java methods. To update, change the annotations on the
 // corresponding Java methods and rerun the build. Manually updating this file
 // will cause your build to fail.
 
+#ifndef MOZ_PREPROCESSOR
 #include "GeneratedJNIWrappers.h"
 #include "mozilla/jni/Accessors.h"
+#endif
 
 namespace mozilla {
 namespace java {
 
 const char AndroidGamepadManager::name[] =
         "org/mozilla/gecko/AndroidGamepadManager";
 
 constexpr char AndroidGamepadManager::OnAxisChange_t::name[];
--- a/widget/android/GeneratedJNIWrappers.h
+++ b/widget/android/GeneratedJNIWrappers.h
@@ -2,17 +2,19 @@
 // Generated by the Java program at /build/annotationProcessors at compile time
 // from annotations on Java methods. To update, change the annotations on the
 // corresponding Java methods and rerun the build. Manually updating this file
 // will cause your build to fail.
 
 #ifndef GeneratedJNIWrappers_h
 #define GeneratedJNIWrappers_h
 
+#ifndef MOZ_PREPROCESSOR
 #include "mozilla/jni/Refs.h"
+#endif
 
 namespace mozilla {
 namespace java {
 
 class AndroidGamepadManager : public mozilla::jni::ObjectBase<AndroidGamepadManager>
 {
 public:
     static const char name[];
--- a/widget/android/fennec/FennecJNINatives.h
+++ b/widget/android/fennec/FennecJNINatives.h
@@ -2,18 +2,20 @@
 // Generated by the Java program at /build/annotationProcessors at compile time
 // from annotations on Java methods. To update, change the annotations on the
 // corresponding Java methods and rerun the build. Manually updating this file
 // will cause your build to fail.
 
 #ifndef FennecJNINatives_h
 #define FennecJNINatives_h
 
+#ifndef MOZ_PREPROCESSOR
 #include "FennecJNIWrappers.h"
 #include "mozilla/jni/Natives.h"
+#endif
 
 namespace mozilla {
 namespace java {
 
 template<class Impl>
 class ANRReporter::Natives : public mozilla::jni::NativeImpl<ANRReporter, Impl>
 {
 public:
--- a/widget/android/fennec/FennecJNIWrappers.cpp
+++ b/widget/android/fennec/FennecJNIWrappers.cpp
@@ -1,16 +1,18 @@
 // GENERATED CODE
 // Generated by the Java program at /build/annotationProcessors at compile time
 // from annotations on Java methods. To update, change the annotations on the
 // corresponding Java methods and rerun the build. Manually updating this file
 // will cause your build to fail.
 
+#ifndef MOZ_PREPROCESSOR
 #include "FennecJNIWrappers.h"
 #include "mozilla/jni/Accessors.h"
+#endif
 
 namespace mozilla {
 namespace java {
 
 const char ANRReporter::name[] =
         "org/mozilla/gecko/ANRReporter";
 
 constexpr char ANRReporter::GetNativeStack_t::name[];
--- a/widget/android/fennec/FennecJNIWrappers.h
+++ b/widget/android/fennec/FennecJNIWrappers.h
@@ -2,17 +2,19 @@
 // Generated by the Java program at /build/annotationProcessors at compile time
 // from annotations on Java methods. To update, change the annotations on the
 // corresponding Java methods and rerun the build. Manually updating this file
 // will cause your build to fail.
 
 #ifndef FennecJNIWrappers_h
 #define FennecJNIWrappers_h
 
+#ifndef MOZ_PREPROCESSOR
 #include "mozilla/jni/Refs.h"
+#endif
 
 namespace mozilla {
 namespace java {
 
 class ANRReporter : public mozilla::jni::ObjectBase<ANRReporter>
 {
 public:
     static const char name[];