WebKit/chromium/ChangeLog

 12010-11-19 John Knottenbelt <jknotten@chromium.org>
 2
 3 Reviewed by NOBODY (OOPS!).
 4
 5 [Chromium] Introduce wrapper types for WebCore::GeolocationError, WebCore::GeolocationPosition, WebCore::GeolocationController.
 6 https://bugs.webkit.org/show_bug.cgi?id=49735
 7
 8 Introduce WebKit API types so that the browser implementation can feed
 9 position and error updates to the WebCore::GeolocationController.
 10
 11 * WebKit.gyp:
 12 * public/WebGeolocationController.h: Added.
 13 (WebKit::WebGeolocationController::WebGeolocationController):
 14 * public/WebGeolocationError.h: Added.
 15 (WebKit::WebGeolocationError::WebGeolocationError):
 16 (WebKit::WebGeolocationError::code):
 17 (WebKit::WebGeolocationError::message):
 18 * public/WebGeolocationPosition.h: Added.
 19 (WebKit::WebGeolocationPosition::WebGeolocationPosition):
 20 (WebKit::WebGeolocationPosition::timestamp):
 21 (WebKit::WebGeolocationPosition::latitude):
 22 (WebKit::WebGeolocationPosition::longitude):
 23 (WebKit::WebGeolocationPosition::accuracy):
 24 (WebKit::WebGeolocationPosition::altitude):
 25 (WebKit::WebGeolocationPosition::altitudeAccuracy):
 26 (WebKit::WebGeolocationPosition::heading):
 27 (WebKit::WebGeolocationPosition::speed):
 28 (WebKit::WebGeolocationPosition::canProvideAltitude):
 29 (WebKit::WebGeolocationPosition::canProvideAltitudeAccuracy):
 30 (WebKit::WebGeolocationPosition::canProvideHeading):
 31 (WebKit::WebGeolocationPosition::canProvideSpeed):
 32 * src/WebGeolocationController.cpp: Added.
 33 (WebKit::WebGeolocationController::positionChanged):
 34 (WebKit::WebGeolocationController::errorOccurred):
 35 (WebKit::WebGeolocationController::controller):
 36 (WebKit::WebGeolocationController::operator bool):
 37 * src/WebGeolocationError.cpp: Added.
 38 (WebKit::WebGeolocationError::WebGeolocationError):
 39 (WebKit::WebGeolocationError::operator=):
 40 (WebKit::WebGeolocationError::operator WTF::PassRefPtr<WebCore::GeolocationError>):
 41 (WebKit::WebGeolocationError::copyFrom):
 42 * src/WebGeolocationPosition.cpp: Added.
 43 (WebKit::WebGeolocationPosition::operator=):
 44 (WebKit::WebGeolocationPosition::copyFrom):
 45 (WebKit::WebGeolocationPosition::operator PassRefPtr<WebCore::GeolocationPosition>):
 46
1472010-11-18 Pavel Feldman <pfeldman@chromium.org>
248
349 Reviewed by Yury Semikhatsky.

WebKit/chromium/WebKit.gyp

173173 'public/WebFontCache.h',
174174 'public/WebFormControlElement.h',
175175 'public/WebFormElement.h',
 176 'public/WebGeolocationController.h',
 177 'public/WebGeolocationError.h',
 178 'public/WebGeolocationPosition.h',
176179 'public/WebGeolocationService.h',
177180 'public/WebGeolocationServiceBridge.h',
178181 'public/WebGeolocationServiceMock.h',

440443 'src/WebFormElement.cpp',
441444 'src/WebFrameImpl.cpp',
442445 'src/WebFrameImpl.h',
 446 'src/WebGeolocationController.cpp',
 447 'src/WebGeolocationError.cpp',
 448 'src/WebGeolocationPosition.cpp',
443449 'src/WebGeolocationServiceBridgeImpl.cpp',
444450 'src/WebGeolocationServiceBridgeImpl.h',
445451 'src/WebGeolocationServiceMock.cpp',

664670 ['exclude', 'WebGeolocationService.*$'],
665671 ['include', 'WebGeolocationServiceMock.*'],
666672 ],
 673 }, {
 674 'sources/': [
 675 ['exclude', 'WebGeolocationController.*'],
 676 ['exclude', 'WebGeolocationError.*'],
 677 ['exclude', 'WebGeolocationPosition.*'],
 678 ],
667679 }]
668680 ],
669681 },

