summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2010-03-17 18:23:16 +0000
committerSteve Block <steveblock@google.com>2010-03-17 18:57:45 +0000
commit363d073b4eb761499b7bf1d6834b00e9551406e4 (patch)
treea69daf74dcc42fb5a5b69df37ae86c511f8a37de
parent02fe43bef497d2b2f8ca88b5d495374cf86ba11d (diff)
downloadexternal_webkit-363d073b4eb761499b7bf1d6834b00e9551406e4.zip
external_webkit-363d073b4eb761499b7bf1d6834b00e9551406e4.tar.gz
external_webkit-363d073b4eb761499b7bf1d6834b00e9551406e4.tar.bz2
Fixes the Mac build
- JavaInstanceJSC.cpp - Adds ANDROID guards around some temporary logging - Geolocation.cpp - Adds ANDROID guards around changes waiting to be upstreamed - WebChromeClient.h / EmptyClients.h - Pulls the Mac part of a WebKit change for which only the Android part was cherry-picked in https://android-git.corp.google.com/g/#change,41747 Change-Id: Ide97cb6b05e78528fe4b9430466837dedaadc4cf
-rw-r--r--WebCore/bridge/jni/jsc/JavaInstanceJSC.cpp14
-rw-r--r--WebCore/loader/EmptyClients.h1
-rw-r--r--WebCore/page/Geolocation.cpp2
-rw-r--r--WebKit/mac/WebCoreSupport/WebChromeClient.h1
4 files changed, 12 insertions, 6 deletions
diff --git a/WebCore/bridge/jni/jsc/JavaInstanceJSC.cpp b/WebCore/bridge/jni/jsc/JavaInstanceJSC.cpp
index d654d1d..f2a2cf4 100644
--- a/WebCore/bridge/jni/jsc/JavaInstanceJSC.cpp
+++ b/WebCore/bridge/jni/jsc/JavaInstanceJSC.cpp
@@ -51,10 +51,10 @@
}
#endif
-// ANDROID
+#if PLATFORM(ANDROID)
#include <cutils/log.h>
#define LOG_TAG JavaInstanceJSC.cpp
-// END ANDROID
+#endif
using namespace JSC::Bindings;
using namespace JSC;
@@ -329,10 +329,10 @@ JObjectWrapper::JObjectWrapper(jobject instance)
: m_refCount(0)
{
assert(instance);
-// ANDROID
+#if PLATFORM(ANDROID)
if (!instance)
LOGE("Attempted to create JObjectWrapper for null object");
-// END ANDROID
+#endif
// Cache the JNIEnv used to get the global ref for this java instance.
// It'll be used to delete the reference.
@@ -343,9 +343,11 @@ JObjectWrapper::JObjectWrapper(jobject instance)
JS_LOG("new global ref %p for %p\n", m_instance, instance);
if (!m_instance)
-// ANDROID
+#if PLATFORM(ANDROID)
LOGE("%s: could not get GlobalRef for %p\n", __PRETTY_FUNCTION__, instance);
-// END ANDROID
+#else
+ fprintf(stderr, "%s: could not get GlobalRef for %p\n", __PRETTY_FUNCTION__, instance);
+#endif
}
JObjectWrapper::~JObjectWrapper()
diff --git a/WebCore/loader/EmptyClients.h b/WebCore/loader/EmptyClients.h
index 2da2fb2..5b24bd3 100644
--- a/WebCore/loader/EmptyClients.h
+++ b/WebCore/loader/EmptyClients.h
@@ -163,6 +163,7 @@ public:
virtual void scrollRectIntoView(const IntRect&, const ScrollView*) const {}
virtual void requestGeolocationPermissionForFrame(Frame*, Geolocation*) {}
+ virtual void cancelGeolocationPermissionRequestForFrame(Frame*) {}
#if USE(ACCELERATED_COMPOSITING)
virtual void attachRootGraphicsLayer(Frame*, GraphicsLayer*) {};
diff --git a/WebCore/page/Geolocation.cpp b/WebCore/page/Geolocation.cpp
index 6085b32..a885062 100644
--- a/WebCore/page/Geolocation.cpp
+++ b/WebCore/page/Geolocation.cpp
@@ -38,7 +38,9 @@
// END ANDROID
#include "Frame.h"
#include "Page.h"
+#if PLATFORM(ANDROID)
#include "PlatformBridge.h"
+#endif
#include <wtf/CurrentTime.h>
#if ENABLE(CLIENT_BASED_GEOLOCATION)
diff --git a/WebKit/mac/WebCoreSupport/WebChromeClient.h b/WebKit/mac/WebCoreSupport/WebChromeClient.h
index 66381a4..8e8b51a 100644
--- a/WebKit/mac/WebCoreSupport/WebChromeClient.h
+++ b/WebKit/mac/WebCoreSupport/WebChromeClient.h
@@ -159,6 +159,7 @@ public:
#endif
virtual void requestGeolocationPermissionForFrame(WebCore::Frame*, WebCore::Geolocation*);
+ virtual void cancelGeolocationPermissionRequestForFrame(WebCore::Frame*) { }
private:
WebView *m_webView;