/external/chromium/chrome/browser/geolocation/ |
geolocation_prefs.cc | 5 #include "chrome/browser/geolocation/geolocation_prefs.h" 7 #include "content/browser/geolocation/access_token_store.h" 9 namespace geolocation { namespace 11 // Fan out to all geolocation sub-components that use prefs. 14 } // namespace geolocation
|
geolocation_prefs.h | 11 namespace geolocation { namespace
|
/external/webkit/Source/WebKit/chromium/public/ |
WebGeolocationPermissionRequest.h | 33 class Geolocation; 39 // WebGeolocationPermissionRequest encapsulates a WebCore Geolocation object and represents 40 // a request from WebCore for permission to be determined for that Geolocation object. 41 // The underlying Geolocation object is guaranteed to be valid until the invocation of 50 WebGeolocationPermissionRequest(WebCore::Geolocation* geolocation) 51 : m_private(geolocation) 55 WebCore::Geolocation* geolocation() const { return m_private; } function in class:WebKit::WebGeolocationPermissionRequest 59 WebCore::Geolocation* m_private [all...] |
/external/webkit/Source/WebKit/chromium/src/ |
WebGeolocationPermissionRequestManager.cpp | 33 class Geolocation; 38 typedef HashMap<Geolocation*, int> GeolocationIdMap; 39 typedef HashMap<int, Geolocation*> IdGeolocationMap; 53 Geolocation* geolocation = permissionRequest.geolocation(); local 54 ASSERT(!m_private->m_geolocationIdMap.contains(geolocation)); 56 m_private->m_geolocationIdMap.add(geolocation, id); 57 m_private->m_idGeolocationMap.add(id, geolocation); 63 Geolocation* geolocation = permissionRequest.geolocation() local [all...] |
GeolocationClientProxy.cpp | 29 #include "Geolocation.h" 49 // We support there not being a client, provided we don't do any Geolocation. 88 void GeolocationClientProxy::requestPermission(WebCore::Geolocation* geolocation) 90 m_client->requestPermission(WebGeolocationPermissionRequest(geolocation)); 93 void GeolocationClientProxy::cancelPermissionRequest(WebCore::Geolocation* geolocation) 95 m_client->cancelPermissionRequest(WebGeolocationPermissionRequest(geolocation));
|
/external/webkit/LayoutTests/fast/dom/Geolocation/script-tests/ |
enabled.js | 1 description("Tests that the navigator.geolocation object is present."); 6 if (property == "geolocation") 12 shouldBeTrue("typeof navigator.geolocation == 'object'"); 14 shouldBeTrue("'geolocation' in navigator"); 15 shouldBeTrue("navigator.hasOwnProperty('geolocation')");
|
argument-types.js | 1 description("Tests the acceptable types for arguments to Geolocation methods."); 36 test('navigator.geolocation.getCurrentPosition()', true); 38 test('navigator.geolocation.getCurrentPosition(undefined)', true); 39 test('navigator.geolocation.getCurrentPosition(null)', true); 40 test('navigator.geolocation.getCurrentPosition({})', true); 41 test('navigator.geolocation.getCurrentPosition(objectThrowingException)', true); 42 test('navigator.geolocation.getCurrentPosition(emptyFunction)', false); 43 test('navigator.geolocation.getCurrentPosition(Math.abs)', false); 44 test('navigator.geolocation.getCurrentPosition(layoutTestController.setGeolocationPermission)', false); 45 test('navigator.geolocation.getCurrentPosition(true)', true) [all...] |
notimer-after-unload.js | 1 description("Tests that no timers will trigger for navigator.geolocation object after onunload."); 10 navigator.geolocation.getCurrentPosition( 11 function(p) {alert('FAIL: Unexpected Geolocation success callback.');}, 12 function(e) {alert('FAIL: Unexpected Geolocation error callback.' + e.code + e.message);},
|
timeout-clear-watch.js | 7 var watchId = navigator.geolocation.watchPosition(function() { 14 navigator.geolocation.clearWatch(watchId);
|
permission-denied-already-clear-watch.js | 1 description("Tests that when Geolocation permission has been denied prior to a call to watchPosition, and the watch is cleared in the error callback, there is no crash. This a regression test for https://bugs.webkit.org/show_bug.cgi?id=32111."); 3 // Prime the Geolocation instance by denying permission. 11 navigator.geolocation.getCurrentPosition(function(p) { 17 shouldBe('error.message', '"User denied Geolocation"'); 25 var watchId = navigator.geolocation.watchPosition(function(p) { 31 shouldBe('error.message', '"User denied Geolocation"'); 32 navigator.geolocation.clearWatch(watchId);
|
clear-watch-invalid-id-crash.js | 10 navigator.geolocation.watchPosition(function() {}); 11 navigator.geolocation.clearWatch(0);
|
delayed-permission-allowed-for-multiple-requests.js | 15 navigator.geolocation.watchPosition(function() { 29 navigator.geolocation.getCurrentPosition(function() {
|
multiple-requests.js | 1 description("Tests that Geolocation correctly handles multiple concurrent requests."); 18 navigator.geolocation.watchPosition(function(p) { 27 navigator.geolocation.getCurrentPosition(function(p) {
|
reentrant-permission-denied.js | 1 description("Tests that reentrant calls to Geolocation methods from the error callback due to a PERMISSION_DENIED error are OK."); 13 shouldBe('error.message', '"User denied Geolocation"'); 17 navigator.geolocation.getCurrentPosition(function(p) { 31 navigator.geolocation.getCurrentPosition(function(p) {
|
maximum-age.js | 35 navigator.geolocation.getCurrentPosition(function(p) { 48 navigator.geolocation.getCurrentPosition(function(p) { 62 navigator.geolocation.getCurrentPosition(function(p) { 73 navigator.geolocation.getCurrentPosition(function(p) {
|
/external/webkit/Source/WebKit/gtk/webkit/ |
webkitgeolocationpolicydecision.cpp | 23 #include "Geolocation.h" 30 * @short_description: Liaison between WebKit and the application regarding asynchronous geolocation policy decisions 33 * geolocation-policy-decision-requested signal is emitted. The application 34 * uses it to tell the engine whether it wants to allow or deny geolocation for 42 Geolocation* geolocation; member in struct:_WebKitGeolocationPolicyDecisionPrivate 55 WebKitGeolocationPolicyDecision* webkit_geolocation_policy_decision_new(WebKitWebFrame* frame, Geolocation* geolocation) 62 priv->geolocation = geolocation; [all...] |
/external/webkit/Source/WebKit2/WebProcess/WebCoreSupport/ |
WebGeolocationClient.cpp | 34 #include <WebCore/Geolocation.h> 71 void WebGeolocationClient::requestPermission(Geolocation* geolocation) 73 m_page->geolocationPermissionRequestManager().startRequestForGeolocation(geolocation); 76 void WebGeolocationClient::cancelPermissionRequest(Geolocation* geolocation) 78 m_page->geolocationPermissionRequestManager().cancelRequestForGeolocation(geolocation);
|
/external/webkit/Source/WebKit2/WebProcess/Geolocation/ |
GeolocationPermissionRequestManager.cpp | 34 #include <WebCore/Geolocation.h> 52 void GeolocationPermissionRequestManager::startRequestForGeolocation(Geolocation* geolocation) 56 m_geolocationToIDMap.set(geolocation, geolocationID); 57 m_idToGeolocationMap.set(geolocationID, geolocation); 60 Frame* frame = geolocation->frame(); 68 void GeolocationPermissionRequestManager::cancelRequestForGeolocation(Geolocation* geolocation) 70 GeolocationToIDMap::iterator it = m_geolocationToIDMap.find(geolocation); 84 Geolocation* geolocation = it->second [all...] |
/external/webkit/Source/WebKit/android/WebCoreSupport/ |
GeolocationClientAndroid.cpp | 34 using WebCore::Geolocation; 74 void GeolocationClientAndroid::requestPermission(Geolocation* geolocation) 76 client()->requestPermission(geolocation); 79 void GeolocationClientAndroid::cancelPermissionRequest(Geolocation* geolocation) 81 client()->cancelPermissionRequest(geolocation);
|
/external/webkit/Source/WebKit/win/WebCoreSupport/ |
WebGeolocationClient.cpp | 36 #include <WebCore/Geolocation.h> 82 void WebGeolocationClient::requestPermission(Geolocation* geolocation) 86 geolocation->setIsAllowed(false); 92 geolocation->setIsAllowed(false); 96 Frame* frame = geolocation->frame(); 98 COMPtr<WebGeolocationPolicyListener> listener = WebGeolocationPolicyListener::createInstance(geolocation); 103 geolocation->setIsAllowed(false);
|
/external/webkit/Source/WebKit/mac/WebCoreSupport/ |
WebGeolocationClient.mm | 36 #import <WebCore/Geolocation.h> 42 RefPtr<Geolocation> _geolocation; 44 - (id)initWithGeolocation:(Geolocation*)geolocation; 67 void WebGeolocationClient::requestPermission(Geolocation* geolocation) 73 geolocation->setIsAllowed(false); 77 Frame *frame = geolocation->frame(); 79 WebGeolocationPolicyListener* listener = [[WebGeolocationPolicyListener alloc] initWithGeolocation:geolocation]; 100 - (id)initWithGeolocation:(Geolocation*)geolocatio [all...] |
/external/webkit/Source/WebKit/qt/WebCoreSupport/ |
GeolocationClientQt.cpp | 29 #include "Geolocation.h" 44 static const char failedToStartServiceErrorMessage[] = "Failed to start Geolocation service"; 123 void GeolocationClientQt::requestPermission(Geolocation* geolocation) 125 ASSERT(geolocation); 126 QWebFrame* webFrame = QWebFramePrivate::kit(geolocation->frame()); 127 GeolocationPermissionClientQt::geolocationPermissionClient()->requestGeolocationPermissionForFrame(webFrame, geolocation); 130 void GeolocationClientQt::cancelPermissionRequest(Geolocation* geolocation) 132 ASSERT(geolocation); [all...] |
/external/webkit/Source/WebKit/win/ |
WebGeolocationPolicyListener.cpp | 30 #include <WebCore/Geolocation.h> 36 COMPtr<WebGeolocationPolicyListener> WebGeolocationPolicyListener::createInstance(PassRefPtr<Geolocation> geolocation) 38 return new WebGeolocationPolicyListener(geolocation); 41 WebGeolocationPolicyListener::WebGeolocationPolicyListener(PassRefPtr<Geolocation> geolocation) 43 , m_geolocation(geolocation)
|
/external/webkit/Source/WebCore/page/ |
GeolocationController.cpp | 50 void GeolocationController::addObserver(Geolocation* observer, bool enableHighAccuracy) 70 void GeolocationController::removeObserver(Geolocation* observer) 86 void GeolocationController::requestPermission(Geolocation* geolocation) 89 m_client->requestPermission(geolocation); 92 void GeolocationController::cancelPermissionRequest(Geolocation* geolocation) 95 m_client->cancelPermissionRequest(geolocation); 101 Vector<RefPtr<Geolocation> > observersVector; 109 Vector<RefPtr<Geolocation> > observersVector [all...] |
/external/webkit/Source/WebCore/platform/mock/ |
GeolocationClientMock.cpp | 87 void GeolocationClientMock::requestPermission(Geolocation* geolocation) 89 m_pendingPermission.add(geolocation); 94 void GeolocationClientMock::cancelPermissionRequest(Geolocation* geolocation) 96 // Called from Geolocation::disconnectFrame() in response to Frame destruction. 97 m_pendingPermission.remove(geolocation); 116 // Once permission has been set (or denied) on a Geolocation object, there can be 118 // which fire synchronously from Geolocation::setIsAllowed() cannot reentrantly modify
|