WebKit/chromium/public/WebGeolocationController.h

 1/*
 2 * Copyright (C) 2010 Google Inc. All rights reserved.
 3 *
 4 * Redistribution and use in source and binary forms, with or without
 5 * modification, are permitted provided that the following conditions
 6 * are met:
 7 *
 8 * 1. Redistributions of source code must retain the above copyright
 9 * notice, this list of conditions and the following disclaimer.
 10 * 2. Redistributions in binary form must reproduce the above copyright
 11 * notice, this list of conditions and the following disclaimer in the
 12 * documentation and/or other materials provided with the distribution.
 13 *
 14 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
 15 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 16 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 17 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
 18 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 19 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 20 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 21 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 24 */
 25
 26#ifndef WebGeolocationController_h
 27#define WebGeolocationController_h
 28
 29#include "WebCommon.h"
 30
 31namespace WebCore { class GeolocationController; }
 32
 33namespace WebKit {
 34
 35class WebGeolocationPosition;
 36class WebGeolocationError;
 37
 38class WebGeolocationController {
 39public:
 40 WebGeolocationController()
 41 : m_controller(0)
 42 {
 43 }
 44
 45 WebGeolocationController(WebCore::GeolocationController* c)
 46 : m_controller(c)
 47 {
 48 }
 49
 50 WEBKIT_API void positionChanged(const WebGeolocationPosition*);
 51 WEBKIT_API void errorOccurred(const WebGeolocationError*);
 52
 53#if WEBKIT_IMPLEMENTATION
 54 WebCore::GeolocationController* controller() const;
 55 operator bool() const;
 56#endif
 57
 58private:
 59 WebCore::GeolocationController* m_controller;
 60};
 61
 62} // namespace WebKit
 63
 64#endif // WebGeolocationController_h

WebKit/chromium/public/WebGeolocationError.h

 1/*
 2 * Copyright (C) 2010 Google Inc. All rights reserved.
 3 *
 4 * Redistribution and use in source and binary forms, with or without
 5 * modification, are permitted provided that the following conditions
 6 * are met:
 7 *
 8 * 1. Redistributions of source code must retain the above copyright
 9 * notice, this list of conditions and the following disclaimer.
 10 * 2. Redistributions in binary form must reproduce the above copyright
 11 * notice, this list of conditions and the following disclaimer in the
 12 * documentation and/or other materials provided with the distribution.
 13 *
 14 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
 15 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 16 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 17 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
 18 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 19 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 20 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 21 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 24 */
 25
 26#ifndef WebGeolocationError_h
 27#define WebGeolocationError_h
 28
 29#include "WebString.h"
 30
 31#if WEBKIT_IMPLEMENTATION
 32namespace WebCore { class GeolocationError; }
 33namespace WTF { template <typename T> class PassRefPtr; }
 34#endif
 35
 36namespace WebKit {
 37
 38class WebGeolocationError {
 39public:
 40 enum ErrorCode {
 41 PermissionDenied,
 42 PositionUnavailable
 43 };
 44
 45 WebGeolocationError(ErrorCode code, const WebString& message)
 46 : m_code(code),
 47 m_message(message)
 48 {
 49 }
 50
 51 ErrorCode code() const { return m_code; }
 52 const WebString& message() const { return m_message; }
 53
 54#if WEBKIT_IMPLEMENTATION
 55 WebGeolocationError(const WebCore::GeolocationError*);
 56 WebGeolocationError& operator=(const WebCore::GeolocationError*);
 57 operator WTF::PassRefPtr<WebCore::GeolocationError>() const;
 58#endif
 59
 60private:
 61 WebGeolocationError()
 62 : m_code(PositionUnavailable)
 63 {
 64 }
 65
 66#if WEBKIT_IMPLEMENTATION
 67 void copyFrom(const WebCore::GeolocationError*);
 68#endif
 69
 70 ErrorCode m_code;
 71 WebString m_message;
 72};
 73
 74} // namespace WebKit
 75
 76#endif // WebGeolocationError_h

