ghcjs-dom-javascript-0.10.0.0: src/GHCJS/DOM/JSFFI/Generated/PerformanceObserverEntryList.hs
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE ForeignFunctionInterface, JavaScriptFFI #-}
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- | Generated by dom-gen from performance-timeline (webref). Do not edit.
module GHCJS.DOM.JSFFI.Generated.PerformanceObserverEntryList
(js_getEntries, js_getEntriesByName, js_getEntriesByType, getEntries, getEntries_, getEntriesByName, getEntriesByName_, getEntriesByType, getEntriesByType_, PerformanceObserverEntryList(..), gTypePerformanceObserverEntryList)
where
import Prelude ((.), (==), (>>=), (<$>), (++), Bool(..), Maybe(..), IO, Int, Word, Double, Float)
import qualified Prelude as P
import Control.Monad (void)
import GHCJS.Types (JSVal, JSString)
import GHCJS.Foreign (jsUndefined, jsNull)
import GHCJS.DOM.Types
import qualified GHCJS.DOM.Types as Types
import GHCJS.DOM.EventTargetClosures (EventName, unsafeEventName, unsafeEventNameAsync)
import GHCJS.DOM.JSFFI.Generated.Enums
foreign import javascript safe "(($1) => { return $1[\"getEntries\"](); })"
js_getEntries :: PerformanceObserverEntryList -> IO JSVal
-- | <https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntries MDN PerformanceObserverEntryList.getEntries documentation>
getEntries :: (MonadDOM m) => PerformanceObserverEntryList -> m [PerformanceEntry]
getEntries self = liftDOM (((js_getEntries (self)) >>= fromJSValUnchecked))
-- | <https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntries MDN PerformanceObserverEntryList.getEntries documentation>
getEntries_ :: (MonadDOM m) => PerformanceObserverEntryList -> m ()
getEntries_ self = liftDOM (void ((js_getEntries (self))))
foreign import javascript safe "(($1, $2, $3) => { return $1[\"getEntriesByName\"]($2, $3); })"
js_getEntriesByName :: PerformanceObserverEntryList -> JSString -> (Optional JSString) -> IO JSVal
-- | <https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName MDN PerformanceObserverEntryList.getEntriesByName documentation>
getEntriesByName :: (MonadDOM m, ToJSString name, ToJSString type') => PerformanceObserverEntryList -> name -> Maybe type' -> m [PerformanceEntry]
getEntriesByName self name type' = liftDOM (((js_getEntriesByName (self) (toJSString name) (toOptionalJSString type')) >>= fromJSValUnchecked))
-- | <https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName MDN PerformanceObserverEntryList.getEntriesByName documentation>
getEntriesByName_ :: (MonadDOM m, ToJSString name, ToJSString type') => PerformanceObserverEntryList -> name -> Maybe type' -> m ()
getEntriesByName_ self name type' = liftDOM (void ((js_getEntriesByName (self) (toJSString name) (toOptionalJSString type'))))
foreign import javascript safe "(($1, $2) => { return $1[\"getEntriesByType\"]($2); })"
js_getEntriesByType :: PerformanceObserverEntryList -> JSString -> IO JSVal
-- | <https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType MDN PerformanceObserverEntryList.getEntriesByType documentation>
getEntriesByType :: (MonadDOM m, ToJSString type') => PerformanceObserverEntryList -> type' -> m [PerformanceEntry]
getEntriesByType self type' = liftDOM (((js_getEntriesByType (self) (toJSString type')) >>= fromJSValUnchecked))
-- | <https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType MDN PerformanceObserverEntryList.getEntriesByType documentation>
getEntriesByType_ :: (MonadDOM m, ToJSString type') => PerformanceObserverEntryList -> type' -> m ()
getEntriesByType_ self type' = liftDOM (void ((js_getEntriesByType (self) (toJSString type'))))