with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.INavigatorGeolocation_Interface is

   procedure Initialize (This : in out INavigatorGeolocation_Type) is
   begin
      Set_IID (This, IID_INavigatorGeolocation);
   end Initialize;

   function Pointer (This : INavigatorGeolocation_Type)
     return Pointer_To_INavigatorGeolocation
   is
   begin
      return To_Pointer_To_INavigatorGeolocation (Address (This));
   end Pointer;

   procedure Attach (This    : in out INavigatorGeolocation_Type;
                     Pointer : in     Pointer_To_INavigatorGeolocation)
   is
   begin
      Attach (This, GNATCOM.IInterface.To_Pointer_To_IUnknown
              (Pointer.all'Address));
   end Attach;

   function Get_geolocation
     (This : INavigatorGeolocation_Type)
     return Pointer_To_IWebGeolocation
   is
       RetVal : aliased Pointer_To_IWebGeolocation;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_geolocation
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_geolocation;

end MSHTML.INavigatorGeolocation_Interface;

