summaryrefslogtreecommitdiff
path: root/dom/base
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-03-10 22:33:51 +0000
committerMoonchild <moonchild@palemoon.org>2021-03-11 06:41:21 +0000
commitdce8a3300b191eeebee6f15f3f6e0f5a12a177b1 (patch)
treea38500afc01411508ba2cb986f490ca4c8fa9ca1 /dom/base
parent515c1193c5663e46a313acb7a39ed2f3d209f69e (diff)
downloaduxp-dce8a3300b191eeebee6f15f3f6e0f5a12a177b1.tar.gz
Issue #1053 - Remove Android-specific blocks from system headers and /dom
Diffstat (limited to 'dom/base')
-rw-r--r--dom/base/nsFrameMessageManager.cpp6
-rw-r--r--dom/base/nsGlobalWindow.cpp48
2 files changed, 0 insertions, 54 deletions
diff --git a/dom/base/nsFrameMessageManager.cpp b/dom/base/nsFrameMessageManager.cpp
index 4ceada5e15..88ec9c911f 100644
--- a/dom/base/nsFrameMessageManager.cpp
+++ b/dom/base/nsFrameMessageManager.cpp
@@ -49,9 +49,6 @@
#include <algorithm>
#include "chrome/common/ipc_channel.h" // for IPC::Channel::kMaximumMessageSize
-#ifdef ANDROID
-#include <android/log.h>
-#endif
#ifdef XP_WIN
#include <windows.h>
# if defined(SendMessage)
@@ -896,9 +893,6 @@ nsFrameMessageManager::GetChildAt(uint32_t aIndex,
NS_IMETHODIMP
nsFrameMessageManager::Dump(const nsAString& aStr)
{
-#ifdef ANDROID
- __android_log_print(ANDROID_LOG_INFO, "Gecko", "%s", NS_ConvertUTF16toUTF8(aStr).get());
-#endif
#ifdef XP_WIN
if (IsDebuggerPresent()) {
OutputDebugStringW(PromiseFlatString(aStr).get());
diff --git a/dom/base/nsGlobalWindow.cpp b/dom/base/nsGlobalWindow.cpp
index 38a58f947a..a09847820b 100644
--- a/dom/base/nsGlobalWindow.cpp
+++ b/dom/base/nsGlobalWindow.cpp
@@ -24,9 +24,6 @@
#include "mozilla/dom/Timeout.h"
#include "mozilla/dom/TimeoutHandler.h"
#include "mozilla/IntegerPrintfMacros.h"
-#if defined(MOZ_WIDGET_ANDROID)
-#include "mozilla/dom/WindowOrientationObserver.h"
-#endif
#include "nsDOMOfflineResourceList.h"
#include "nsError.h"
#include "nsIIdleService.h"
@@ -251,10 +248,6 @@ class nsIScriptTimeoutHandler;
#endif // check
#include "AccessCheck.h"
-#ifdef ANDROID
-#include <android/log.h>
-#endif
-
#ifdef XP_WIN
#include <process.h>
#define getpid _getpid
@@ -1917,10 +1910,6 @@ nsGlobalWindow::CleanUp()
mSpeechSynthesis = nullptr;
#endif
-#if defined(MOZ_WIDGET_ANDROID)
- mOrientationChangeObserver = nullptr;
-#endif
-
ClearControllers();
mOpener = nullptr; // Forces Release
@@ -2041,10 +2030,6 @@ nsGlobalWindow::FreeInnerObjects(bool aForDocumentOpen)
mScreen = nullptr;
}
-#if defined(MOZ_WIDGET_ANDROID)
- mOrientationChangeObserver = nullptr;
-#endif
-
if (mDoc) {
// Remember the document's principal and URI.
mDocumentPrincipal = mDoc->NodePrincipal();
@@ -7133,9 +7118,6 @@ nsGlobalWindow::Dump(const nsAString& aStr)
#ifdef XP_WIN
PrintToDebugger(cstr);
#endif
-#ifdef ANDROID
- __android_log_write(ANDROID_LOG_INFO, "GeckoDump", cstr);
-#endif
FILE *fp = gDumpFile ? gDumpFile : stdout;
fputs(cstr, fp);
fflush(fp);
@@ -13764,27 +13746,6 @@ nsGlobalWindow::DisableDeviceSensor(uint32_t aType)
}
}
-#if defined(MOZ_WIDGET_ANDROID)
-void
-nsGlobalWindow::EnableOrientationChangeListener()
-{
- MOZ_ASSERT(IsInnerWindow());
- if (!nsContentUtils::ShouldResistFingerprinting(mDocShell) &&
- !mOrientationChangeObserver) {
- mOrientationChangeObserver =
- new WindowOrientationObserver(this);
- }
-}
-
-void
-nsGlobalWindow::DisableOrientationChangeListener()
-{
- MOZ_ASSERT(IsInnerWindow());
-
- mOrientationChangeObserver = nullptr;
-}
-#endif
-
void
nsGlobalWindow::SetHasGamepadEventListener(bool aHasGamepad/* = true*/)
{
@@ -14471,15 +14432,6 @@ nsGlobalWindow::InitWasOffline()
mWasOffline = NS_IsOffline();
}
-#if defined(MOZ_WIDGET_ANDROID)
-int16_t
-nsGlobalWindow::Orientation(CallerType aCallerType) const
-{
- return nsContentUtils::ResistFingerprinting(aCallerType) ?
- 0 : WindowOrientationObserver::OrientationAngle();
-}
-#endif
-
Console*
nsGlobalWindow::GetConsole(ErrorResult& aRv)
{