{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module JSDOM.Generated.PerformanceResourceTiming
(getInitiatorType, getNextHopProtocol, getWorkerStart,
getRedirectStart, getRedirectEnd, getFetchStart,
getDomainLookupStart, getDomainLookupEnd, getConnectStart,
getConnectEnd, getSecureConnectionStart, getRequestStart,
getResponseStart, getResponseEnd, PerformanceResourceTiming(..),
gTypePerformanceResourceTiming)
where
import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))
import qualified Prelude (error)
import Data.Typeable (Typeable)
import Data.Traversable (mapM)
import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, asyncFunction, new, array, jsUndefined, (!), (!!))
import Data.Int (Int64)
import Data.Word (Word, Word64)
import JSDOM.Types
import Control.Applicative ((<$>))
import Control.Monad (void)
import Control.Lens.Operators ((^.))
import JSDOM.EventTargetClosures (EventName, unsafeEventName, unsafeEventNameAsync)
import JSDOM.Enums
getInitiatorType ::
(MonadDOM m, FromJSString result) =>
PerformanceResourceTiming -> m result
getInitiatorType self
= liftDOM ((self ^. js "initiatorType") >>= fromJSValUnchecked)
getNextHopProtocol ::
(MonadDOM m, FromJSString result) =>
PerformanceResourceTiming -> m result
getNextHopProtocol self
= liftDOM ((self ^. js "nextHopProtocol") >>= fromJSValUnchecked)
getWorkerStart ::
(MonadDOM m) => PerformanceResourceTiming -> m DOMHighResTimeStamp
getWorkerStart self
= liftDOM ((self ^. js "workerStart") >>= fromJSValUnchecked)
getRedirectStart ::
(MonadDOM m) => PerformanceResourceTiming -> m DOMHighResTimeStamp
getRedirectStart self
= liftDOM ((self ^. js "redirectStart") >>= fromJSValUnchecked)
getRedirectEnd ::
(MonadDOM m) => PerformanceResourceTiming -> m DOMHighResTimeStamp
getRedirectEnd self
= liftDOM ((self ^. js "redirectEnd") >>= fromJSValUnchecked)
getFetchStart ::
(MonadDOM m) => PerformanceResourceTiming -> m DOMHighResTimeStamp
getFetchStart self
= liftDOM ((self ^. js "fetchStart") >>= fromJSValUnchecked)
getDomainLookupStart ::
(MonadDOM m) => PerformanceResourceTiming -> m DOMHighResTimeStamp
getDomainLookupStart self
= liftDOM ((self ^. js "domainLookupStart") >>= fromJSValUnchecked)
getDomainLookupEnd ::
(MonadDOM m) => PerformanceResourceTiming -> m DOMHighResTimeStamp
getDomainLookupEnd self
= liftDOM ((self ^. js "domainLookupEnd") >>= fromJSValUnchecked)
getConnectStart ::
(MonadDOM m) => PerformanceResourceTiming -> m DOMHighResTimeStamp
getConnectStart self
= liftDOM ((self ^. js "connectStart") >>= fromJSValUnchecked)
getConnectEnd ::
(MonadDOM m) => PerformanceResourceTiming -> m DOMHighResTimeStamp
getConnectEnd self
= liftDOM ((self ^. js "connectEnd") >>= fromJSValUnchecked)
getSecureConnectionStart ::
(MonadDOM m) => PerformanceResourceTiming -> m DOMHighResTimeStamp
getSecureConnectionStart self
= liftDOM
((self ^. js "secureConnectionStart") >>= fromJSValUnchecked)
getRequestStart ::
(MonadDOM m) => PerformanceResourceTiming -> m DOMHighResTimeStamp
getRequestStart self
= liftDOM ((self ^. js "requestStart") >>= fromJSValUnchecked)
getResponseStart ::
(MonadDOM m) => PerformanceResourceTiming -> m DOMHighResTimeStamp
getResponseStart self
= liftDOM ((self ^. js "responseStart") >>= fromJSValUnchecked)
getResponseEnd ::
(MonadDOM m) => PerformanceResourceTiming -> m DOMHighResTimeStamp
getResponseEnd self
= liftDOM ((self ^. js "responseEnd") >>= fromJSValUnchecked)