WebKit/chromium/public/WebGeolocationPosition.h

 1/*
 2 * Copyright (C) 2010 Google Inc. All rights reserved.
 3 *
 4 * Redistribution and use in source and binary forms, with or without
 5 * modification, are permitted provided that the following conditions
 6 * are met:
 7 *
 8 * 1. Redistributions of source code must retain the above copyright
 9 * notice, this list of conditions and the following disclaimer.
 10 * 2. Redistributions in binary form must reproduce the above copyright
 11 * notice, this list of conditions and the following disclaimer in the
 12 * documentation and/or other materials provided with the distribution.
 13 *
 14 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
 15 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 16 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 17 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
 18 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 19 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 20 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 21 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 24 */
 25
 26#ifndef WebGeolocationPosition_h
 27#define WebGeolocationPosition_h
 28
 29#if WEBKIT_IMPLEMENTATION
 30#include <wtf/PassRefPtr.h>
 31namespace WebCore { class GeolocationPosition; }
 32#endif
 33
 34namespace WebKit {
 35
 36class WebGeolocationPosition {
 37public:
 38 WebGeolocationPosition(double timestamp, double latitude, double longitude, double accuracy,
 39 bool providesAltitude, double altitude, bool providesAltitudeAccuracy,
 40 double altitudeAccuracy, bool providesHeading, double heading,
 41 bool providesSpeed, double speed)
 42 : m_timestamp(timestamp),
 43 m_latitude(latitude),
 44 m_longitude(longitude),
 45 m_accuracy(accuracy),
 46 m_altitude(altitude),
 47 m_altitudeAccuracy(altitudeAccuracy),
 48 m_heading(heading),
 49 m_speed(speed),
 50 m_canProvideAltitude(providesAltitude),
 51 m_canProvideAltitudeAccuracy(providesAltitudeAccuracy),
 52 m_canProvideHeading(providesHeading),
 53 m_canProvideSpeed(providesSpeed)
 54 {
 55 }
 56
 57 WebGeolocationPosition()
 58 {
 59 }
 60
 61 double timestamp() const { return m_timestamp; }
 62
 63 double latitude() const { return m_latitude; }
 64 double longitude() const { return m_longitude; }
 65 double accuracy() const { return m_accuracy; }
 66 double altitude() const { return m_altitude; }
 67 double altitudeAccuracy() const { return m_altitudeAccuracy; }
 68 double heading() const { return m_heading; }
 69 double speed() const { return m_speed; }
 70
 71 bool canProvideAltitude() const { return m_canProvideAltitude; }
 72 bool canProvideAltitudeAccuracy() const { return m_canProvideAltitudeAccuracy; }
 73 bool canProvideHeading() const { return m_canProvideHeading; }
 74 bool canProvideSpeed() const { return m_canProvideSpeed; }
 75
 76#if WEBKIT_IMPLEMENTATION
 77 WebGeolocationPosition(const WebCore::GeolocationPosition& position)
 78 {
 79 copyFrom(position);
 80 }
 81 WebGeolocationPosition& operator=(const WebCore::GeolocationPosition&);
 82 operator WTF::PassRefPtr<WebCore::GeolocationPosition>() const;
 83#endif
 84
 85private:
 86
 87#if WEBKIT_IMPLEMENTATION
 88 void copyFrom(const WebCore::GeolocationPosition&);
 89#endif
 90
 91 double m_timestamp;
 92
 93 double m_latitude;
 94 double m_longitude;
 95 double m_accuracy;
 96 double m_altitude;
 97 double m_altitudeAccuracy;
 98 double m_heading;
 99 double m_speed;
 100
 101 bool m_canProvideAltitude;
 102 bool m_canProvideAltitudeAccuracy;
 103 bool m_canProvideHeading;
 104 bool m_canProvideSpeed;
 105};
 106
 107} // namespace WebKit
 108
 109#endif // WebGeolocationPosition_h

WebKit/chromium/src/WebGeolocationController.cpp

 1/*
 2 * Copyright (C) 2010 Google Inc. All rights reserved.
 3 *
 4 * Redistribution and use in source and binary forms, with or without
 5 * modification, are permitted provided that the following conditions
 6 * are met:
 7 *
 8 * 1. Redistributions of source code must retain the above copyright
 9 * notice, this list of conditions and the following disclaimer.
 10 * 2. Redistributions in binary form must reproduce the above copyright
 11 * notice, this list of conditions and the following disclaimer in the
 12 * documentation and/or other materials provided with the distribution.
 13 *
 14 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
 15 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 16 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 17 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
 18 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 19 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 20 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 21 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 24 */
 25
 26#include "config.h"
 27#include "WebGeolocationController.h"
 28
 29#include "GeolocationController.h"
 30#include "GeolocationError.h"
 31#include "GeolocationPosition.h"
 32#include "WebGeolocationError.h"
 33#include "WebGeolocationPosition.h"
 34
 35#include <wtf/PassRefPtr.h>
 36
 37namespace WebKit {
 38
 39void WebGeolocationController::positionChanged(const WebGeolocationPosition* webPosition)
 40{
 41 ASSERT(webPosition);
 42 m_controller->positionChanged(PassRefPtr<WebCore::GeolocationPosition>(*webPosition).get());
 43}
 44
 45void WebGeolocationController::errorOccurred(const WebGeolocationError* webError)
 46{
 47 ASSERT(webError);
 48 m_controller->errorOccurred(PassRefPtr<WebCore::GeolocationError>(*webError).get());
 49}
 50
 51WebCore::GeolocationController* WebGeolocationController::controller() const
 52{
 53 return m_controller;
 54}
 55
 56WebGeolocationController::operator bool() const
 57{
 58 return m_controller;
 59}
 60
 61} // namespace WebKit

