Changeset 48144 in webkit
- Timestamp:
- Sep 7, 2009 11:13:55 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 6 added
- 30 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r48143 r48144 1 2009-09-07 Steve Block <steveblock@google.com> 2 3 Reviewed by Adam Barth. 4 5 Adds a mock Geolocation service. This will be used to provide predictable behavior of the 6 Geolocation API for use in LayoutTests. Later changes will integrate the the mock 7 Geolocation service with DumpRenderTree. 8 https://bugs.webkit.org/show_bug.cgi?id=28264 9 10 * fast/dom/Geolocation/resources/error.js: Added. Tests that the error callback is called when the service reports an error. 11 * fast/dom/Geolocation/error-expected.txt: Added. Expected result for above test. 12 * fast/dom/Geolocation/error.html: Added. Wrapper for above test. 13 1 14 2009-09-07 Jeremy Orlow <jorlow@chromium.org> 2 15 -
trunk/LayoutTests/platform/gtk/Skipped
r48141 r48144 1570 1570 fast/dom/cssTarget-crash.html 1571 1571 fast/dom/frame-loading-via-document-write.html 1572 fast/dom/Geolocation/error.html 1572 1573 fast/dom/getBoundingClientRect.html 1573 1574 fast/dom/null-document-location-put-crash.html -
trunk/WebCore/ChangeLog
r48142 r48144 1 2009-09-07 Steve Block <steveblock@google.com> 2 3 Reviewed by Adam Barth. 4 5 Adds a mock Geolocation service. This will be used to provide predictable behavior of the 6 Geolocation API for use in LayoutTests. Later changes will integrate the the mock 7 Geolocation service with DumpRenderTree. 8 https://bugs.webkit.org/show_bug.cgi?id=28264 9 10 The mock Geolocation service returns a fixed position or error. This position or error can be 11 set through static methods on the GeolocationService class. The position or error is shared 12 between all instances of the mock Geolocation service. 13 14 Implementation details. 15 The GeolocationService object maintains a pointer to a factory function which it uses to create 16 Geolocation service instances. Each platform implementing Geolocation sets this pointer 17 to the factory function for their platform's implementation. When the mock Geolocation service 18 is activated, the factory function pointer is reset to the factory function for the mock service. 19 20 Test: fast/dom/Geolocation/error.html 21 22 * WebCore.base.exp: Modified. Exports GeolocationServiceMock methods. 23 * GNUMakefile.am: Modified. Added GeolocationServiceMock files. 24 * WebCore.gypi: Modified. Added GeolocationServiceMock files. 25 * WebCore.pro: Modified. Added GeolocationServiceMock files. 26 * WebCore.vcproj/WebCore.vcproj: Modified. Added GeolocationServiceMock files. 27 * WebCore.vcproj/WebCoreCommon.vsprops: Modified. Added mock directory to includes. 28 * WebCore.xcodeproj/project.pbxproj: Modified. Added GeolocationServiceMock files and exports some headers. 29 * WebCoreSources.bkl: Modified. Added GeolocationServiceMock files. 30 * page/ChromeClient.h: Modified. Fixed comment. 31 * page/Geolocation.cpp: Modified. 32 (WebCore::Geolocation::setIsAllowed): Modified. Fixed error string. 33 * platform/GeolocationService.cpp: Modified. 34 (WebCore::createGeolocationServiceNull): Added. Returns null in place of a Geolocation service. Used to avoid link errors on platforms where Geolocation is not implemented. 35 (WebCore::GeolocationService::create): Added. Uses the factory function pointer to create a Geolocation service implementation. 36 (WebCore::GeolocationService::useMock): Added. Configures the GeolocationServie to use the mock implementation. 37 * platform/GeolocationService.h: Modified. 38 * platform/mock: Added. 39 * platform/mock/GeolocationServiceMock.cpp: Added. 40 (WebCore::GeolocationServiceMock::create): Added. Creates a GeolocationServiceMock object. 41 (WebCore::GeolocationServiceMock::GeolocationServiceMock): Added. Constructor. 42 (WebCore::GeolocationServiceMock::~GeolocationServiceMock): Added. Destructor. 43 (WebCore::GeolocationServiceMock::setPosition): Added. Sets the position that will be returned by the object. 44 (WebCore::GeolocationServiceMock::setError): Added. Sets the error that will be returned by the object. 45 (WebCore::GeolocationServiceMock::startUpdating): Added. GeolocationService implementation. Starts the service. 46 (WebCore::GeolocationServiceMock::stopUpdating): Added. GeolocationService implementation. Stops the service. 47 (WebCore::GeolocationServiceMock::timerFired): Added. Used to provide an asynchronous callback when the service is started. 48 (WebCore::GeolocationServiceMock::makeGeolocationCallbackFromAllInstances): Added. Used to call back when the position or error is updated. 49 (WebCore::GeolocationServiceMock::makeGeolocationCallback): Added. Used to call back when the service starts. 50 (WebCore::GeolocationServiceMock::initStatics): Added. Initializes statics members with constructors. 51 (WebCore::GeolocationServiceMock::cleanUpStatics): Added. Cleans up static members with constructors. 52 * platform/mock/GeolocationServiceMock.h: Added. 53 (WebCore::GeolocationServiceMock::lastPosition): Added. Returns the fixed position. 54 (WebCore::GeolocationServiceMock::lastError): Added. Returns the fixed error. 55 * platform/gtk/GeolocationServiceGtk.cpp: Modified. 56 (WebCore::GeolocationServiceGtk::create): Added. Creates an instance of GeolocationServiceGtk. 57 * platform/gtk/GeolocationServiceGtk.h: Modified. 58 * platform/mac/GeolocationServiceMac.h: Modified. 59 * platform/mac/GeolocationServiceMac.mm: Modified. 60 (WebCore::GeolocationServiceMac::create): Added. Creates an instance of GeolocationServiceMac. 61 1 62 2009-09-07 Adam Barth <abarth@webkit.org> 2 63 -
trunk/WebCore/GNUmakefile.am
r48137 r48144 42 42 -I$(srcdir)/WebCore/platform/image-decoders/png \ 43 43 -I$(srcdir)/WebCore/platform/image-decoders/xbm \ 44 -I$(srcdir)/WebCore/platform/mock \ 44 45 -I$(srcdir)/WebCore/platform/network \ 45 46 -I$(srcdir)/WebCore/platform/text \ … … 1396 1397 WebCore/platform/MIMETypeRegistry.cpp \ 1397 1398 WebCore/platform/MIMETypeRegistry.h \ 1399 WebCore/platform/mock/GeolocationServiceMock.cpp \ 1400 WebCore/platform/mock/GeolocationServiceMock.h \ 1398 1401 WebCore/platform/NotImplemented.h \ 1399 1402 WebCore/platform/Pasteboard.h \ -
trunk/WebCore/WebCore.base.exp
r48064 r48144 443 443 __ZN7WebCore21isBackForwardLoadTypeENS_13FrameLoadTypeE 444 444 __ZN7WebCore21reportThreadViolationEPKcNS_20ThreadViolationRoundE 445 __ZN7WebCore22GeolocationServiceMock11setPositionEN3WTF10PassRefPtrINS_11GeopositionEEE 446 __ZN7WebCore22GeolocationServiceMock8setErrorEN3WTF10PassRefPtrINS_13PositionErrorEEE 445 447 __ZN7WebCore22ScriptExecutionContext26canSuspendActiveDOMObjectsEv 446 448 __ZN7WebCore22applicationIsAppleMailEv -
trunk/WebCore/WebCore.gypi
r48099 r48144 2608 2608 'platform/MIMETypeRegistry.cpp', 2609 2609 'platform/MIMETypeRegistry.h', 2610 'platform/mock/GeolocationServiceMock.cpp', 2611 'platform/mock/GeolocationServiceMock.h', 2610 2612 'platform/NotImplemented.h', 2611 2613 'platform/Pasteboard.h', -
trunk/WebCore/WebCore.pro
r48135 r48144 213 213 $$PWD/platform/graphics/transforms \ 214 214 $$PWD/platform/image-decoders \ 215 $$PWD/platform/mock \ 215 216 $$PWD/platform/network \ 216 217 $$PWD/platform/sql \ … … 1189 1190 platform/Logging.cpp \ 1190 1191 platform/MIMETypeRegistry.cpp \ 1192 platform/mock/GeolocationServiceMock.cpp \ 1191 1193 platform/network/AuthenticationChallengeBase.cpp \ 1192 1194 platform/network/Credential.cpp \ … … 1820 1822 platform/FileChooser.h \ 1821 1823 platform/GeolocationService.h \ 1824 platform/mock/GeolocationServiceMock.h \ 1822 1825 platform/graphics/BitmapImage.h \ 1823 1826 platform/graphics/Color.h \ -
trunk/WebCore/WebCore.vcproj/WebCore.vcproj
r48104 r48144 17069 17069 > 17070 17070 </File> 17071 17071 <File 17072 17072 RelativePath="..\page\UserScript.h" 17073 17073 > 17074 17074 </File> 17075 17075 <File 17076 17076 RelativePath="..\page\UserScriptTypes.h" 17077 17077 > … … 21760 21760 </File> 21761 21761 </Filter> 21762 <Filter 21763 Name="mock" 21764 > 21765 <File 21766 RelativePath="..\platform\mock\GeolocationServiceMock.cpp" 21767 > 21768 </File> 21769 <File 21770 RelativePath="..\platform\mock\GeolocationServiceMock.h" 21771 > 21772 </File> 21773 </Filter> 21762 21774 </Filter> 21763 21775 <Filter -
trunk/WebCore/WebCore.vcproj/WebCoreCommon.vsprops
r48131 r48144 8 8 <Tool 9 9 Name="VCCLCompilerTool" 10 AdditionalIncludeDirectories=""$(ProjectDir)..\";"$(ProjectDir)..";"$(ProjectDir)..\accessibility";"$(ProjectDir)..\accessibility\win";"$(ProjectDir)..\bridge";"$(ProjectDir)..\bridge\c";"$(ProjectDir)..\css";"$(ProjectDir)..\editing";"$(ProjectDir)..\rendering";"$(ProjectDir)..\rendering\style";"$(ProjectDir)..\bindings\js";"$(ProjectDir)..\dom";"$(ProjectDir)..\dom\default";"$(ProjectDir)..\history";"$(ProjectDir)..\html";"$(ProjectDir)..\html\canvas";"$(ProjectDir)..\inspector";"$(ProjectDir)..\loader";"$(ProjectDir)..\loader\appcache";"$(ProjectDir)..\loader\archive";"$(ProjectDir)..\loader\archive\cf";"$(ProjectDir)..\loader\icon";"$(ProjectDir)..\notifications";"$(ProjectDir)..\page";"$(ProjectDir)..\page\animation";"$(ProjectDir)..\page\win";"$(ProjectDir)..\platform";"$(ProjectDir)..\platform\animation";"$(ProjectDir)..\platform\ sql";"$(ProjectDir)..\platform\win";"$(ProjectDir)..\platform\network";"$(ProjectDir)..\platform\network\win";"$(ProjectDir)..\platform\cf";"$(ProjectDir)..\platform\graphics";"$(ProjectDir)..\platform\graphics\opentype";"$(ProjectDir)..\platform\graphics\transforms";"$(ProjectDir)..\platform\text";"$(ProjectDir)..\platform\graphics\win";"$(ProjectDir)..\xml";"$(WebKitOutputDir)\obj\WebCore\DerivedSources";"$(ProjectDir)..\plugins";"$(ProjectDir)..\plugins\win";"$(ProjectDir)..\svg\graphics";"$(ProjectDir)..\svg\graphics\filters";"$(ProjectDir)..\svg";"$(ProjectDir)..\wml";"$(ProjectDir)..\storage";"$(ProjectDir)..\workers";"$(WebKitOutputDir)\include";"$(WebKitOutputDir)\include\private";"$(WebKitOutputDir)\include\JavaScriptCore";"$(WebKitOutputDir)\include\private\JavaScriptCore";"$(ProjectDir)..\ForwardingHeaders";"$(WebKitLibrariesDir)\include";"$(WebKitLibrariesDir)\include\private";"$(WebKitLibrariesDir)\include\private\JavaScriptCore";"$(WebKitLibrariesDir)\include\icu";"$(WebKitLibrariesDir)\include\iconv";"$(WebKitLibrariesDir)\include\pthreads";"$(WebKitLibrariesDir)\include\sqlite";"$(WebKitLibrariesDir)\include\JavaScriptCore";"$(WebKitLibrariesDir)\Include\CoreFoundation\OSXCompatibilityHeaders";"$(WebKitLibrariesDir)\Include\CoreFoundation\OSXCompatibilityHeaders\GNUCompatibility";"$(ProjectDir)..\svg\animation""10 AdditionalIncludeDirectories=""$(ProjectDir)..\";"$(ProjectDir)..";"$(ProjectDir)..\accessibility";"$(ProjectDir)..\accessibility\win";"$(ProjectDir)..\bridge";"$(ProjectDir)..\bridge\c";"$(ProjectDir)..\css";"$(ProjectDir)..\editing";"$(ProjectDir)..\rendering";"$(ProjectDir)..\rendering\style";"$(ProjectDir)..\bindings\js";"$(ProjectDir)..\dom";"$(ProjectDir)..\dom\default";"$(ProjectDir)..\history";"$(ProjectDir)..\html";"$(ProjectDir)..\html\canvas";"$(ProjectDir)..\inspector";"$(ProjectDir)..\loader";"$(ProjectDir)..\loader\appcache";"$(ProjectDir)..\loader\archive";"$(ProjectDir)..\loader\archive\cf";"$(ProjectDir)..\loader\icon";"$(ProjectDir)..\notifications";"$(ProjectDir)..\page";"$(ProjectDir)..\page\animation";"$(ProjectDir)..\page\win";"$(ProjectDir)..\platform";"$(ProjectDir)..\platform\animation";"$(ProjectDir)..\platform\mock";"$(ProjectDir)..\platform\sql";"$(ProjectDir)..\platform\win";"$(ProjectDir)..\platform\network";"$(ProjectDir)..\platform\network\win";"$(ProjectDir)..\platform\cf";"$(ProjectDir)..\platform\graphics";"$(ProjectDir)..\platform\graphics\opentype";"$(ProjectDir)..\platform\graphics\transforms";"$(ProjectDir)..\platform\text";"$(ProjectDir)..\platform\graphics\win";"$(ProjectDir)..\xml";"$(WebKitOutputDir)\obj\WebCore\DerivedSources";"$(ProjectDir)..\plugins";"$(ProjectDir)..\plugins\win";"$(ProjectDir)..\svg\graphics";"$(ProjectDir)..\svg\graphics\filters";"$(ProjectDir)..\svg";"$(ProjectDir)..\wml";"$(ProjectDir)..\storage";"$(ProjectDir)..\workers";"$(WebKitOutputDir)\include";"$(WebKitOutputDir)\include\private";"$(WebKitOutputDir)\include\JavaScriptCore";"$(WebKitOutputDir)\include\private\JavaScriptCore";"$(ProjectDir)..\ForwardingHeaders";"$(WebKitLibrariesDir)\include";"$(WebKitLibrariesDir)\include\private";"$(WebKitLibrariesDir)\include\private\JavaScriptCore";"$(WebKitLibrariesDir)\include\icu";"$(WebKitLibrariesDir)\include\iconv";"$(WebKitLibrariesDir)\include\pthreads";"$(WebKitLibrariesDir)\include\sqlite";"$(WebKitLibrariesDir)\include\JavaScriptCore";"$(WebKitLibrariesDir)\Include\CoreFoundation\OSXCompatibilityHeaders";"$(WebKitLibrariesDir)\Include\CoreFoundation\OSXCompatibilityHeaders\GNUCompatibility";"$(ProjectDir)..\svg\animation"" 11 11 PreprocessorDefinitions="__WIN32__;WEBCORE_CONTEXT_MENUS;ENABLE_CHANNEL_MESSAGING;ENABLE_DATABASE;ENABLE_DATAGRID;ENABLE_DATALIST;ENABLE_DOM_STORAGE;ENABLE_EVENTSOURCE;ENABLE_ICONDATABASE;ENABLE_OFFLINE_WEB_APPLICATIONS;ENABLE_RUBY;ENABLE_SHARED_WORKERS;ENABLE_SVG;ENABLE_SVG_ANIMATION;ENABLE_SVG_AS_IMAGE;ENABLE_SVG_FONTS;ENABLE_SVG_FOREIGN_OBJECT;ENABLE_SVG_USE;ENABLE_WEB_SOCKETS;ENABLE_WORKERS;ENABLE_XPATH;ENABLE_XSLT" 12 12 UsePrecompiledHeader="2" -
trunk/WebCore/WebCore.xcodeproj/project.pbxproj
r48137 r48144 1016 1016 550A0BC9085F6039007353D6 /* QualifiedName.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 550A0BC7085F6039007353D6 /* QualifiedName.cpp */; }; 1017 1017 550A0BCA085F6039007353D6 /* QualifiedName.h in Headers */ = {isa = PBXBuildFile; fileRef = 550A0BC8085F6039007353D6 /* QualifiedName.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1018 59C77F2A10545B3B00506104 /* GeolocationServiceMock.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 59C77F2810545B3B00506104 /* GeolocationServiceMock.cpp */; }; 1019 59C77F2B10545B3B00506104 /* GeolocationServiceMock.h in Headers */ = {isa = PBXBuildFile; fileRef = 59C77F2910545B3B00506104 /* GeolocationServiceMock.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1018 1020 5D15E3AB0F9E6AC1009E0E3F /* XMLTokenizerScope.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5D15E3A90F9E6AC1009E0E3F /* XMLTokenizerScope.cpp */; }; 1019 1021 5D15E3AC0F9E6AC1009E0E3F /* XMLTokenizerScope.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D15E3AA0F9E6AC1009E0E3F /* XMLTokenizerScope.h */; }; … … 4615 4617 F9F0ED7A0DB50CA200D16DB9 /* XMLHttpRequestProgressEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = F9F0ED770DB50CA200D16DB9 /* XMLHttpRequestProgressEvent.h */; }; 4616 4618 FE6FD4870F676E5700092873 /* Coordinates.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FE6FD4840F676E5700092873 /* Coordinates.cpp */; }; 4617 FE6FD4880F676E5700092873 /* Coordinates.h in Headers */ = {isa = PBXBuildFile; fileRef = FE6FD4850F676E5700092873 /* Coordinates.h */; };4619 FE6FD4880F676E5700092873 /* Coordinates.h in Headers */ = {isa = PBXBuildFile; fileRef = FE6FD4850F676E5700092873 /* Coordinates.h */; settings = {ATTRIBUTES = (Private, ); }; }; 4618 4620 FE6FD48D0F676E9300092873 /* JSCoordinates.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FE6FD48B0F676E9300092873 /* JSCoordinates.cpp */; }; 4619 4621 FE6FD48E0F676E9300092873 /* JSCoordinates.h in Headers */ = {isa = PBXBuildFile; fileRef = FE6FD48C0F676E9300092873 /* JSCoordinates.h */; }; … … 4627 4629 FE80D7C60E9C1F25000D6F75 /* Geolocation.h in Headers */ = {isa = PBXBuildFile; fileRef = FE80D7B80E9C1F25000D6F75 /* Geolocation.h */; settings = {ATTRIBUTES = (Private, ); }; }; 4628 4630 FE80D7C80E9C1F25000D6F75 /* Geoposition.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FE80D7BA0E9C1F25000D6F75 /* Geoposition.cpp */; }; 4629 FE80D7C90E9C1F25000D6F75 /* Geoposition.h in Headers */ = {isa = PBXBuildFile; fileRef = FE80D7BB0E9C1F25000D6F75 /* Geoposition.h */; };4631 FE80D7C90E9C1F25000D6F75 /* Geoposition.h in Headers */ = {isa = PBXBuildFile; fileRef = FE80D7BB0E9C1F25000D6F75 /* Geoposition.h */; settings = {ATTRIBUTES = (Private, ); }; }; 4630 4632 FE80D7CB0E9C1F25000D6F75 /* PositionCallback.h in Headers */ = {isa = PBXBuildFile; fileRef = FE80D7BD0E9C1F25000D6F75 /* PositionCallback.h */; settings = {ATTRIBUTES = (Private, ); }; }; 4631 FE80D7CD0E9C1F25000D6F75 /* PositionError.h in Headers */ = {isa = PBXBuildFile; fileRef = FE80D7BF0E9C1F25000D6F75 /* PositionError.h */; };4633 FE80D7CD0E9C1F25000D6F75 /* PositionError.h in Headers */ = {isa = PBXBuildFile; fileRef = FE80D7BF0E9C1F25000D6F75 /* PositionError.h */; settings = {ATTRIBUTES = (Private, ); }; }; 4632 4634 FE80D7CF0E9C1F25000D6F75 /* PositionErrorCallback.h in Headers */ = {isa = PBXBuildFile; fileRef = FE80D7C10E9C1F25000D6F75 /* PositionErrorCallback.h */; settings = {ATTRIBUTES = (Private, ); }; }; 4633 4635 FE80D7D10E9C1F25000D6F75 /* PositionOptions.h in Headers */ = {isa = PBXBuildFile; fileRef = FE80D7C30E9C1F25000D6F75 /* PositionOptions.h */; settings = {ATTRIBUTES = (Private, ); }; }; … … 6167 6169 550A0BC7085F6039007353D6 /* QualifiedName.cpp */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = QualifiedName.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 6168 6170 550A0BC8085F6039007353D6 /* QualifiedName.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = QualifiedName.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 6171 59C77F2810545B3B00506104 /* GeolocationServiceMock.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = GeolocationServiceMock.cpp; path = mock/GeolocationServiceMock.cpp; sourceTree = "<group>"; }; 6172 59C77F2910545B3B00506104 /* GeolocationServiceMock.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = GeolocationServiceMock.h; path = mock/GeolocationServiceMock.h; sourceTree = "<group>"; }; 6169 6173 5D15E3A90F9E6AC1009E0E3F /* XMLTokenizerScope.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = XMLTokenizerScope.cpp; sourceTree = "<group>"; }; 6170 6174 5D15E3AA0F9E6AC1009E0E3F /* XMLTokenizerScope.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XMLTokenizerScope.h; sourceTree = "<group>"; }; … … 10577 10581 sourceTree = "<group>"; 10578 10582 }; 10583 59C77F101054591C00506104 /* mock */ = { 10584 isa = PBXGroup; 10585 children = ( 10586 59C77F2810545B3B00506104 /* GeolocationServiceMock.cpp */, 10587 59C77F2910545B3B00506104 /* GeolocationServiceMock.h */, 10588 ); 10589 name = mock; 10590 sourceTree = "<group>"; 10591 }; 10579 10592 5DA5E0F9102B950400088CF9 /* WebSockets */ = { 10580 10593 isa = PBXGroup; … … 14371 14384 isa = PBXGroup; 14372 14385 children = ( 14386 59C77F101054591C00506104 /* mock */, 14373 14387 49E912A40EFAC8E6009D0CAF /* animation */, 14374 14388 1AE42F670AA4B8CB00C8612D /* cf */, … … 17559 17573 51ABAE1B103C18FF008C5260 /* SocketStreamError.h in Headers */, 17560 17574 51ABAE1E103C1913008C5260 /* SocketStreamHandle.h in Headers */, 17575 59C77F2B10545B3B00506104 /* GeolocationServiceMock.h in Headers */, 17561 17576 ); 17562 17577 runOnlyForDeploymentPostprocessing = 0; … … 19654 19669 510D4A36103165EE0049EA54 /* SocketStreamHandleBase.cpp in Sources */, 19655 19670 51ABAE1F103C1913008C5260 /* SocketStreamHandleCFNet.cpp in Sources */, 19671 59C77F2A10545B3B00506104 /* GeolocationServiceMock.cpp in Sources */, 19656 19672 ); 19657 19673 runOnlyForDeploymentPostprocessing = 0; -
trunk/WebCore/WebCoreSources.bkl
r48025 r48144 818 818 platform/Logging.cpp 819 819 platform/MIMETypeRegistry.cpp 820 platform/mock/GeolocationServiceMock.cpp 820 821 platform/text/RegularExpression.cpp 821 822 platform/Scrollbar.cpp -
trunk/WebCore/page/ChromeClient.h
r47866 r48144 176 176 virtual bool paintCustomScrollCorner(GraphicsContext*, const FloatRect&); 177 177 178 // This is anasynchronous call. The ChromeClient can display UI asking the user for permission178 // This can be either a synchronous or asynchronous call. The ChromeClient can display UI asking the user for permission 179 179 // to use Geolococation. The ChromeClient must call Geolocation::setShouldClearCache() appropriately. 180 180 virtual void requestGeolocationPermissionForFrame(Frame*, Geolocation*) = 0; -
trunk/WebCore/page/Geolocation.cpp
r47252 r48144 146 146 makeSuccessCallbacks(); 147 147 } else { 148 WTF::RefPtr<WebCore::PositionError> error = WebCore::PositionError::create(PositionError::PERMISSION_DENIED, "User disallowed Geo Location");148 WTF::RefPtr<WebCore::PositionError> error = WebCore::PositionError::create(PositionError::PERMISSION_DENIED, "User disallowed Geolocation"); 149 149 handleError(error.get()); 150 150 } -
trunk/WebCore/platform/GeolocationService.cpp
r44094 r48144 21 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 24 */ 25 25 26 26 #include "config.h" 27 27 #include "GeolocationService.h" 28 #include "Geoposition.h" 29 #include "GeolocationServiceMock.h" 30 #include "PositionError.h" 28 31 32 #include <wtf/CurrentTime.h> 29 33 #include <wtf/Assertions.h> 30 34 … … 32 36 33 37 #if !ENABLE(GEOLOCATION) 34 GeolocationService* GeolocationService::create(GeolocationServiceClient*)38 GeolocationService* createGeolocationServiceNull(GeolocationServiceClient*) 35 39 { 36 40 return 0; 37 41 } 42 43 GeolocationService::FactoryFunction* GeolocationService::s_factoryFunction = &createGeolocationServiceNull; 38 44 #endif 45 46 GeolocationService* GeolocationService::create(GeolocationServiceClient* client) 47 { 48 return (*s_factoryFunction)(client); 49 } 50 51 void GeolocationService::useMock() 52 { 53 s_factoryFunction = &GeolocationServiceMock::create; 54 } 39 55 40 56 GeolocationService::GeolocationService(GeolocationServiceClient* client) -
trunk/WebCore/platform/GeolocationService.h
r41375 r48144 60 60 void errorOccurred(); 61 61 62 static void useMock(); 63 62 64 protected: 63 65 GeolocationService(GeolocationServiceClient*); … … 65 67 private: 66 68 GeolocationServiceClient* m_geolocationServiceClient; 69 70 typedef GeolocationService* (FactoryFunction)(GeolocationServiceClient*); 71 static FactoryFunction* s_factoryFunction; 67 72 }; 68 73 -
trunk/WebCore/platform/gtk/GeolocationServiceGtk.cpp
r42440 r48144 38 38 namespace WebCore { 39 39 40 GeolocationService* GeolocationService ::create(GeolocationServiceClient* client)40 GeolocationService* GeolocationServiceGtk::create(GeolocationServiceClient* client) 41 41 { 42 42 return new GeolocationServiceGtk(client); 43 43 } 44 45 GeolocationService::FactoryFunction* GeolocationService::s_factoryFunction = &GeolocationServiceGtk::create; 44 46 45 47 GeolocationServiceGtk::GeolocationServiceGtk(GeolocationServiceClient* client) -
trunk/WebCore/platform/gtk/GeolocationServiceGtk.h
r40441 r48144 32 32 class GeolocationServiceGtk : public GeolocationService { 33 33 public: 34 GeolocationServiceGtk(GeolocationServiceClient*);34 static GeolocationService* create(GeolocationServiceClient*); 35 35 ~GeolocationServiceGtk(); 36 36 … … 45 45 46 46 private: 47 GeolocationServiceGtk(GeolocationServiceClient*); 48 47 49 void updateLocationInformation(); 48 50 void setError(PositionError::ErrorCode, const char* message); -
trunk/WebCore/platform/mac/GeolocationServiceMac.h
r41375 r48144 46 46 class GeolocationServiceMac : public GeolocationService { 47 47 public: 48 GeolocationServiceMac(GeolocationServiceClient*);48 static GeolocationService* create(GeolocationServiceClient*); 49 49 virtual ~GeolocationServiceMac(); 50 50 … … 62 62 63 63 private: 64 GeolocationServiceMac(GeolocationServiceClient*); 65 64 66 RetainPtr<CLLocationManager> m_locationManager; 65 67 RetainPtr<WebCoreCoreLocationObserver> m_objcObserver; -
trunk/WebCore/platform/mac/GeolocationServiceMac.mm
r42437 r48144 66 66 namespace WebCore { 67 67 68 GeolocationService* GeolocationService ::create(GeolocationServiceClient* client)68 GeolocationService* GeolocationServiceMac::create(GeolocationServiceClient* client) 69 69 { 70 70 return new GeolocationServiceMac(client); 71 71 } 72 73 GeolocationService::FactoryFunction* GeolocationService::s_factoryFunction = &GeolocationServiceMac::create; 72 74 73 75 GeolocationServiceMac::GeolocationServiceMac(GeolocationServiceClient* client) -
trunk/WebCore/platform/mock/GeolocationServiceMock.h
r48143 r48144 21 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 24 */ 25 25 26 #ifndef GeolocationServiceMac_h 27 #define GeolocationServiceMac_h 28 29 #if ENABLE(GEOLOCATION) 26 #ifndef GeolocationServiceMock_h 27 #define GeolocationServiceMock_h 30 28 31 29 #include "GeolocationService.h" 30 #include "Timer.h" 31 #include <wtf/HashSet.h> 32 32 #include <wtf/PassRefPtr.h> 33 33 #include <wtf/RefPtr.h> 34 #include <wtf/RetainPtr.h>35 36 #ifdef __OBJC__37 @class CLLocationManager;38 @class WebCoreCoreLocationObserver;39 #else40 class CLLocationManager;41 class WebCoreCoreLocationObserver;42 #endif43 34 44 35 namespace WebCore { 45 36 46 class GeolocationServiceMac : public GeolocationService { 47 public: 48 GeolocationServiceMac(GeolocationServiceClient*); 49 virtual ~GeolocationServiceMac(); 50 37 // This class provides a mock implementation of a GeolocationService for testing 38 // purposes. It allows the position or error that will be reported by this class 39 // to be set manually using the setPosition and setError methods. Objects of 40 // this class call back to their respective GeolocationServiceClient with the 41 // position or error every time either of these is updated. 42 class GeolocationServiceMock : public GeolocationService { 43 public: 44 static GeolocationService* create(GeolocationServiceClient*); 45 46 GeolocationServiceMock(GeolocationServiceClient*); 47 virtual ~GeolocationServiceMock(); 48 51 49 virtual bool startUpdating(PositionOptions*); 52 50 virtual void stopUpdating(); 53 51 54 virtual void suspend();55 virtual void resume();52 static void setPosition(PassRefPtr<Geoposition> position); 53 static void setError(PassRefPtr<PositionError> position); 56 54 57 virtual Geoposition* lastPosition() const { return m_lastPosition.get(); }58 virtual PositionError* lastError() const { return m_lastError.get(); }55 virtual Geoposition* lastPosition() const { return s_lastPosition->get(); } 56 virtual PositionError* lastError() const { return s_lastError->get(); } 59 57 60 void positionChanged(PassRefPtr<Geoposition>); 61 void errorOccurred(PassRefPtr<PositionError>); 58 private: 59 static void makeGeolocationCallbackFromAllInstances(); 60 void makeGeolocationCallback(); 62 61 63 private: 64 RetainPtr<CLLocationManager> m_locationManager; 65 RetainPtr<WebCoreCoreLocationObserver> m_objcObserver; 66 67 RefPtr<Geoposition> m_lastPosition; 68 RefPtr<PositionError> m_lastError; 62 void timerFired(Timer<GeolocationServiceMock>*); 63 64 static void initStatics(); 65 static void cleanUpStatics(); 66 67 typedef HashSet<GeolocationServiceMock*> GeolocationServiceSet; 68 static GeolocationServiceSet* s_instances; 69 70 static RefPtr<Geoposition>* s_lastPosition; 71 static RefPtr<PositionError>* s_lastError; 72 73 Timer<GeolocationServiceMock> m_timer; 74 75 bool m_isActive; 69 76 }; 70 77 71 78 } // namespace WebCore 72 79 73 #endif // ENABLE(GEOLOCATION) 74 75 #endif // GeolocationServiceMac_h 80 #endif // GeolocationServiceMock_h -
trunk/WebKit/ChangeLog
r48023 r48144 1 2009-09-07 Steve Block <steveblock@google.com> 2 3 Reviewed by Adam Barth. 4 5 Adds a mock Geolocation service. This will be used to provide predictable behavior of the 6 Geolocation API for use in LayoutTests. Later changes will integrate the the mock 7 Geolocation service with DumpRenderTree. 8 https://bugs.webkit.org/show_bug.cgi?id=28264 9 10 * WebKit.xcodeproj/project.pbxproj: Modified. Adds WebGeolocationMock. 11 1 12 2009-09-03 John Sullivan <sullivan@apple.com> 2 13 -
trunk/WebKit/WebKit.xcodeproj/project.pbxproj
r47908 r48144 95 95 5241ADF50B1BC48A004012BD /* WebCache.h in Headers */ = {isa = PBXBuildFile; fileRef = 5241ADF30B1BC48A004012BD /* WebCache.h */; settings = {ATTRIBUTES = (Private, ); }; }; 96 96 5241ADF60B1BC48A004012BD /* WebCache.mm in Sources */ = {isa = PBXBuildFile; fileRef = 5241ADF40B1BC48A004012BD /* WebCache.mm */; }; 97 59C77F3510545F7E00506104 /* WebGeolocationMock.mm in Sources */ = {isa = PBXBuildFile; fileRef = 59C77F3310545F7E00506104 /* WebGeolocationMock.mm */; }; 98 59C77F4B105471E700506104 /* WebGeolocationMockPrivate.h in Headers */ = {isa = PBXBuildFile; fileRef = 59C77F4A105471E700506104 /* WebGeolocationMockPrivate.h */; settings = {ATTRIBUTES = (Private, ); }; }; 97 99 5D1638F30E35B45D00F3038E /* EmptyProtocolDefinitions.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D1638F20E35B45D00F3038E /* EmptyProtocolDefinitions.h */; }; 98 100 5D7BF8140C2A1D90008CE06D /* WebInspector.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D7BF8120C2A1D90008CE06D /* WebInspector.h */; settings = {ATTRIBUTES = (Private, ); }; }; … … 467 469 5241ADF30B1BC48A004012BD /* WebCache.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = WebCache.h; sourceTree = "<group>"; }; 468 470 5241ADF40B1BC48A004012BD /* WebCache.mm */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.objcpp; path = WebCache.mm; sourceTree = "<group>"; }; 471 59C77F3310545F7E00506104 /* WebGeolocationMock.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WebGeolocationMock.mm; sourceTree = "<group>"; }; 472 59C77F4A105471E700506104 /* WebGeolocationMockPrivate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebGeolocationMockPrivate.h; sourceTree = "<group>"; }; 469 473 5D1638F20E35B45D00F3038E /* EmptyProtocolDefinitions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EmptyProtocolDefinitions.h; sourceTree = "<group>"; }; 470 474 5D7BF8120C2A1D90008CE06D /* WebInspector.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = WebInspector.h; sourceTree = "<group>"; }; … … 1136 1140 isa = PBXGroup; 1137 1141 children = ( 1142 59C77F4A105471E700506104 /* WebGeolocationMockPrivate.h */, 1143 59C77F3310545F7E00506104 /* WebGeolocationMock.mm */, 1138 1144 B68049710FFBCEC1009F7F62 /* WebApplicationCache.h */, 1139 1145 B68049720FFBCEC1009F7F62 /* WebApplicationCache.mm */, … … 1447 1453 939810710824BF01008DF038 /* WebViewPrivate.h in Headers */, 1448 1454 41F4484F10338E8C0030E55E /* WebWorkersPrivate.h in Headers */, 1455 59C77F4B105471E700506104 /* WebGeolocationMockPrivate.h in Headers */, 1449 1456 ); 1450 1457 runOnlyForDeploymentPostprocessing = 0; … … 1778 1785 939810E80824BF01008DF038 /* WebViewFactory.mm in Sources */, 1779 1786 41F4485010338E8C0030E55E /* WebWorkersPrivate.mm in Sources */, 1787 59C77F3510545F7E00506104 /* WebGeolocationMock.mm in Sources */, 1780 1788 ); 1781 1789 runOnlyForDeploymentPostprocessing = 0; -
trunk/WebKit/mac/ChangeLog
r48131 r48144 1 2009-09-07 Steve Block <steveblock@google.com> 2 3 Reviewed by Adam Barth. 4 5 Adds a mock Geolocation service. This will be used to provide predictable behavior of the 6 Geolocation API for use in LayoutTests. Later changes will integrate the the mock 7 Geolocation service with DumpRenderTree. 8 https://bugs.webkit.org/show_bug.cgi?id=28264 9 10 * WebCoreSupport/WebGeolocationMockPrivate.h: Added. 11 * WebCoreSupport/WebGeolocationMock.mm: Added. 12 (+[WebGeolocationMock setError:code:]): Added. Used by DumpRender tree to configure the mock Geolocation service. 13 (+[WebGeolocationMock setPosition:latitude:longitude:accuracy:]): Added. Used by DumpRender tree to configure the mock Geolocation service. 14 * WebKit.exp: Modified. Exports WebGeolocationMock. 15 1 16 2009-09-07 Drew Wilson <atwilson@google.com> 2 17 -
trunk/WebKit/mac/WebCoreSupport/WebGeolocationMockPrivate.h
r48143 r48144 1 1 /* 2 * Copyright (C) 200 8Apple Inc. All Rights Reserved.2 * Copyright (C) 2009 Apple Inc. All Rights Reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 24 24 */ 25 25 26 #include "config.h" 27 #include "GeolocationService.h" 26 #import <Foundation/Foundation.h> 28 27 29 #include <wtf/Assertions.h> 30 31 namespace WebCore { 32 33 #if !ENABLE(GEOLOCATION) 34 GeolocationService* GeolocationService::create(GeolocationServiceClient*) 35 { 36 return 0; 37 } 38 #endif 39 40 GeolocationService::GeolocationService(GeolocationServiceClient* client) 41 : m_geolocationServiceClient(client) 42 { 43 ASSERT(m_geolocationServiceClient); 28 @interface WebGeolocationMock : NSObject { 44 29 } 45 30 46 void GeolocationService::positionChanged() 47 { 48 m_geolocationServiceClient->geolocationServicePositionChanged(this); 49 } 50 51 void GeolocationService::errorOccurred() 52 { 53 m_geolocationServiceClient->geolocationServiceErrorOccurred(this); 54 } 55 56 } // namespace WebCore 31 + (void)setPosition:(double)latitude:(double)longitude:(double)accuracy; 32 + (void)setError:(int)code:(NSString *)message; 33 @end -
trunk/WebKit/mac/WebKit.exp
r47429 r48144 13 13 .objc_class_name_WebFrame 14 14 .objc_class_name_WebFrameView 15 .objc_class_name_WebGeolocationMock 15 16 .objc_class_name_WebHTMLRepresentation 16 17 .objc_class_name_WebHTMLView -
trunk/WebKitTools/ChangeLog
r48131 r48144 1 2009-09-07 Steve Block <steveblock@google.com> 2 3 Reviewed by Adam Barth. 4 5 Adds a mock Geolocation service. This will be used to provide predictable behavior of the 6 Geolocation API for use in LayoutTests. Later changes will integrate the the mock 7 Geolocation service with DumpRenderTree. 8 https://bugs.webkit.org/show_bug.cgi?id=28264 9 10 * DumpRenderTree/LayoutTestController.cpp: Modified. 11 (setMockGeolocationPositionCallback): Added. Configures the mock Geolocation service. 12 (setMockGeolocationErrorCallback): Added. Configures the mock Geolocation service. 13 (LayoutTestController::staticFunctions): Added. Registers the above functions on the LayoutTestController. 14 * DumpRenderTree/LayoutTestController.h: Modified. 15 * DumpRenderTree/mac/LayoutTestControllerMac.mm: Modified. 16 (LayoutTestController::setMockGeolocationPosition): Added. Configures the mock Geolocation service. 17 (LayoutTestController::setMockGeolocationError): Added. Configures the mock Geolocation service. 18 1 19 2009-09-07 Drew Wilson <atwilson@google.com> 2 20 -
trunk/WebKitTools/DumpRenderTree/LayoutTestController.cpp
r48057 r48144 37 37 #include <wtf/Assertions.h> 38 38 #include <wtf/MathExtras.h> 39 #include <wtf/RefPtr.h> 39 40 40 41 LayoutTestController::LayoutTestController(const std::string& testPathOrURL, const std::string& expectedPixelHash) … … 629 630 return JSValueMakeUndefined(context); 630 631 632 } 633 634 static JSValueRef setMockGeolocationPositionCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) 635 { 636 if (argumentCount < 3) 637 return JSValueMakeUndefined(context); 638 639 LayoutTestController* controller = reinterpret_cast<LayoutTestController*>(JSObjectGetPrivate(thisObject)); 640 controller->setMockGeolocationPosition(JSValueToNumber(context, arguments[0], NULL), // latitude 641 JSValueToNumber(context, arguments[1], NULL), // longitude 642 JSValueToNumber(context, arguments[2], NULL)); // accuracy 643 644 return JSValueMakeUndefined(context); 645 } 646 647 static JSValueRef setMockGeolocationErrorCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) 648 { 649 if (argumentCount < 2) 650 return JSValueMakeUndefined(context); 651 652 int code = JSValueToNumber(context, arguments[0], NULL); 653 JSRetainPtr<JSStringRef> message(Adopt, JSValueToStringCopy(context, arguments[1], exception)); 654 ASSERT(!*exception); 655 656 LayoutTestController* controller = reinterpret_cast<LayoutTestController*>(JSObjectGetPrivate(thisObject)); 657 controller->setMockGeolocationError(code, message.get()); 658 659 return JSValueMakeUndefined(context); 631 660 } 632 661 … … 1056 1085 { "setCustomPolicyDelegate", setCustomPolicyDelegateCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, 1057 1086 { "setDatabaseQuota", setDatabaseQuotaCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, 1087 { "setMockGeolocationPosition", setMockGeolocationPositionCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, 1088 { "setMockGeolocationError", setMockGeolocationErrorCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, 1058 1089 { "setIconDatabaseEnabled", setIconDatabaseEnabledCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, 1059 1090 { "setJavaScriptProfilingEnabled", setJavaScriptProfilingEnabledCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, -
trunk/WebKitTools/DumpRenderTree/LayoutTestController.h
r48057 r48144 69 69 void setCustomPolicyDelegate(bool setDelegate, bool permissive); 70 70 void setDatabaseQuota(unsigned long long quota); 71 void setMockGeolocationPosition(double latitude, double longitude, double accuracy); 72 void setMockGeolocationError(int code, JSStringRef message); 71 73 void setIconDatabaseEnabled(bool iconDatabaseEnabled); 72 74 void setJavaScriptProfilingEnabled(bool profilingEnabled); -
trunk/WebKitTools/DumpRenderTree/gtk/LayoutTestControllerGtk.cpp
r48101 r48144 303 303 } 304 304 305 void LayoutTestController::setMockGeolocationPosition(double latitude, double longitude, double accuracy) 306 { 307 // FIXME: Implement for Geolocation layout tests. 308 // See https://bugs.webkit.org/show_bug.cgi?id=28264. 309 } 310 311 void LayoutTestController::setMockGeolocationError(int code, JSStringRef message) 312 { 313 // FIXME: Implement for Geolocation layout tests. 314 // See https://bugs.webkit.org/show_bug.cgi?id=28264. 315 } 316 305 317 void LayoutTestController::setIconDatabaseEnabled(bool flag) 306 318 { -
trunk/WebKitTools/DumpRenderTree/mac/LayoutTestControllerMac.mm
r48057 r48144 53 53 #import <WebKit/WebHistoryPrivate.h> 54 54 #import <WebKit/WebInspector.h> 55 #import <WebKit/WebGeolocationMockPrivate.h> 55 56 #import <WebKit/WebNSURLExtras.h> 56 57 #import <WebKit/WebPreferences.h> … … 233 234 [origin setQuota:quota]; 234 235 [origin release]; 236 } 237 238 void LayoutTestController::setMockGeolocationPosition(double latitude, double longitude, double accuracy) 239 { 240 [WebGeolocationMock setPosition:latitude:longitude:accuracy]; 241 } 242 243 void LayoutTestController::setMockGeolocationError(int code, JSStringRef message) 244 { 245 RetainPtr<CFStringRef> messageCF(AdoptCF, JSStringCopyCFString(kCFAllocatorDefault, message)); 246 NSString *messageNS = (NSString *)messageCF.get(); 247 [WebGeolocationMock setError:code:messageNS]; 235 248 } 236 249 -
trunk/WebKitTools/DumpRenderTree/win/LayoutTestControllerWin.cpp
r48057 r48144 312 312 } 313 313 314 void LayoutTestController::setMockGeolocationPosition(double latitude, double longitude, double accuracy) 315 { 316 // FIXME: Implement for Geolocation layout tests. 317 // See https://bugs.webkit.org/show_bug.cgi?id=28264. 318 } 319 320 void LayoutTestController::setMockGeolocationError(int code, JSStringRef message) 321 { 322 // FIXME: Implement for Geolocation layout tests. 323 // See https://bugs.webkit.org/show_bug.cgi?id=28264. 324 } 325 314 326 void LayoutTestController::setIconDatabaseEnabled(bool iconDatabaseEnabled) 315 327 { -
trunk/WebKitTools/DumpRenderTree/wx/LayoutTestControllerWx.cpp
r48057 r48144 240 240 } 241 241 242 void LayoutTestController::setMockGeolocationPosition(double latitude, double longitude, double accuracy) 243 { 244 // FIXME: Implement for Geolocation layout tests. 245 // See https://bugs.webkit.org/show_bug.cgi?id=28264. 246 } 247 248 void LayoutTestController::setMockGeolocationError(int code, JSStringRef message) 249 { 250 // FIXME: Implement for Geolocation layout tests. 251 // See https://bugs.webkit.org/show_bug.cgi?id=28264. 252 } 253 242 254 void LayoutTestController::setIconDatabaseEnabled(bool iconDatabaseEnabled) 243 255 {
Note: See TracChangeset
for help on using the changeset viewer.