packages feed

ghcjs-dom-javascript-0.10.0.0: src/GHCJS/DOM/JSFFI/Generated/SecurityPolicyViolationEventInit.hs

{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE ForeignFunctionInterface, JavaScriptFFI #-}
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- | Generated by dom-gen from CSP3 (webref). Do not edit.
module GHCJS.DOM.JSFFI.Generated.SecurityPolicyViolationEventInit
       (js_newSecurityPolicyViolationEventInit, js_setDocumentURI, js_getDocumentURI, js_setReferrer, js_getReferrer, js_setBlockedURI, js_getBlockedURI, js_setViolatedDirective, js_getViolatedDirective, js_setEffectiveDirective, js_getEffectiveDirective, js_setOriginalPolicy, js_getOriginalPolicy, js_setSourceFile, js_getSourceFile, js_setSample, js_getSample, js_setDisposition, js_getDisposition, js_setStatusCode, js_getStatusCode, js_setLineNumber, js_getLineNumber, js_setColumnNumber, js_getColumnNumber, newSecurityPolicyViolationEventInit, setDocumentURI, getDocumentURI, getDocumentURIUnsafe, getDocumentURIUnchecked, setReferrer, getReferrer, getReferrerUnsafe, getReferrerUnchecked, setBlockedURI, getBlockedURI, getBlockedURIUnsafe, getBlockedURIUnchecked, setViolatedDirective, getViolatedDirective, getViolatedDirectiveUnsafe, getViolatedDirectiveUnchecked, setEffectiveDirective, getEffectiveDirective, getEffectiveDirectiveUnsafe, getEffectiveDirectiveUnchecked, setOriginalPolicy, getOriginalPolicy, getOriginalPolicyUnsafe, getOriginalPolicyUnchecked, setSourceFile, getSourceFile, getSourceFileUnsafe, getSourceFileUnchecked, setSample, getSample, getSampleUnsafe, getSampleUnchecked, setDisposition, getDisposition, getDispositionUnsafe, getDispositionUnchecked, setStatusCode, getStatusCode, getStatusCodeUnsafe, getStatusCodeUnchecked, setLineNumber, getLineNumber, getLineNumberUnsafe, getLineNumberUnchecked, setColumnNumber, getColumnNumber, getColumnNumberUnsafe, getColumnNumberUnchecked, SecurityPolicyViolationEventInit(..), gTypeSecurityPolicyViolationEventInit)
       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 "(() => { return ({}); })"
        js_newSecurityPolicyViolationEventInit :: IO SecurityPolicyViolationEventInit
-- | <https://w3c.github.io/webappsec-csp/#dictdef-securitypolicyviolationeventinit SecurityPolicyViolationEventInit specification>
newSecurityPolicyViolationEventInit :: (MonadDOM m) => m SecurityPolicyViolationEventInit
newSecurityPolicyViolationEventInit = liftDOM ((js_newSecurityPolicyViolationEventInit))

foreign import javascript safe "(($1, $2) => { $1[\"documentURI\"] = $2; })"
        js_setDocumentURI :: SecurityPolicyViolationEventInit -> JSString -> IO ()
-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-documenturi SecurityPolicyViolationEventInit.documentURI specification>
setDocumentURI :: (MonadDOM m, ToJSString val) => SecurityPolicyViolationEventInit -> val -> m ()
setDocumentURI self val = liftDOM (void ((js_setDocumentURI (self) (toJSString val))))

foreign import javascript unsafe "(($1) => { return $1[\"documentURI\"]; })"
        js_getDocumentURI :: SecurityPolicyViolationEventInit -> IO JSVal
-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-documenturi SecurityPolicyViolationEventInit.documentURI specification>
getDocumentURI :: (MonadDOM m, FromJSString result) => SecurityPolicyViolationEventInit -> m (Maybe result)
getDocumentURI self = liftDOM (((fromMaybeJSString . Nullable) <$> (js_getDocumentURI (self))))

-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-documenturi SecurityPolicyViolationEventInit.documentURI specification>
getDocumentURIUnsafe :: (MonadDOM m, HasCallStack, FromJSString result) => SecurityPolicyViolationEventInit -> m result
getDocumentURIUnsafe self = liftDOM ((((fromMaybeJSString . Nullable) <$> (js_getDocumentURI (self))) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-documenturi SecurityPolicyViolationEventInit.documentURI specification>
getDocumentURIUnchecked :: (MonadDOM m, FromJSString result) => SecurityPolicyViolationEventInit -> m result
getDocumentURIUnchecked self = liftDOM ((pFromJSVal <$> (js_getDocumentURI (self))))

foreign import javascript safe "(($1, $2) => { $1[\"referrer\"] = $2; })"
        js_setReferrer :: SecurityPolicyViolationEventInit -> JSString -> IO ()
-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-referrer SecurityPolicyViolationEventInit.referrer specification>
setReferrer :: (MonadDOM m, ToJSString val) => SecurityPolicyViolationEventInit -> val -> m ()
setReferrer self val = liftDOM (void ((js_setReferrer (self) (toJSString val))))

foreign import javascript unsafe "(($1) => { return $1[\"referrer\"]; })"
        js_getReferrer :: SecurityPolicyViolationEventInit -> IO JSVal
-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-referrer SecurityPolicyViolationEventInit.referrer specification>
getReferrer :: (MonadDOM m, FromJSString result) => SecurityPolicyViolationEventInit -> m (Maybe result)
getReferrer self = liftDOM (((fromMaybeJSString . Nullable) <$> (js_getReferrer (self))))

-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-referrer SecurityPolicyViolationEventInit.referrer specification>
getReferrerUnsafe :: (MonadDOM m, HasCallStack, FromJSString result) => SecurityPolicyViolationEventInit -> m result
getReferrerUnsafe self = liftDOM ((((fromMaybeJSString . Nullable) <$> (js_getReferrer (self))) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-referrer SecurityPolicyViolationEventInit.referrer specification>
getReferrerUnchecked :: (MonadDOM m, FromJSString result) => SecurityPolicyViolationEventInit -> m result
getReferrerUnchecked self = liftDOM ((pFromJSVal <$> (js_getReferrer (self))))

foreign import javascript safe "(($1, $2) => { $1[\"blockedURI\"] = $2; })"
        js_setBlockedURI :: SecurityPolicyViolationEventInit -> JSString -> IO ()
-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-blockeduri SecurityPolicyViolationEventInit.blockedURI specification>
setBlockedURI :: (MonadDOM m, ToJSString val) => SecurityPolicyViolationEventInit -> val -> m ()
setBlockedURI self val = liftDOM (void ((js_setBlockedURI (self) (toJSString val))))

foreign import javascript unsafe "(($1) => { return $1[\"blockedURI\"]; })"
        js_getBlockedURI :: SecurityPolicyViolationEventInit -> IO JSVal
-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-blockeduri SecurityPolicyViolationEventInit.blockedURI specification>
getBlockedURI :: (MonadDOM m, FromJSString result) => SecurityPolicyViolationEventInit -> m (Maybe result)
getBlockedURI self = liftDOM (((fromMaybeJSString . Nullable) <$> (js_getBlockedURI (self))))

-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-blockeduri SecurityPolicyViolationEventInit.blockedURI specification>
getBlockedURIUnsafe :: (MonadDOM m, HasCallStack, FromJSString result) => SecurityPolicyViolationEventInit -> m result
getBlockedURIUnsafe self = liftDOM ((((fromMaybeJSString . Nullable) <$> (js_getBlockedURI (self))) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-blockeduri SecurityPolicyViolationEventInit.blockedURI specification>
getBlockedURIUnchecked :: (MonadDOM m, FromJSString result) => SecurityPolicyViolationEventInit -> m result
getBlockedURIUnchecked self = liftDOM ((pFromJSVal <$> (js_getBlockedURI (self))))

foreign import javascript safe "(($1, $2) => { $1[\"violatedDirective\"] = $2; })"
        js_setViolatedDirective :: SecurityPolicyViolationEventInit -> JSString -> IO ()
-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-violateddirective SecurityPolicyViolationEventInit.violatedDirective specification>
setViolatedDirective :: (MonadDOM m, ToJSString val) => SecurityPolicyViolationEventInit -> val -> m ()
setViolatedDirective self val = liftDOM (void ((js_setViolatedDirective (self) (toJSString val))))

foreign import javascript unsafe "(($1) => { return $1[\"violatedDirective\"]; })"
        js_getViolatedDirective :: SecurityPolicyViolationEventInit -> IO JSVal
-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-violateddirective SecurityPolicyViolationEventInit.violatedDirective specification>
getViolatedDirective :: (MonadDOM m, FromJSString result) => SecurityPolicyViolationEventInit -> m (Maybe result)
getViolatedDirective self = liftDOM (((fromMaybeJSString . Nullable) <$> (js_getViolatedDirective (self))))

-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-violateddirective SecurityPolicyViolationEventInit.violatedDirective specification>
getViolatedDirectiveUnsafe :: (MonadDOM m, HasCallStack, FromJSString result) => SecurityPolicyViolationEventInit -> m result
getViolatedDirectiveUnsafe self = liftDOM ((((fromMaybeJSString . Nullable) <$> (js_getViolatedDirective (self))) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-violateddirective SecurityPolicyViolationEventInit.violatedDirective specification>
getViolatedDirectiveUnchecked :: (MonadDOM m, FromJSString result) => SecurityPolicyViolationEventInit -> m result
getViolatedDirectiveUnchecked self = liftDOM ((pFromJSVal <$> (js_getViolatedDirective (self))))

foreign import javascript safe "(($1, $2) => { $1[\"effectiveDirective\"] = $2; })"
        js_setEffectiveDirective :: SecurityPolicyViolationEventInit -> JSString -> IO ()
-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-effectivedirective SecurityPolicyViolationEventInit.effectiveDirective specification>
setEffectiveDirective :: (MonadDOM m, ToJSString val) => SecurityPolicyViolationEventInit -> val -> m ()
setEffectiveDirective self val = liftDOM (void ((js_setEffectiveDirective (self) (toJSString val))))

foreign import javascript unsafe "(($1) => { return $1[\"effectiveDirective\"]; })"
        js_getEffectiveDirective :: SecurityPolicyViolationEventInit -> IO JSVal
-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-effectivedirective SecurityPolicyViolationEventInit.effectiveDirective specification>
getEffectiveDirective :: (MonadDOM m, FromJSString result) => SecurityPolicyViolationEventInit -> m (Maybe result)
getEffectiveDirective self = liftDOM (((fromMaybeJSString . Nullable) <$> (js_getEffectiveDirective (self))))

-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-effectivedirective SecurityPolicyViolationEventInit.effectiveDirective specification>
getEffectiveDirectiveUnsafe :: (MonadDOM m, HasCallStack, FromJSString result) => SecurityPolicyViolationEventInit -> m result
getEffectiveDirectiveUnsafe self = liftDOM ((((fromMaybeJSString . Nullable) <$> (js_getEffectiveDirective (self))) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-effectivedirective SecurityPolicyViolationEventInit.effectiveDirective specification>
getEffectiveDirectiveUnchecked :: (MonadDOM m, FromJSString result) => SecurityPolicyViolationEventInit -> m result
getEffectiveDirectiveUnchecked self = liftDOM ((pFromJSVal <$> (js_getEffectiveDirective (self))))

foreign import javascript safe "(($1, $2) => { $1[\"originalPolicy\"] = $2; })"
        js_setOriginalPolicy :: SecurityPolicyViolationEventInit -> JSString -> IO ()
-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-originalpolicy SecurityPolicyViolationEventInit.originalPolicy specification>
setOriginalPolicy :: (MonadDOM m, ToJSString val) => SecurityPolicyViolationEventInit -> val -> m ()
setOriginalPolicy self val = liftDOM (void ((js_setOriginalPolicy (self) (toJSString val))))

foreign import javascript unsafe "(($1) => { return $1[\"originalPolicy\"]; })"
        js_getOriginalPolicy :: SecurityPolicyViolationEventInit -> IO JSVal
-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-originalpolicy SecurityPolicyViolationEventInit.originalPolicy specification>
getOriginalPolicy :: (MonadDOM m, FromJSString result) => SecurityPolicyViolationEventInit -> m (Maybe result)
getOriginalPolicy self = liftDOM (((fromMaybeJSString . Nullable) <$> (js_getOriginalPolicy (self))))

-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-originalpolicy SecurityPolicyViolationEventInit.originalPolicy specification>
getOriginalPolicyUnsafe :: (MonadDOM m, HasCallStack, FromJSString result) => SecurityPolicyViolationEventInit -> m result
getOriginalPolicyUnsafe self = liftDOM ((((fromMaybeJSString . Nullable) <$> (js_getOriginalPolicy (self))) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-originalpolicy SecurityPolicyViolationEventInit.originalPolicy specification>
getOriginalPolicyUnchecked :: (MonadDOM m, FromJSString result) => SecurityPolicyViolationEventInit -> m result
getOriginalPolicyUnchecked self = liftDOM ((pFromJSVal <$> (js_getOriginalPolicy (self))))

foreign import javascript safe "(($1, $2) => { $1[\"sourceFile\"] = $2; })"
        js_setSourceFile :: SecurityPolicyViolationEventInit -> JSString -> IO ()
-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-sourcefile SecurityPolicyViolationEventInit.sourceFile specification>
setSourceFile :: (MonadDOM m, ToJSString val) => SecurityPolicyViolationEventInit -> val -> m ()
setSourceFile self val = liftDOM (void ((js_setSourceFile (self) (toJSString val))))

foreign import javascript unsafe "(($1) => { return $1[\"sourceFile\"]; })"
        js_getSourceFile :: SecurityPolicyViolationEventInit -> IO JSVal
-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-sourcefile SecurityPolicyViolationEventInit.sourceFile specification>
getSourceFile :: (MonadDOM m, FromJSString result) => SecurityPolicyViolationEventInit -> m (Maybe result)
getSourceFile self = liftDOM (((fromMaybeJSString . Nullable) <$> (js_getSourceFile (self))))

-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-sourcefile SecurityPolicyViolationEventInit.sourceFile specification>
getSourceFileUnsafe :: (MonadDOM m, HasCallStack, FromJSString result) => SecurityPolicyViolationEventInit -> m result
getSourceFileUnsafe self = liftDOM ((((fromMaybeJSString . Nullable) <$> (js_getSourceFile (self))) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-sourcefile SecurityPolicyViolationEventInit.sourceFile specification>
getSourceFileUnchecked :: (MonadDOM m, FromJSString result) => SecurityPolicyViolationEventInit -> m result
getSourceFileUnchecked self = liftDOM ((pFromJSVal <$> (js_getSourceFile (self))))

foreign import javascript safe "(($1, $2) => { $1[\"sample\"] = $2; })"
        js_setSample :: SecurityPolicyViolationEventInit -> JSString -> IO ()
-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-sample SecurityPolicyViolationEventInit.sample specification>
setSample :: (MonadDOM m, ToJSString val) => SecurityPolicyViolationEventInit -> val -> m ()
setSample self val = liftDOM (void ((js_setSample (self) (toJSString val))))

foreign import javascript unsafe "(($1) => { return $1[\"sample\"]; })"
        js_getSample :: SecurityPolicyViolationEventInit -> IO JSVal
-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-sample SecurityPolicyViolationEventInit.sample specification>
getSample :: (MonadDOM m, FromJSString result) => SecurityPolicyViolationEventInit -> m (Maybe result)
getSample self = liftDOM (((fromMaybeJSString . Nullable) <$> (js_getSample (self))))

-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-sample SecurityPolicyViolationEventInit.sample specification>
getSampleUnsafe :: (MonadDOM m, HasCallStack, FromJSString result) => SecurityPolicyViolationEventInit -> m result
getSampleUnsafe self = liftDOM ((((fromMaybeJSString . Nullable) <$> (js_getSample (self))) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-sample SecurityPolicyViolationEventInit.sample specification>
getSampleUnchecked :: (MonadDOM m, FromJSString result) => SecurityPolicyViolationEventInit -> m result
getSampleUnchecked self = liftDOM ((pFromJSVal <$> (js_getSample (self))))

foreign import javascript safe "(($1, $2) => { $1[\"disposition\"] = $2; })"
        js_setDisposition :: SecurityPolicyViolationEventInit -> JSVal -> IO ()
-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-disposition SecurityPolicyViolationEventInit.disposition specification>
setDisposition :: (MonadDOM m) => SecurityPolicyViolationEventInit -> SecurityPolicyViolationEventDisposition -> m ()
setDisposition self val = liftDOM (void (((toJSVal val) >>= \a2' -> js_setDisposition (self) a2')))

foreign import javascript unsafe "(($1) => { return $1[\"disposition\"]; })"
        js_getDisposition :: SecurityPolicyViolationEventInit -> IO JSVal
-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-disposition SecurityPolicyViolationEventInit.disposition specification>
getDisposition :: (MonadDOM m) => SecurityPolicyViolationEventInit -> m (Maybe SecurityPolicyViolationEventDisposition)
getDisposition self = liftDOM (((js_getDisposition (self)) >>= fromJSValUnchecked))

-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-disposition SecurityPolicyViolationEventInit.disposition specification>
getDispositionUnsafe :: (MonadDOM m, HasCallStack) => SecurityPolicyViolationEventInit -> m SecurityPolicyViolationEventDisposition
getDispositionUnsafe self = liftDOM ((((js_getDisposition (self)) >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-disposition SecurityPolicyViolationEventInit.disposition specification>
getDispositionUnchecked :: (MonadDOM m) => SecurityPolicyViolationEventInit -> m SecurityPolicyViolationEventDisposition
getDispositionUnchecked self = liftDOM ((pFromJSVal <$> (js_getDisposition (self))))

foreign import javascript safe "(($1, $2) => { $1[\"statusCode\"] = $2; })"
        js_setStatusCode :: SecurityPolicyViolationEventInit -> Word -> IO ()
-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-statuscode SecurityPolicyViolationEventInit.statusCode specification>
setStatusCode :: (MonadDOM m) => SecurityPolicyViolationEventInit -> Word -> m ()
setStatusCode self val = liftDOM (void ((js_setStatusCode (self) (val))))

foreign import javascript unsafe "(($1) => { return $1[\"statusCode\"]; })"
        js_getStatusCode :: SecurityPolicyViolationEventInit -> IO JSVal
-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-statuscode SecurityPolicyViolationEventInit.statusCode specification>
getStatusCode :: (MonadDOM m) => SecurityPolicyViolationEventInit -> m (Maybe Word)
getStatusCode self = liftDOM (((js_getStatusCode (self)) >>= fromJSValUnchecked))

-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-statuscode SecurityPolicyViolationEventInit.statusCode specification>
getStatusCodeUnsafe :: (MonadDOM m, HasCallStack) => SecurityPolicyViolationEventInit -> m Word
getStatusCodeUnsafe self = liftDOM ((((js_getStatusCode (self)) >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-statuscode SecurityPolicyViolationEventInit.statusCode specification>
getStatusCodeUnchecked :: (MonadDOM m) => SecurityPolicyViolationEventInit -> m Word
getStatusCodeUnchecked self = liftDOM ((pFromJSVal <$> (js_getStatusCode (self))))

foreign import javascript safe "(($1, $2) => { $1[\"lineNumber\"] = $2; })"
        js_setLineNumber :: SecurityPolicyViolationEventInit -> Word -> IO ()
-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-linenumber SecurityPolicyViolationEventInit.lineNumber specification>
setLineNumber :: (MonadDOM m) => SecurityPolicyViolationEventInit -> Word -> m ()
setLineNumber self val = liftDOM (void ((js_setLineNumber (self) (val))))

foreign import javascript unsafe "(($1) => { return $1[\"lineNumber\"]; })"
        js_getLineNumber :: SecurityPolicyViolationEventInit -> IO JSVal
-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-linenumber SecurityPolicyViolationEventInit.lineNumber specification>
getLineNumber :: (MonadDOM m) => SecurityPolicyViolationEventInit -> m (Maybe Word)
getLineNumber self = liftDOM (((js_getLineNumber (self)) >>= fromJSValUnchecked))

-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-linenumber SecurityPolicyViolationEventInit.lineNumber specification>
getLineNumberUnsafe :: (MonadDOM m, HasCallStack) => SecurityPolicyViolationEventInit -> m Word
getLineNumberUnsafe self = liftDOM ((((js_getLineNumber (self)) >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-linenumber SecurityPolicyViolationEventInit.lineNumber specification>
getLineNumberUnchecked :: (MonadDOM m) => SecurityPolicyViolationEventInit -> m Word
getLineNumberUnchecked self = liftDOM ((pFromJSVal <$> (js_getLineNumber (self))))

foreign import javascript safe "(($1, $2) => { $1[\"columnNumber\"] = $2; })"
        js_setColumnNumber :: SecurityPolicyViolationEventInit -> Word -> IO ()
-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-columnnumber SecurityPolicyViolationEventInit.columnNumber specification>
setColumnNumber :: (MonadDOM m) => SecurityPolicyViolationEventInit -> Word -> m ()
setColumnNumber self val = liftDOM (void ((js_setColumnNumber (self) (val))))

foreign import javascript unsafe "(($1) => { return $1[\"columnNumber\"]; })"
        js_getColumnNumber :: SecurityPolicyViolationEventInit -> IO JSVal
-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-columnnumber SecurityPolicyViolationEventInit.columnNumber specification>
getColumnNumber :: (MonadDOM m) => SecurityPolicyViolationEventInit -> m (Maybe Word)
getColumnNumber self = liftDOM (((js_getColumnNumber (self)) >>= fromJSValUnchecked))

-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-columnnumber SecurityPolicyViolationEventInit.columnNumber specification>
getColumnNumberUnsafe :: (MonadDOM m, HasCallStack) => SecurityPolicyViolationEventInit -> m Word
getColumnNumberUnsafe self = liftDOM ((((js_getColumnNumber (self)) >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))

-- | <https://w3c.github.io/webappsec-csp/#dom-securitypolicyviolationeventinit-columnnumber SecurityPolicyViolationEventInit.columnNumber specification>
getColumnNumberUnchecked :: (MonadDOM m) => SecurityPolicyViolationEventInit -> m Word
getColumnNumberUnchecked self = liftDOM ((pFromJSVal <$> (js_getColumnNumber (self))))