Home | History | Annotate | Download | only in geolocation

Lines Matching defs:geoposition

24 #include "content/common/geoposition.h"
184 void NotifyGeoposition(const Geoposition& geoposition) {
186 MockLocationProvider::instance_->HandlePositionChanged(geoposition);
195 // 3. Allowing the infobar does not trigger an error, and allow a geoposition to
286 Geoposition GeopositionFromLatLong(double latitude, double longitude) {
287 Geoposition geoposition;
288 geoposition.latitude = latitude;
289 geoposition.longitude = longitude;
290 geoposition.accuracy = 0;
291 geoposition.error_code = Geoposition::ERROR_CODE_NONE;
294 geoposition.timestamp = base::Time::Now();
295 EXPECT_TRUE(geoposition.IsValidFix());
296 return geoposition;
299 void CheckGeoposition(const Geoposition& geoposition) {
302 CheckStringValueFromJavascript(base::DoubleToString(geoposition.latitude),
304 CheckStringValueFromJavascript(base::DoubleToString(geoposition.longitude),
383 IN_PROC_BROWSER_TEST_F(GeolocationBrowserTest, Geoposition) {
475 // Test second iframe from a different origin with a cached geoposition will
480 // Back to the first frame, enable navigation and refresh geoposition.
485 Geoposition fresh_position = GeopositionFromLatLong(3.17, 4.23);
512 // Refresh geoposition, but let's not yet create the watch on the second frame
516 Geoposition cached_position = GeopositionFromLatLong(5.67, 8.09);
550 // Test second iframe from a different origin with a cached geoposition will
604 const Geoposition final_position = GeopositionFromLatLong(3.17, 4.23);