module GHCJS.DOM.JSFFI.Generated.PerformanceTiming
(js_getNavigationStart, getNavigationStart, js_getUnloadEventStart,
getUnloadEventStart, js_getUnloadEventEnd, getUnloadEventEnd,
js_getRedirectStart, getRedirectStart, js_getRedirectEnd,
getRedirectEnd, js_getFetchStart, getFetchStart,
js_getDomainLookupStart, getDomainLookupStart,
js_getDomainLookupEnd, getDomainLookupEnd, js_getConnectStart,
getConnectStart, js_getConnectEnd, getConnectEnd,
js_getSecureConnectionStart, getSecureConnectionStart,
js_getRequestStart, getRequestStart, js_getResponseStart,
getResponseStart, js_getResponseEnd, getResponseEnd,
js_getDomLoading, getDomLoading, js_getDomInteractive,
getDomInteractive, js_getDomContentLoadedEventStart,
getDomContentLoadedEventStart, js_getDomContentLoadedEventEnd,
getDomContentLoadedEventEnd, js_getDomComplete, getDomComplete,
js_getLoadEventStart, getLoadEventStart, js_getLoadEventEnd,
getLoadEventEnd, PerformanceTiming(..), gTypePerformanceTiming)
where
import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, fmap, Show, Read, Eq, Ord)
import qualified Prelude (error)
import Data.Typeable (Typeable)
import GHCJS.Types (JSVal(..), JSString)
import GHCJS.Foreign (jsNull)
import GHCJS.Foreign.Callback (syncCallback, asyncCallback, syncCallback1, asyncCallback1, syncCallback2, asyncCallback2, OnBlocked(..))
import GHCJS.Marshal (ToJSVal(..), FromJSVal(..))
import GHCJS.Marshal.Pure (PToJSVal(..), PFromJSVal(..))
import Control.Monad (void)
import Control.Monad.IO.Class (MonadIO(..))
import Data.Int (Int64)
import Data.Word (Word, Word64)
import Data.Maybe (fromJust)
import GHCJS.DOM.Types
import Control.Applicative ((<$>))
import GHCJS.DOM.EventTargetClosures (EventName, unsafeEventName)
import GHCJS.DOM.JSFFI.Generated.Enums
foreign import javascript unsafe "$1[\"navigationStart\"]"
js_getNavigationStart :: PerformanceTiming -> IO Double
getNavigationStart :: (MonadIO m) => PerformanceTiming -> m Word64
getNavigationStart self
= liftIO (round <$> (js_getNavigationStart (self)))
foreign import javascript unsafe "$1[\"unloadEventStart\"]"
js_getUnloadEventStart :: PerformanceTiming -> IO Double
getUnloadEventStart :: (MonadIO m) => PerformanceTiming -> m Word64
getUnloadEventStart self
= liftIO (round <$> (js_getUnloadEventStart (self)))
foreign import javascript unsafe "$1[\"unloadEventEnd\"]"
js_getUnloadEventEnd :: PerformanceTiming -> IO Double
getUnloadEventEnd :: (MonadIO m) => PerformanceTiming -> m Word64
getUnloadEventEnd self
= liftIO (round <$> (js_getUnloadEventEnd (self)))
foreign import javascript unsafe "$1[\"redirectStart\"]"
js_getRedirectStart :: PerformanceTiming -> IO Double
getRedirectStart :: (MonadIO m) => PerformanceTiming -> m Word64
getRedirectStart self
= liftIO (round <$> (js_getRedirectStart (self)))
foreign import javascript unsafe "$1[\"redirectEnd\"]"
js_getRedirectEnd :: PerformanceTiming -> IO Double
getRedirectEnd :: (MonadIO m) => PerformanceTiming -> m Word64
getRedirectEnd self = liftIO (round <$> (js_getRedirectEnd (self)))
foreign import javascript unsafe "$1[\"fetchStart\"]"
js_getFetchStart :: PerformanceTiming -> IO Double
getFetchStart :: (MonadIO m) => PerformanceTiming -> m Word64
getFetchStart self = liftIO (round <$> (js_getFetchStart (self)))
foreign import javascript unsafe "$1[\"domainLookupStart\"]"
js_getDomainLookupStart :: PerformanceTiming -> IO Double
getDomainLookupStart ::
(MonadIO m) => PerformanceTiming -> m Word64
getDomainLookupStart self
= liftIO (round <$> (js_getDomainLookupStart (self)))
foreign import javascript unsafe "$1[\"domainLookupEnd\"]"
js_getDomainLookupEnd :: PerformanceTiming -> IO Double
getDomainLookupEnd :: (MonadIO m) => PerformanceTiming -> m Word64
getDomainLookupEnd self
= liftIO (round <$> (js_getDomainLookupEnd (self)))
foreign import javascript unsafe "$1[\"connectStart\"]"
js_getConnectStart :: PerformanceTiming -> IO Double
getConnectStart :: (MonadIO m) => PerformanceTiming -> m Word64
getConnectStart self
= liftIO (round <$> (js_getConnectStart (self)))
foreign import javascript unsafe "$1[\"connectEnd\"]"
js_getConnectEnd :: PerformanceTiming -> IO Double
getConnectEnd :: (MonadIO m) => PerformanceTiming -> m Word64
getConnectEnd self = liftIO (round <$> (js_getConnectEnd (self)))
foreign import javascript unsafe "$1[\"secureConnectionStart\"]"
js_getSecureConnectionStart :: PerformanceTiming -> IO Double
getSecureConnectionStart ::
(MonadIO m) => PerformanceTiming -> m Word64
getSecureConnectionStart self
= liftIO (round <$> (js_getSecureConnectionStart (self)))
foreign import javascript unsafe "$1[\"requestStart\"]"
js_getRequestStart :: PerformanceTiming -> IO Double
getRequestStart :: (MonadIO m) => PerformanceTiming -> m Word64
getRequestStart self
= liftIO (round <$> (js_getRequestStart (self)))
foreign import javascript unsafe "$1[\"responseStart\"]"
js_getResponseStart :: PerformanceTiming -> IO Double
getResponseStart :: (MonadIO m) => PerformanceTiming -> m Word64
getResponseStart self
= liftIO (round <$> (js_getResponseStart (self)))
foreign import javascript unsafe "$1[\"responseEnd\"]"
js_getResponseEnd :: PerformanceTiming -> IO Double
getResponseEnd :: (MonadIO m) => PerformanceTiming -> m Word64
getResponseEnd self = liftIO (round <$> (js_getResponseEnd (self)))
foreign import javascript unsafe "$1[\"domLoading\"]"
js_getDomLoading :: PerformanceTiming -> IO Double
getDomLoading :: (MonadIO m) => PerformanceTiming -> m Word64
getDomLoading self = liftIO (round <$> (js_getDomLoading (self)))
foreign import javascript unsafe "$1[\"domInteractive\"]"
js_getDomInteractive :: PerformanceTiming -> IO Double
getDomInteractive :: (MonadIO m) => PerformanceTiming -> m Word64
getDomInteractive self
= liftIO (round <$> (js_getDomInteractive (self)))
foreign import javascript unsafe
"$1[\"domContentLoadedEventStart\"]"
js_getDomContentLoadedEventStart :: PerformanceTiming -> IO Double
getDomContentLoadedEventStart ::
(MonadIO m) => PerformanceTiming -> m Word64
getDomContentLoadedEventStart self
= liftIO (round <$> (js_getDomContentLoadedEventStart (self)))
foreign import javascript unsafe "$1[\"domContentLoadedEventEnd\"]"
js_getDomContentLoadedEventEnd :: PerformanceTiming -> IO Double
getDomContentLoadedEventEnd ::
(MonadIO m) => PerformanceTiming -> m Word64
getDomContentLoadedEventEnd self
= liftIO (round <$> (js_getDomContentLoadedEventEnd (self)))
foreign import javascript unsafe "$1[\"domComplete\"]"
js_getDomComplete :: PerformanceTiming -> IO Double
getDomComplete :: (MonadIO m) => PerformanceTiming -> m Word64
getDomComplete self = liftIO (round <$> (js_getDomComplete (self)))
foreign import javascript unsafe "$1[\"loadEventStart\"]"
js_getLoadEventStart :: PerformanceTiming -> IO Double
getLoadEventStart :: (MonadIO m) => PerformanceTiming -> m Word64
getLoadEventStart self
= liftIO (round <$> (js_getLoadEventStart (self)))
foreign import javascript unsafe "$1[\"loadEventEnd\"]"
js_getLoadEventEnd :: PerformanceTiming -> IO Double
getLoadEventEnd :: (MonadIO m) => PerformanceTiming -> m Word64
getLoadEventEnd self
= liftIO (round <$> (js_getLoadEventEnd (self)))