Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: public/web/WebGeolocationPosition.h

Issue 319863003: Enable Oilpan for modules/geolocation by default. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 11 matching lines...) Expand all
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 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. 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #ifndef WebGeolocationPosition_h 26 #ifndef WebGeolocationPosition_h
27 #define WebGeolocationPosition_h 27 #define WebGeolocationPosition_h
28 28
29 #include "../platform/WebCommon.h" 29 #include "../platform/WebCommon.h"
30 #include "../platform/WebPrivatePtr.h" 30 #include "../platform/WebPrivatePtr.h"
31 31
32 #if BLINK_IMPLEMENTATION
33 #include "wtf/PassRefPtr.h"
34 #endif
35
36 namespace WebCore { class GeolocationPosition; } 32 namespace WebCore { class GeolocationPosition; }
37 33
38 namespace blink { 34 namespace blink {
39 35
40 class WebGeolocationPosition { 36 class WebGeolocationPosition {
41 public: 37 public:
42 WebGeolocationPosition() {} 38 WebGeolocationPosition() {}
43 WebGeolocationPosition(double timestamp, double latitude, double longitude, double accuracy, bool providesAltitude, double altitude, bool providesAltitudeAc curacy, double altitudeAccuracy, bool providesHeading, double heading, bool prov idesSpeed, double speed) 39 WebGeolocationPosition(double timestamp, double latitude, double longitude, double accuracy, bool providesAltitude, double altitude, bool providesAltitudeAc curacy, double altitudeAccuracy, bool providesHeading, double heading, bool prov idesSpeed, double speed)
44 { 40 {
45 assign(timestamp, latitude, longitude, accuracy, providesAltitude, altit ude, providesAltitudeAccuracy, altitudeAccuracy, providesHeading, heading, provi desSpeed, speed); 41 assign(timestamp, latitude, longitude, accuracy, providesAltitude, altit ude, providesAltitudeAccuracy, altitudeAccuracy, providesHeading, heading, provi desSpeed, speed);
46 } 42 }
47 WebGeolocationPosition(const WebGeolocationPosition& other) { assign(other); } 43 WebGeolocationPosition(const WebGeolocationPosition& other) { assign(other); }
48 ~WebGeolocationPosition() { reset(); } 44 ~WebGeolocationPosition() { reset(); }
49 45
50 BLINK_EXPORT void assign(double timestamp, double latitude, double longitude , double accuracy, bool providesAltitude, double altitude, bool providesAltitude Accuracy, double altitudeAccuracy, bool providesHeading, double heading, bool pr ovidesSpeed, double speed); 46 BLINK_EXPORT void assign(double timestamp, double latitude, double longitude , double accuracy, bool providesAltitude, double altitude, bool providesAltitude Accuracy, double altitudeAccuracy, bool providesHeading, double heading, bool pr ovidesSpeed, double speed);
51 BLINK_EXPORT void assign(const WebGeolocationPosition&); 47 BLINK_EXPORT void assign(const WebGeolocationPosition&);
52 BLINK_EXPORT void reset(); 48 BLINK_EXPORT void reset();
53 49
54 #if BLINK_IMPLEMENTATION 50 #if BLINK_IMPLEMENTATION
55 WebGeolocationPosition(PassRefPtrWillBeRawPtr<WebCore::GeolocationPosition>) ; 51 WebGeolocationPosition(WebCore::GeolocationPosition*);
56 WebGeolocationPosition& operator=(PassRefPtrWillBeRawPtr<WebCore::Geolocatio nPosition>); 52 WebGeolocationPosition& operator=(WebCore::GeolocationPosition*);
57 operator PassRefPtrWillBeRawPtr<WebCore::GeolocationPosition>() const; 53 operator WebCore::GeolocationPosition*() const;
58 #endif 54 #endif
59 55
60 private: 56 private:
61 WebPrivatePtr<WebCore::GeolocationPosition> m_private; 57 WebPrivatePtr<WebCore::GeolocationPosition> m_private;
62 }; 58 };
63 59
64 } // namespace blink 60 } // namespace blink
65 61
66 #endif // WebGeolocationPosition_h 62 #endif // WebGeolocationPosition_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698