-- GENERATED by C->Haskell Compiler, version 0.13.12 (gtk2hs branch) "Bin IO", 27 May 2012 (Haskell)
-- Edit the ORIGNAL .chs file instead!


{-# LINE 1 "./Graphics/UI/Gtk/WebKit/DOM/Location.chs" #-}
module Graphics.UI.Gtk.WebKit.DOM.Location
       (locationGetOrigin,
        locationGetAncestorOrigins,
        Location, LocationClass, castToLocation, gTypeLocation, toLocation) where
import System.Glib.FFI
import System.Glib.UTFString
import Control.Applicative
import Graphics.UI.Gtk.WebKit.Types
{-# LINE 10 "./Graphics/UI/Gtk/WebKit/DOM/Location.chs" #-}
import System.Glib.GError
import Graphics.UI.Gtk.WebKit.DOM.EventM
 
locationGetOrigin ::
                  (LocationClass self, GlibString string) => self -> IO string
locationGetOrigin self
  = ((\(Location arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_location_get_origin argPtr1) (toLocation self)) >>=
      readUTFString
 
locationGetAncestorOrigins ::
                           (LocationClass self) => self -> IO (Maybe DOMStringList)
locationGetAncestorOrigins self
  = maybeNull (makeNewGObject mkDOMStringList)
      ((\(Location arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_location_get_ancestor_origins argPtr1)
{-# LINE 25 "./Graphics/UI/Gtk/WebKit/DOM/Location.chs" #-}
         (toLocation self))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Location.h webkit_dom_location_get_origin"
  webkit_dom_location_get_origin :: ((Ptr Location) -> (IO (Ptr CChar)))

foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/Location.h webkit_dom_location_get_ancestor_origins"
  webkit_dom_location_get_ancestor_origins :: ((Ptr Location) -> (IO (Ptr DOMStringList)))