From daee1033b2624ef1e03be35756ea75afaa7ea501 Mon Sep 17 00:00:00 2001 From: Steve Block Date: Fri, 22 Jan 2010 14:44:13 +0000 Subject: [PATCH] Bring Geolocation up-to-date with WebKit change 53342 to make suspend/resume public See http://trac.webkit.org/changeset/53342 Change-Id: Ib28c69a686d72ea4fb17b52b6476bfc5696b1db3 --- WebCore/page/Geolocation.cpp | 4 ++++ WebCore/page/Geolocation.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/WebCore/page/Geolocation.cpp b/WebCore/page/Geolocation.cpp index 5a9768c90..231d57a30 100644 --- a/WebCore/page/Geolocation.cpp +++ b/WebCore/page/Geolocation.cpp @@ -495,14 +495,18 @@ void Geolocation::clearWatch(int watchId) void Geolocation::suspend() { +#if !ENABLE(CLIENT_BASED_GEOLOCATION) if (hasListeners()) m_service->suspend(); +#endif } void Geolocation::resume() { +#if !ENABLE(CLIENT_BASED_GEOLOCATION) if (hasListeners()) m_service->resume(); +#endif } void Geolocation::setIsAllowed(bool allowed) diff --git a/WebCore/page/Geolocation.h b/WebCore/page/Geolocation.h index 6249bc2e0..3006b2949 100644 --- a/WebCore/page/Geolocation.h +++ b/WebCore/page/Geolocation.h @@ -73,7 +73,7 @@ public: void suspend(); void resume(); - + void setIsAllowed(bool); bool isAllowed() const { return m_allowGeolocation == Yes; } bool isDenied() const { return m_allowGeolocation == No; } -- 2.11.0