Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 73 class nsGeolocationRequest
- 74 : public nsIContentPermissionRequest
- 75 , public nsITimerCallback
- 76 , public PCOMContentPermissionRequestChild
- 77 {
- 78 public:
- 79 NS_DECL_CYCLE_COLLECTING_ISUPPORTS
- 80 NS_DECL_NSICONTENTPERMISSIONREQUEST
- 81 NS_DECL_NSITIMERCALLBACK
- 82
- 83 NS_DECL_CYCLE_COLLECTION_CLASS_AMBIGUOUS(nsGeolocationRequest, nsIContentPermissionRequest)
- 84
- 85 nsGeolocationRequest(nsGeolocation* locator,
- 86 nsIDOMGeoPositionCallback* callback,
- 87 nsIDOMGeoPositionErrorCallback* errorCallback,
- 88 nsIDOMGeoPositionOptions* options,
- 89 bool watchPositionRequest = false);
- 90 nsresult Init();
- 91 void Shutdown();
- 92
- 93 // Called by the geolocation device to notify that a location has changed.
- 94 bool Update(nsIDOMGeoPosition* aPosition);
- 95
- 96 void SendLocation(nsIDOMGeoPosition* location);
- 97 void MarkCleared();
- 98 bool IsActive() {return !mCleared;}
- 99 bool Allowed() {return mAllowed;}
- 100 void SetTimeoutTimer();
- 101
- 102 ~nsGeolocationRequest();
- 103
- 104 bool Recv__delete__(const bool& allow);
- 105 void IPDLRelease() { Release(); }
- 106
- 107 private:
- 108
- 109 void NotifyError(PRInt16 errorCode);
- 110 bool mAllowed;
- 111 bool mCleared;
- 112 bool mIsWatchPositionRequest;
- 113
- 114 nsCOMPtr<nsITimer> mTimeoutTimer;
- 115 nsCOMPtr<nsIDOMGeoPositionCallback> mCallback;
- 116 nsCOMPtr<nsIDOMGeoPositionErrorCallback> mErrorCallback;
- 117 nsCOMPtr<nsIDOMGeoPositionOptions> mOptions;
- 118
- 119 nsRefPtr<nsGeolocation> mLocator;
- 120 };
Advertisement
Add Comment
Please, Sign In to add comment