-
eric@webkit.org authored
Reviewed by David Kilzer. Guard Geolocation files with ENABLE_GEOLOCATION https://bugs.webkit.org/show_bug.cgi?id=25756 The intent is to guard the Geolocation implementation files and minimize the impact on on clients/call sites. * DerivedSources.make: * WebCore.Geolocation.exp: Added. Exported interfaces if GEOLOCATION is enabled. * WebCore.base.exp: * bindings/js/JSCustomPositionCallback.cpp: * bindings/js/JSCustomPositionErrorCallback.cpp: * bindings/js/JSGeolocationCustom.cpp: * page/Geolocation.cpp: (WebCore::Geolocation::disconnectFrame): Stub implementation if GEOLOCATION is turned off. (WebCore::Geolocation::Geolocation): Ditto. (WebCore::Geolocation::~Geolocation): Ditto. (WebCore::Geolocation::setIsAllowed): Ditto. * page/Geolocation.h: * page/Geolocation.idl: * page/GeolocationPositionCache.cpp: * page/Geoposition.idl: * page/PositionError.idl: * platform/GeolocationService.cpp: * platform/mock/GeolocationServiceMock.cpp: 2010-03-30 Laszlo Gombos <laszlo.1.gombos@nokia.com> Reviewed by David Kilzer. Explicit guards for ENABLE_GEOLOCATION https://bugs.webkit.org/show_bug.cgi?id=25756 * WebCoreSupport/WebGeolocationMock.mm: (-[WebGeolocationMock setError:code:]): Make the body conditional on ENABLE(GEOLOCATION) (-[WebGeolocationMock setPosition:]): Ditto. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@56781 268f45cc-cd09-0410-ab3c-d52691b4dbfc
6dbc5923