module JSDOM.Generated.CommandLineAPIHost
(clearConsoleMessages, copyText, inspect, inspectedObject,
inspectedObject_, getEventListeners, getEventListeners_,
databaseId, databaseId_, storageId, storageId_,
CommandLineAPIHost(..), gTypeCommandLineAPIHost)
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)
import JSDOM.Enums
clearConsoleMessages :: (MonadDOM m) => CommandLineAPIHost -> m ()
clearConsoleMessages self
= liftDOM (void (self ^. jsf "clearConsoleMessages" ()))
copyText ::
(MonadDOM m, ToJSString text) => CommandLineAPIHost -> text -> m ()
copyText self text
= liftDOM (void (self ^. jsf "copyText" [toJSVal text]))
inspect ::
(MonadDOM m, ToJSVal objectId, ToJSVal hints) =>
CommandLineAPIHost -> objectId -> hints -> m ()
inspect self objectId hints
= liftDOM
(void (self ^. jsf "inspect" [toJSVal objectId, toJSVal hints]))
inspectedObject :: (MonadDOM m) => CommandLineAPIHost -> m JSVal
inspectedObject self
= liftDOM ((self ^. jsf "inspectedObject" ()) >>= toJSVal)
inspectedObject_ :: (MonadDOM m) => CommandLineAPIHost -> m ()
inspectedObject_ self
= liftDOM (void (self ^. jsf "inspectedObject" ()))
getEventListeners ::
(MonadDOM m, IsNode node) => CommandLineAPIHost -> node -> m Array
getEventListeners self node
= liftDOM
((self ^. jsf "getEventListeners" [toJSVal node]) >>=
fromJSValUnchecked)
getEventListeners_ ::
(MonadDOM m, IsNode node) => CommandLineAPIHost -> node -> m ()
getEventListeners_ self node
= liftDOM (void (self ^. jsf "getEventListeners" [toJSVal node]))
databaseId ::
(MonadDOM m, ToJSVal database, FromJSString result) =>
CommandLineAPIHost -> database -> m result
databaseId self database
= liftDOM
((self ^. jsf "databaseId" [toJSVal database]) >>=
fromJSValUnchecked)
databaseId_ ::
(MonadDOM m, ToJSVal database) =>
CommandLineAPIHost -> database -> m ()
databaseId_ self database
= liftDOM (void (self ^. jsf "databaseId" [toJSVal database]))
storageId ::
(MonadDOM m, ToJSVal storage, FromJSString result) =>
CommandLineAPIHost -> storage -> m result
storageId self storage
= liftDOM
((self ^. jsf "storageId" [toJSVal storage]) >>=
fromJSValUnchecked)
storageId_ ::
(MonadDOM m, ToJSVal storage) =>
CommandLineAPIHost -> storage -> m ()
storageId_ self storage
= liftDOM (void (self ^. jsf "storageId" [toJSVal storage]))