diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2012-09-25 13:02:02 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2012-09-25 13:02:02 +0200 |
commit | 715be629d51174233403237bfc563cf150087dc8 (patch) | |
tree | 4cff72df808db977624338b0a38d8b6d1bd73c57 /Source/WebKit/blackberry/WebKitSupport/DumpRenderTreeSupport.cpp | |
parent | dc6262b587c71c14e30d93e57ed812e36a79a33e (diff) | |
download | qtwebkit-715be629d51174233403237bfc563cf150087dc8.tar.gz |
Imported WebKit commit ce614b0924ba46f78d4435e28ff93c8525fbb7cc (http://svn.webkit.org/repository/webkit/trunk@129485)
New snapshot that includes MingW build fixes
Diffstat (limited to 'Source/WebKit/blackberry/WebKitSupport/DumpRenderTreeSupport.cpp')
-rw-r--r-- | Source/WebKit/blackberry/WebKitSupport/DumpRenderTreeSupport.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/Source/WebKit/blackberry/WebKitSupport/DumpRenderTreeSupport.cpp b/Source/WebKit/blackberry/WebKitSupport/DumpRenderTreeSupport.cpp index e4e4ef0c0..ea4ac5601 100644 --- a/Source/WebKit/blackberry/WebKitSupport/DumpRenderTreeSupport.cpp +++ b/Source/WebKit/blackberry/WebKitSupport/DumpRenderTreeSupport.cpp @@ -1,5 +1,6 @@ /* * Copyright (C) 2012 Research In Motion Limited. All rights reserved. + * Copyright (C) 2012 Apple Inc. All Rights Reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -95,20 +96,10 @@ void DumpRenderTreeSupport::resetGeolocationMock(WebPage* webPage) mockClient->reset(); } -void DumpRenderTreeSupport::setMockGeolocationError(WebPage* webPage, int errorCode, const String message) +void DumpRenderTreeSupport::setMockGeolocationPositionUnavailableError(WebPage* webPage, const String message) { - GeolocationError::ErrorCode code = GeolocationError::PositionUnavailable; - switch (errorCode) { - case PositionError::PERMISSION_DENIED: - code = GeolocationError::PermissionDenied; - break; - case PositionError::POSITION_UNAVAILABLE: - code = GeolocationError::PositionUnavailable; - break; - } - GeolocationClientMock* mockClient = static_cast<GeolocationClientMock*>(GeolocationController::from(corePage(webPage))->client()); - mockClient->setError(GeolocationError::create(code, message)); + mockClient->setPositionUnavailableError(message); } void DumpRenderTreeSupport::setMockGeolocationPermission(WebPage* webPage, bool allowed) |