diff options
author | Steve Block <steveblock@google.com> | 2012-05-22 06:15:07 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-05-22 06:15:07 -0700 |
commit | 7c22b1810cce5738f026eec801f4ec11a8df40f6 (patch) | |
tree | 82b359e2eeafa052a8ba785a625ba0ac0d35a057 /core/java/android/webkit/WebViewClassic.java | |
parent | 0c1e7d339c1ae707cae2acf42f2b5e83dfa9cf43 (diff) | |
parent | f3f60d9328d8acfedf987a73631fc90c39bf5447 (diff) | |
download | frameworks_base-7c22b1810cce5738f026eec801f4ec11a8df40f6.zip frameworks_base-7c22b1810cce5738f026eec801f4ec11a8df40f6.tar.gz frameworks_base-7c22b1810cce5738f026eec801f4ec11a8df40f6.tar.bz2 |
Merge "Switch Geolocation DRT methods to control client-based mock"
Diffstat (limited to 'core/java/android/webkit/WebViewClassic.java')
-rw-r--r-- | core/java/android/webkit/WebViewClassic.java | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/core/java/android/webkit/WebViewClassic.java b/core/java/android/webkit/WebViewClassic.java index ab8bc64..8e8d2b6 100644 --- a/core/java/android/webkit/WebViewClassic.java +++ b/core/java/android/webkit/WebViewClassic.java @@ -4778,6 +4778,43 @@ public final class WebViewClassic implements WebViewProvider, WebViewProvider.Sc } /** + * Sets use of the Geolocation mock client. Also resets that client. Called + * by DRT on UI thread, need to proxy to WebCore thread. + * + * debug only + */ + public void setUseMockGeolocation() { + mWebViewCore.sendMessage(EventHub.SET_USE_MOCK_GEOLOCATION); + } + + /** + * Called by DRT on WebCore thread. + * + * debug only + */ + public void setMockGeolocationPosition(double latitude, double longitude, double accuracy) { + mWebViewCore.setMockGeolocationPosition(latitude, longitude, accuracy); + } + + /** + * Called by DRT on WebCore thread. + * + * debug only + */ + public void setMockGeolocationError(int code, String message) { + mWebViewCore.setMockGeolocationError(code, message); + } + + /** + * Called by DRT on WebCore thread. + * + * debug only + */ + public void setMockGeolocationPermission(boolean allow) { + mWebViewCore.setMockGeolocationPermission(allow); + } + + /** * Called by DRT on WebCore thread. * * debug only |