WebKit/chromium/src/WebGeolocationError.cpp

 1/*
 2 * Copyright (C) 2010 Google Inc. All rights reserved.
 3 *
 4 * Redistribution and use in source and binary forms, with or without
 5 * modification, are permitted provided that the following conditions
 6 * are met:
 7 *
 8 * 1. Redistributions of source code must retain the above copyright
 9 * notice, this list of conditions and the following disclaimer.
 10 * 2. Redistributions in binary form must reproduce the above copyright
 11 * notice, this list of conditions and the following disclaimer in the
 12 * documentation and/or other materials provided with the distribution.
 13 *
 14 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
 15 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 16 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 17 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
 18 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 19 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 20 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 21 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 24 */
 25
 26#include "config.h"
 27#include "WebGeolocationError.h"
 28
 29#include "GeolocationError.h"
 30
 31#include <wtf/PassRefPtr.h>
 32
 33namespace WebKit {
 34
 35WebGeolocationError::WebGeolocationError(const WebCore::GeolocationError* error)
 36{
 37 copyFrom(error);
 38}
 39
 40WebGeolocationError& WebGeolocationError::operator=(const WebCore::GeolocationError* error)
 41{
 42 copyFrom(error);
 43 return *this;
 44}
 45
 46WebGeolocationError::operator WTF::PassRefPtr<WebCore::GeolocationError>() const
 47{
 48 return WebCore::GeolocationError::create(static_cast<WebCore::GeolocationError::ErrorCode>(m_code), m_message);
 49}
 50
 51void WebGeolocationError::copyFrom(const WebCore::GeolocationError* error)
 52{
 53 ASSERT(error);
 54 m_code = static_cast<ErrorCode>(error->code());
 55 m_message = error->message();
 56}
 57
 58}

WebKit/chromium/src/WebGeolocationPosition.cpp

 1/*
 2 * Copyright (C) 2010 Google Inc. All rights reserved.
 3 *
 4 * Redistribution and use in source and binary forms, with or without
 5 * modification, are permitted provided that the following conditions
 6 * are met:
 7 *
 8 * 1. Redistributions of source code must retain the above copyright
 9 * notice, this list of conditions and the following disclaimer.
 10 * 2. Redistributions in binary form must reproduce the above copyright
 11 * notice, this list of conditions and the following disclaimer in the
 12 * documentation and/or other materials provided with the distribution.
 13 *
 14 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
 15 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 16 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 17 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
 18 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 19 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 20 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 21 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 24 */
 25
 26#include "config.h"
 27#include "WebGeolocationPosition.h"
 28
 29#include "GeolocationPosition.h"
 30
 31namespace WebKit {
 32
 33WebGeolocationPosition& WebGeolocationPosition::operator=(const WebCore::GeolocationPosition& position)
 34{
 35 copyFrom(position);
 36 return *this;
 37}
 38
 39void WebGeolocationPosition::copyFrom(const WebCore::GeolocationPosition& position)
 40{
 41 m_timestamp = position.timestamp();
 42 m_latitude = position.latitude();
 43 m_longitude = position.longitude();
 44 m_accuracy = position.accuracy();
 45 m_altitude = position.altitude();
 46 m_altitudeAccuracy = position.altitudeAccuracy();
 47 m_heading = position.heading();
 48 m_speed = position.speed();
 49 m_canProvideAltitude = position.canProvideAltitude();
 50 m_canProvideAltitudeAccuracy = position.canProvideAltitudeAccuracy();
 51 m_canProvideHeading = position.canProvideHeading();
 52 m_canProvideSpeed = position.canProvideSpeed();
 53}
 54
 55
 56WebGeolocationPosition::operator PassRefPtr<WebCore::GeolocationPosition>() const
 57{
 58 return WebCore::GeolocationPosition::create(m_timestamp, m_latitude, m_longitude, m_accuracy,
 59 m_canProvideAltitude, m_altitude,
 60 m_canProvideAltitudeAccuracy, m_altitudeAccuracy,
 61 m_canProvideHeading, m_heading,
 62 m_canProvideSpeed, m_speed);
 63}
 64
 65} // namespace WebKit