HomeSort by relevance Sort by last modified time
    Searched full:geolocation (Results 1 - 25 of 299) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /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...]
permission-denied-already-success.js 1 description("Tests that when Geolocation permission has been denied prior to a call to a Geolocation method, the error callback is invoked with code PERMISSION_DENIED, when the Geolocation service has a good position.");
3 // Prime the Geolocation instance by denying permission.
11 navigator.geolocation.getCurrentPosition(function(p) {
17 shouldBe('error.message', '"User denied Geolocation"');
25 navigator.geolocation.getCurrentPosition(function(p) {
31 shouldBe('error.message', '"User denied Geolocation"');
permission-denied.js 1 description("Tests Geolocation when permission is denied, using the mock service.");
10 navigator.geolocation.getCurrentPosition(function(p) {
16 shouldBe('error.message', '"User denied Geolocation"');
permission-denied-already-error.js 1 description("Tests that when Geolocation permission has been denied prior to a call to a Geolocation method, the error callback is invoked with code PERMISSION_DENIED, when the Geolocation service encounters an error.");
3 // Prime the Geolocation instance by denying permission.
11 navigator.geolocation.getCurrentPosition(function(p) {
17 shouldBe('error.message', '"User denied Geolocation"');
28 navigator.geolocation.getCurrentPosition(function(p) {
34 shouldBe('error.message', '"User denied Geolocation"');
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);
  /external/webkit/LayoutTests/fast/dom/Geolocation/
enabled-expected.txt 1 Tests that the navigator.geolocation object is present.
6 PASS typeof navigator.geolocation == 'object' is true
8 PASS 'geolocation' in navigator is true
9 PASS navigator.hasOwnProperty('geolocation') is true
argument-types-expected.txt 1 Tests the acceptable types for arguments to Geolocation methods.
6 PASS navigator.geolocation.getCurrentPosition() threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
7 PASS navigator.geolocation.getCurrentPosition(undefined) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
8 PASS navigator.geolocation.getCurrentPosition(null) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
9 PASS navigator.geolocation.getCurrentPosition({}) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
10 PASS navigator.geolocation.getCurrentPosition(objectThrowingException) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
11 PASS navigator.geolocation.getCurrentPosition(emptyFunction) did not throw exception.
12 PASS navigator.geolocation.getCurrentPosition(Math.abs) did not throw exception.
13 PASS navigator.geolocation.getCurrentPosition(layoutTestController.setGeolocationPermission) did not throw exception.
14 PASS navigator.geolocation.getCurrentPosition(true) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17
    [all...]
permission-denied-already-error-expected.txt 1 Tests that when Geolocation permission has been denied prior to a call to a Geolocation method, the error callback is invoked with code PERMISSION_DENIED, when the Geolocation service encounters an error.
7 PASS error.message is "User denied Geolocation"
10 PASS error.message is "User denied Geolocation"
permission-denied-already-success-expected.txt 1 Tests that when Geolocation permission has been denied prior to a call to a Geolocation method, the error callback is invoked with code PERMISSION_DENIED, when the Geolocation service has a good position.
7 PASS error.message is "User denied Geolocation"
10 PASS error.message is "User denied Geolocation"
reentrant-permission-denied-expected.txt 1 Tests that reentrant calls to Geolocation methods from the error callback due to a PERMISSION_DENIED error are OK.
7 PASS error.message is "User denied Geolocation"
9 PASS error.message is "User denied Geolocation"
disconnected-frame-already-expected.txt 1 Tests that when a request is made on a Geolocation object after its frame has been disconnected, no callbacks are made and no crash occurs.
6 Method called on Geolocation object with disconnected Frame.
permission-denied-expected.txt 1 Tests Geolocation when permission is denied, using the mock service.
7 PASS error.message is "User denied Geolocation"
permission-denied-stops-watches-expected.txt 1 Tests that when Geolocation permission is denied, watches are stopped, as well as one-shots.
7 PASS error.message is "User denied Geolocation"
disconnected-frame-permission-denied-expected.txt 2 Tests that when a request is made on a Geolocation object, permission is denied and its Frame is disconnected before a callback is made, the error callback is invoked with PERMISSION_DENIED.
8 PASS error.message is "User denied Geolocation"
11 PASS error.message is "User denied Geolocation"
permission-denied-already-clear-watch-expected.txt 1 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.
7 PASS error.message is "User denied Geolocation"
10 PASS error.message is "User denied Geolocation"
  /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
  /external/webkit/LayoutTests/fast/dom/Geolocation/resources/
window-close-popup.html 7 var geolocation = navigator.geolocation;
14 navigator.geolocation.watchPosition(window.opener.gotPosition);
  /external/chromium/chrome/browser/extensions/
extension_geolocation_apitest.cc 6 #include "content/browser/geolocation/location_arbitrator.h"
7 #include "content/browser/geolocation/mock_location_provider.h"
8 #include "content/browser/geolocation/arbitrator_dependency_factories_for_test.h"
36 // Test that geolocation cannot be accessed from extension without permission.
37 ASSERT_TRUE(RunExtensionTest("geolocation/no_permission")) << message_;
41 // Test that geolocation can be accessed from extension with permission.
42 ASSERT_TRUE(RunExtensionTest("geolocation/has_permission")) << message_;
  /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...]
  /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/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/LayoutTests/platform/android/fast/dom/Geolocation/
disconnected-frame-permission-denied-expected.txt 1 Tests that when a request is made on a Geolocation object, permission is denied and its Frame is disconnected before a callback is made, the error callback is invoked with PERMISSION_DENIED.
7 PASS error.message is "User denied Geolocation"
10 PASS error.message is "User denied Geolocation"
  /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/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...]

Completed in 279 milliseconds

1 2 3 4 5 6 7 8 91011>>