summaryrefslogtreecommitdiff
path: root/Source/WebKit2/WebProcess/Geolocation/WebGeolocationManager.cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@digia.com>2013-09-13 12:51:20 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-19 20:50:05 +0200
commitd441d6f39bb846989d95bcf5caf387b42414718d (patch)
treee367e64a75991c554930278175d403c072de6bb8 /Source/WebKit2/WebProcess/Geolocation/WebGeolocationManager.cpp
parent0060b2994c07842f4c59de64b5e3e430525c4b90 (diff)
downloadqtwebkit-d441d6f39bb846989d95bcf5caf387b42414718d.tar.gz
Import Qt5x2 branch of QtWebkit for Qt 5.2
Importing a new snapshot of webkit. Change-Id: I2d01ad12cdc8af8cb015387641120a9d7ea5f10c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Diffstat (limited to 'Source/WebKit2/WebProcess/Geolocation/WebGeolocationManager.cpp')
-rw-r--r--Source/WebKit2/WebProcess/Geolocation/WebGeolocationManager.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/Source/WebKit2/WebProcess/Geolocation/WebGeolocationManager.cpp b/Source/WebKit2/WebProcess/Geolocation/WebGeolocationManager.cpp
index 46b846b4a..aa42f5a6d 100644
--- a/Source/WebKit2/WebProcess/Geolocation/WebGeolocationManager.cpp
+++ b/Source/WebKit2/WebProcess/Geolocation/WebGeolocationManager.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2011, 2012 Apple Inc. All rights reserved.
+ * Copyright (C) 2011, 2012, 2013 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -40,6 +40,11 @@ using namespace WebCore;
namespace WebKit {
+const char* WebGeolocationManager::supplementName()
+{
+ return "WebGeolocationManager";
+}
+
WebGeolocationManager::WebGeolocationManager(WebProcess* process)
: m_process(process)
{
@@ -50,11 +55,6 @@ WebGeolocationManager::~WebGeolocationManager()
{
}
-void WebGeolocationManager::didReceiveMessage(CoreIPC::Connection* connection, CoreIPC::MessageID messageID, CoreIPC::MessageDecoder& decoder)
-{
- didReceiveWebGeolocationManagerMessage(connection, messageID, decoder);
-}
-
void WebGeolocationManager::registerWebPage(WebPage* page)
{
bool wasEmpty = m_pageSet.isEmpty();
@@ -62,7 +62,7 @@ void WebGeolocationManager::registerWebPage(WebPage* page)
m_pageSet.add(page);
if (wasEmpty)
- m_process->connection()->send(Messages::WebGeolocationManagerProxy::StartUpdating(), 0);
+ m_process->parentProcessConnection()->send(Messages::WebGeolocationManagerProxy::StartUpdating(), 0);
}
void WebGeolocationManager::unregisterWebPage(WebPage* page)
@@ -70,7 +70,7 @@ void WebGeolocationManager::unregisterWebPage(WebPage* page)
m_pageSet.remove(page);
if (m_pageSet.isEmpty())
- m_process->connection()->send(Messages::WebGeolocationManagerProxy::StopUpdating(), 0);
+ m_process->parentProcessConnection()->send(Messages::WebGeolocationManagerProxy::StopUpdating(), 0);
}
void WebGeolocationManager::didChangePosition(const WebGeolocationPosition::Data& data)
@@ -78,7 +78,7 @@ void WebGeolocationManager::didChangePosition(const WebGeolocationPosition::Data
#if ENABLE(GEOLOCATION)
RefPtr<GeolocationPosition> position = GeolocationPosition::create(data.timestamp, data.latitude, data.longitude, data.accuracy, data.canProvideAltitude, data.altitude, data.canProvideAltitudeAccuracy, data.altitudeAccuracy, data.canProvideHeading, data.heading, data.canProvideSpeed, data.speed);
- Vector<RefPtr<WebPage> > webPageCopy;
+ Vector<RefPtr<WebPage>> webPageCopy;
copyToVector(m_pageSet, webPageCopy);
for (size_t i = 0; i < webPageCopy.size(); ++i) {
WebPage* page = webPageCopy[i].get();
@@ -96,7 +96,7 @@ void WebGeolocationManager::didFailToDeterminePosition(const String& errorMessag
// FIXME: Add localized error string.
RefPtr<GeolocationError> error = GeolocationError::create(GeolocationError::PositionUnavailable, errorMessage);
- Vector<RefPtr<WebPage> > webPageCopy;
+ Vector<RefPtr<WebPage>> webPageCopy;
copyToVector(m_pageSet, webPageCopy);
for (size_t i = 0; i < webPageCopy.size(); ++i) {
WebPage* page = webPageCopy[i].get();