• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/WebCore-7600.1.25/Modules/geolocation/

Lines Matching defs:Geolocation

29 #include "Geolocation.h"
48 static const char permissionDeniedErrorMessage[] = "User denied Geolocation";
49 static const char failedToStartServiceErrorMessage[] = "Failed to start Geolocation service";
50 static const char framelessDocumentErrorMessage[] = "Geolocation cannot be used in frameless documents";
78 Geolocation::GeoNotifier::GeoNotifier(Geolocation* geolocation, PassRefPtr<PositionCallback> successCallback, PassRefPtr<PositionErrorCallback> errorCallback, PassRefPtr<PositionOptions> options)
83 , m_timer(this, &Geolocation::GeoNotifier::timerFired)
93 void Geolocation::GeoNotifier::setFatalError(PassRefPtr<PositionError> error)
107 void Geolocation::GeoNotifier::setUseCachedPosition()
113 bool Geolocation::GeoNotifier::hasZeroTimeout() const
118 void Geolocation::GeoNotifier::runSuccessCallback(Geoposition* position)
120 // If we are here and the Geolocation permission is not approved, something has
128 void Geolocation::GeoNotifier::runErrorCallback(PositionError* error)
134 void Geolocation::GeoNotifier::startTimerIfNeeded()
140 void Geolocation::GeoNotifier::stopTimer()
145 void Geolocation::GeoNotifier::timerFired(Timer<GeoNotifier>&)
177 bool Geolocation::Watchers::add(int id, PassRefPtr<GeoNotifier> prpNotifier)
188 Geolocation::GeoNotifier* Geolocation::Watchers::find(int id)
194 void Geolocation::Watchers::remove(int id)
201 void Geolocation::Watchers::remove(GeoNotifier* notifier)
207 bool Geolocation::Watchers::contains(GeoNotifier* notifier) const
212 void Geolocation::Watchers::clear()
218 bool Geolocation::Watchers::isEmpty() const
223 void Geolocation::Watchers::getNotifiersVector(GeoNotifierVector& copy) const
228 PassRef<Geolocation> Geolocation::create(ScriptExecutionContext* context)
230 auto geolocation = adoptRef(*new Geolocation(context));
235 Geolocation::Geolocation(ScriptExecutionContext* context)
241 , m_resumeTimer(this, &Geolocation::resumeTimerFired)
246 Geolocation::~Geolocation()
251 Document* Geolocation::document() const
256 Frame* Geolocation::frame() const
261 Page* Geolocation::page() const
267 bool Geolocation::canSuspend() const
272 void Geolocation::suspend(ReasonForSuspension reason)
291 void Geolocation::resume()
300 void Geolocation::resumeTimerFired(Timer<Geolocation>&)
345 void Geolocation::resetAllGeolocationPermission()
383 void Geolocation::stop()
399 Geoposition* Geolocation::lastPosition()
410 void Geolocation::getCurrentPosition(PassRefPtr<PositionCallback> successCallback, PassRefPtr<PositionErrorCallback> errorCallback, PassRefPtr<PositionOptions> options)
421 int Geolocation::watchPosition(PassRefPtr<PositionCallback> successCallback, PassRefPtr<PositionErrorCallback> errorCallback, PassRefPtr<PositionOptions> options)
437 void Geolocation::startRequest(GeoNotifier *notifier)
457 void Geolocation::fatalErrorOccurred(Geolocation::GeoNotifier* notifier)
467 void Geolocation::requestUsesCachedPosition(GeoNotifier* notifier)
488 void Geolocation::makeCachedPositionCallbacks()
514 void Geolocation::requestTimedOut(GeoNotifier* notifier)
523 bool Geolocation::haveSuitableCachedPosition(PositionOptions* options)
536 void Geolocation::clearWatch(int watchID)
549 void Geolocation::setIsAllowed(bool allowed)
551 // Protect the Geolocation object from garbage collection during a callback.
552 Ref<Geolocation> protect(*this);
592 void Geolocation::sendError(GeoNotifierVector& notifiers, PositionError* error)
602 void Geolocation::sendPosition(GeoNotifierVector& notifiers, Geoposition* position)
609 void Geolocation::stopTimer(GeoNotifierVector& notifiers)
616 void Geolocation::stopTimersForOneShots()
624 void Geolocation::stopTimersForWatchers()
632 void Geolocation::stopTimers()
638 void Geolocation::cancelRequests(GeoNotifierVector& notifiers)
645 void Geolocation::cancelAllRequests()
654 void Geolocation::extractNotifiersWithCachedPosition(GeoNotifierVector& notifiers, GeoNotifierVector* cached)
669 void Geolocation::copyToSet(const GeoNotifierVector& src, GeoNotifierSet& dest)
678 void Geolocation::handleError(PositionError* error)
689 // added by calls to Geolocation methods from the callbacks, and to prevent
714 void Geolocation::requestPermission()
729 void Geolocation::makeSuccessCallbacks()
741 // added by calls to Geolocation methods from the callbacks, and to prevent
752 void Geolocation::positionChanged()
769 void Geolocation::setError(GeolocationError* error)
781 bool Geolocation::startUpdating(GeoNotifier* notifier)
791 void Geolocation::stopUpdating()
800 void Geolocation::handlePendingPermissionNotifiers()