#if (defined(ghcjs_HOST_OS) && defined(USE_JAVASCRIPTFFI)) || !defined(USE_WEBKIT)
module GHCJS.DOM.Location
(ghcjs_dom_location_get_origin, locationGetOrigin,
ghcjs_dom_location_get_ancestor_origins,
locationGetAncestorOrigins, Location, IsLocation, castToLocation,
gTypeLocation, toLocation)
where
import GHCJS.Types
import GHCJS.Foreign
import GHCJS.Marshal
import Data.Int
import Data.Word
import GHCJS.DOM.Types
import Control.Applicative ((<$>))
import GHCJS.DOM.EventM
foreign import javascript unsafe "$1[\"origin\"]"
ghcjs_dom_location_get_origin :: JSRef Location -> IO JSString
locationGetOrigin ::
(IsLocation self, FromJSString result) => self -> IO result
locationGetOrigin self
= fromJSString <$>
(ghcjs_dom_location_get_origin (unLocation (toLocation self)))
foreign import javascript unsafe "$1[\"ancestorOrigins\"]"
ghcjs_dom_location_get_ancestor_origins ::
JSRef Location -> IO (JSRef DOMStringList)
locationGetAncestorOrigins ::
(IsLocation self) => self -> IO (Maybe DOMStringList)
locationGetAncestorOrigins self
= fmap DOMStringList . maybeJSNull <$>
(ghcjs_dom_location_get_ancestor_origins
(unLocation (toLocation self)))
#else
module GHCJS.DOM.Location (
module Graphics.UI.Gtk.WebKit.DOM.Location
) where
import Graphics.UI.Gtk.WebKit.DOM.Location
#endif