tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

PWindowsLocation.ipdl (1219B)


      1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* vim: set sw=2 ts=8 et ft=cpp : */
      3 /* This Source Code Form is subject to the terms of the Mozilla Public
      4  * License, v. 2.0. If a copy of the MPL was not distributed with this
      5  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      6 
      7 include protocol PWindowsUtils;
      8 
      9 [RefCounted] using class nsIDOMGeoPosition from "nsGeoPositionIPCSerialiser.h";
     10 
     11 namespace mozilla {
     12 namespace dom {
     13 
     14 // Proxies geolocation functions to a utility process so that we
     15 // can safely handle crashes in the ILocation API.  Messages to the child
     16 // are proxies for the ILocation COM object.  Messages to the parent
     17 // are proxied nsIGeolocationUpdate callbacks.
     18 protocol PWindowsLocation {
     19     manager PWindowsUtils;
     20 
     21 child:
     22   async Startup();
     23   async RegisterForReport();
     24   async UnregisterForReport();
     25   async SetHighAccuracy(bool aEnable);
     26 
     27   async __delete__();
     28 
     29 parent:
     30   // Update geolocation with new position information.
     31   async Update(nullable nsIDOMGeoPosition aPosition);
     32 
     33   // The geolocation API has reported an error.
     34   async Failed(uint16_t aError);
     35 };
     36 
     37 }  // namespace dom
     38 }  // namespace mozilla