diff --git a/widget/src/android/AndroidBridge.h b/widget/src/android/AndroidBridge.h index dc9c3798e31..7a6f801feec 100644 --- a/widget/src/android/AndroidBridge.h +++ b/widget/src/android/AndroidBridge.h @@ -52,8 +52,8 @@ #include "nsColor.h" // Some debug #defines -// #define ANDROID_DEBUG_EVENTS -// #define ANDROID_DEBUG_WIDGET +// #define DEBUG_ANDROID_EVENTS +// #define DEBUG_ANDROID_WIDGET class nsWindow; diff --git a/widget/src/android/AndroidJavaWrappers.cpp b/widget/src/android/AndroidJavaWrappers.cpp index 450ef4ec2eb..bb75753999a 100644 --- a/widget/src/android/AndroidJavaWrappers.cpp +++ b/widget/src/android/AndroidJavaWrappers.cpp @@ -439,7 +439,7 @@ AndroidGeckoEvent::Init(JNIEnv *jenv, jobject jobj) break; } -#ifndef ANDROID_DEBUG_EVENTS +#ifndef DEBUG_ANDROID_EVENTS ALOG("AndroidGeckoEvent: %p : %d", (void*)jobj, mType); #endif } diff --git a/widget/src/android/nsAppShell.cpp b/widget/src/android/nsAppShell.cpp index 969920d6a67..de550131ada 100644 --- a/widget/src/android/nsAppShell.cpp +++ b/widget/src/android/nsAppShell.cpp @@ -60,7 +60,7 @@ #include "prlog.h" #endif -#ifdef ANDROID_DEBUG_EVENTS +#ifdef DEBUG_ANDROID_EVENTS #define EVLOG(args...) ALOG(args) #else #define EVLOG(args...) do { } while (0) @@ -217,7 +217,7 @@ nsAppShell::ProcessNextNativeEvent(PRBool mayWait) curEvent = GetNextEvent(); if (!curEvent && mayWait) { // hmm, should we really hardcode this 10s? -#if defined(ANDROID_DEBUG_EVENTS) +#if defined(DEBUG_ANDROID_EVENTS) PRTime t0, t1; EVLOG("nsAppShell: waiting on mQueueCond"); t0 = PR_Now(); @@ -256,7 +256,7 @@ nsAppShell::ProcessNextNativeEvent(PRBool mayWait) RemoveNextEvent(); delete nextEvent; -#if defined(ANDROID_DEBUG_EVENTS) +#if defined(DEBUG_ANDROID_EVENTS) ALOG("# Removing DRAW event (%d outstanding)", mNumDraws); #endif @@ -277,7 +277,7 @@ nsAppShell::ProcessNextNativeEvent(PRBool mayWait) nextEvent->Action() == AndroidMotionEvent::ACTION_MOVE)) break; -#if defined(ANDROID_DEBUG_EVENTS) +#if defined(DEBUG_ANDROID_EVENTS) ALOG("# Removing % 2d event", curType); #endif diff --git a/widget/src/android/nsWindow.cpp b/widget/src/android/nsWindow.cpp index 3fdf8ef6577..db2d369f35b 100644 --- a/widget/src/android/nsWindow.cpp +++ b/widget/src/android/nsWindow.cpp @@ -374,7 +374,7 @@ nsWindow::Show(PRBool aState) nsAppShell::gAppShell->PostEvent(new AndroidGeckoEvent(-1, -1, -1, -1)); } -#ifdef ANDROID_DEBUG_WIDGET +#ifdef DEBUG_ANDROID_WIDGET DumpWindows(); #endif @@ -1587,13 +1587,13 @@ nsWindow::OnKeyEvent(AndroidGeckoEvent *ae) if (status == nsEventStatus_eConsumeNoDefault) { pressEvent.flags |= NS_EVENT_FLAG_NO_DEFAULT; } -#ifdef ANDROID_DEBUG_WIDGET +#ifdef DEBUG_ANDROID_WIDGET __android_log_print(ANDROID_LOG_INFO, "Gecko", "Dispatching key pressEvent with keyCode %d charCode %d shift %d alt %d sym/ctrl %d metamask %d", pressEvent.keyCode, pressEvent.charCode, pressEvent.isShift, pressEvent.isAlt, pressEvent.isControl, ae->MetaState()); #endif DispatchEvent(&pressEvent); } -#ifdef ANDROID_DEBUG_IME +#ifdef DEBUG_ANDROID_IME #define ALOGIME(args...) ALOG(args) #else #define ALOGIME(args...)