Changeset 44093 in webkit
- Timestamp:
- May 23, 2009 8:28:14 AM (15 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r44091 r44093 1 2009-05-23 Laszlo Gombos <laszlo.1.gombos@nokia.com> 2 3 Reviewed by Eric Seidel. 4 5 Add GEOLOCATION guards around Geolocation API code 6 https://bugs.webkit.org/show_bug.cgi?id=25756 7 8 * bindings/js/JSCustomPositionCallback.cpp: 9 * bindings/js/JSCustomPositionCallback.h: 10 * bindings/js/JSCustomPositionErrorCallback.cpp: 11 * bindings/js/JSCustomPositionErrorCallback.h: 12 * bindings/js/JSGeolocationCustom.cpp: 13 * page/Geolocation.cpp: 14 * page/Geolocation.idl: 15 * page/Geoposition.cpp: 16 * page/Geoposition.h: 17 * page/Geoposition.idl: 18 * page/Navigator.cpp: 19 (WebCore::Navigator::disconnectFrame): 20 (WebCore::Navigator::geolocation): 21 * page/PositionError.idl: 22 * platform/GeolocationService.cpp: 23 1 24 2009-05-23 David Kilzer <ddkilzer@apple.com> 2 25 -
trunk/WebCore/bindings/js/JSCustomPositionCallback.cpp
r43122 r44093 26 26 #include "config.h" 27 27 #include "JSCustomPositionCallback.h" 28 29 #if ENABLE(GEOLOCATION) 28 30 29 31 #include "Frame.h" … … 85 87 86 88 } // namespace WebCore 89 90 #endif // ENABLE(GEOLOCATION) -
trunk/WebCore/bindings/js/JSCustomPositionCallback.h
r38137 r44093 26 26 #ifndef JSCustomPositionCallback_h 27 27 #define JSCustomPositionCallback_h 28 29 #if ENABLE(GEOLOCATION) 28 30 29 31 #include "PositionCallback.h" … … 56 58 } // namespace WebCore 57 59 60 #endif // ENABLE(GEOLOCATION) 61 58 62 #endif // JSCustomPositionCallback_h -
trunk/WebCore/bindings/js/JSCustomPositionErrorCallback.cpp
r43122 r44093 26 26 #include "config.h" 27 27 #include "JSCustomPositionErrorCallback.h" 28 29 #if ENABLE(GEOLOCATION) 28 30 29 31 #include "Frame.h" … … 83 85 84 86 } // namespace WebCore 87 88 #endif // ENABLE(GEOLOCATION) -
trunk/WebCore/bindings/js/JSCustomPositionErrorCallback.h
r38137 r44093 26 26 #ifndef JSCustomPositionErrorCallback_h 27 27 #define JSCustomPositionErrorCallback_h 28 29 #if ENABLE(GEOLOCATION) 28 30 29 31 #include "PositionErrorCallback.h" … … 56 58 } // namespace WebCore 57 59 60 #endif // ENABLE(GEOLOCATION) 61 58 62 #endif // JSCustomPositionErrorCallback_h -
trunk/WebCore/bindings/js/JSGeolocationCustom.cpp
r43122 r44093 26 26 #include "config.h" 27 27 #include "JSGeolocation.h" 28 29 #if ENABLE(GEOLOCATION) 28 30 29 31 #include "DOMWindow.h" … … 149 151 150 152 } // namespace WebCore 153 154 #endif // ENABLE(GEOLOCATION) -
trunk/WebCore/page/Geolocation.cpp
r42445 r44093 27 27 #include "Geolocation.h" 28 28 29 #if ENABLE(GEOLOCATION) 30 29 31 #include "Chrome.h" 30 32 #include "Document.h" … … 296 298 297 299 } // namespace WebCore 300 301 #endif // ENABLE(GEOLOCATION) -
trunk/WebCore/page/Geolocation.idl
r37854 r44093 26 26 module core { 27 27 28 interface Geolocation {28 interface [Conditional=GEOLOCATION] Geolocation { 29 29 readonly attribute Geoposition lastPosition; 30 30 -
trunk/WebCore/page/Geoposition.cpp
r41729 r44093 27 27 #include "Geoposition.h" 28 28 29 #if ENABLE(GEOLOCATION) 30 29 31 namespace WebCore { 30 32 … … 35 37 36 38 } // namespace WebCore 39 40 #endif // ENABLE(GEOLOCATION) -
trunk/WebCore/page/Geoposition.h
r41650 r44093 26 26 #ifndef Geoposition_h 27 27 #define Geoposition_h 28 29 #if ENABLE(GEOLOCATION) 28 30 29 31 #include "Coordinates.h" … … 58 60 } // namespace WebCore 59 61 62 #endif // ENABLE(GEOLOCATION) 63 60 64 #endif // Geoposition_h -
trunk/WebCore/page/Geoposition.idl
r43528 r44093 26 26 module core { 27 27 28 interface Geoposition {28 interface [Conditional=GEOLOCATION] Geoposition { 29 29 readonly attribute Coordinates coords; 30 30 readonly attribute DOMTimeStamp timestamp; -
trunk/WebCore/page/Navigator.cpp
r42449 r44093 60 60 m_mimeTypes = 0; 61 61 } 62 #if ENABLE(GEOLOCATION) 62 63 if (m_geolocation) { 63 64 m_geolocation->disconnectFrame(); 64 65 m_geolocation = 0; 65 66 } 67 #endif 66 68 m_frame = 0; 67 69 } … … 147 149 Geolocation* Navigator::geolocation() const 148 150 { 151 #if ENABLE(GEOLOCATION) 149 152 if (!m_geolocation) 150 153 m_geolocation = Geolocation::create(m_frame); 154 #endif 151 155 return m_geolocation.get(); 152 156 } -
trunk/WebCore/page/PositionError.idl
r38409 r44093 27 27 28 28 interface [ 29 GenerateConstructor 29 GenerateConstructor, 30 Conditional=GEOLOCATION 30 31 ] PositionError { 31 32 readonly attribute unsigned short code; -
trunk/WebCore/platform/GeolocationService.cpp
r41375 r44093 27 27 #include "GeolocationService.h" 28 28 29 #if ENABLE(GEOLOCATION) 30 29 31 #include <wtf/Assertions.h> 30 32 31 33 namespace WebCore { 32 33 #if !ENABLE(GEOLOCATION)34 GeolocationService* GeolocationService::create(GeolocationServiceClient*)35 {36 return 0;37 }38 #endif39 34 40 35 GeolocationService::GeolocationService(GeolocationServiceClient* client) … … 55 50 56 51 } // namespace WebCore 52 53 #endif // ENABLE(GEOLOCATION)
Note: See TracChangeset
for help on using the changeset viewer.