webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Static Public Member Functions | List of all members
WebCore::TextEvent Class Referencefinal

#include <TextEvent.h>

Inheritance diagram for WebCore::TextEvent:
WebCore::UIEvent WebCore::UIEvent WebCore::Event WebCore::Event WebCore::Event WebCore::Event WTF::RefCounted< Event > WebCore::ScriptWrappable WTF::RefCounted< Event > WebCore::ScriptWrappable WTF::RefCounted< Event > WebCore::ScriptWrappable WTF::RefCounted< Event > WebCore::ScriptWrappable WTF::RefCounted< Event > WebCore::ScriptWrappable WTF::RefCounted< Event > WebCore::ScriptWrappable WTF::RefCounted< Event > WebCore::ScriptWrappable WTF::RefCounted< Event > WebCore::ScriptWrappable

Public Member Functions

virtual ~TextEvent ()
 
WEBCORE_EXPORT void initTextEvent (const AtomicString &type, bool canBubble, bool cancelable, DOMWindow *, const String &data)
 
String data () const
 
EventInterface eventInterface () const override
 
bool isLineBreak () const
 
bool isComposition () const
 
bool isBackTab () const
 
bool isPaste () const
 
bool isDrop () const
 
bool isDictation () const
 
bool isAutocompletion () const
 
bool isKeyboard () const
 
bool shouldSmartReplace () const
 
bool shouldMatchStyle () const
 
MailBlockquoteHandling mailBlockquoteHandling () const
 
DocumentFragmentpastingFragment () const
 
const Vector< DictationAlternative > & dictationAlternatives () const
 
virtual ~TextEvent ()
 
WEBCORE_EXPORT void initTextEvent (const AtomicString &type, bool canBubble, bool cancelable, DOMWindow *, const String &data)
 
String data () const
 
EventInterface eventInterface () const override
 
bool isLineBreak () const
 
bool isComposition () const
 
bool isBackTab () const
 
bool isPaste () const
 
bool isDrop () const
 
bool isDictation () const
 
bool isAutocompletion () const
 
bool isKeyboard () const
 
bool shouldSmartReplace () const
 
bool shouldMatchStyle () const
 
MailBlockquoteHandling mailBlockquoteHandling () const
 
DocumentFragmentpastingFragment () const
 
const Vector< DictationAlternative > & dictationAlternatives () const
 
- Public Member Functions inherited from WebCore::UIEvent
virtual ~UIEvent ()
 
WEBCORE_EXPORT void initUIEvent (const AtomicString &type, bool canBubble, bool cancelable, DOMWindow *, int detail)
 
DOMWindowview () const
 
int detail () const
 
virtual int layerX ()
 
virtual int layerY ()
 
virtual int pageX () const
 
virtual int pageY () const
 
virtual int which () const
 
virtual ~UIEvent ()
 
WEBCORE_EXPORT void initUIEvent (const AtomicString &type, bool canBubble, bool cancelable, DOMWindow *, int detail)
 
DOMWindowview () const
 
int detail () const
 
EventInterface eventInterface () const override
 
virtual int layerX ()
 
virtual int layerY ()
 
virtual int pageX () const
 
virtual int pageY () const
 
virtual int which () const
 
- Public Member Functions inherited from WebCore::Event
virtual ~Event ()
 
WEBCORE_EXPORT void initEvent (const AtomicString &type, bool canBubble, bool cancelable)
 
bool isInitialized () const
 
const AtomicStringtype () const
 
void setType (const AtomicString &type)
 
EventTargettarget () const
 
void setTarget (RefPtr< EventTarget > &&)
 
EventTargetcurrentTarget () const
 
void setCurrentTarget (EventTarget *)
 
unsigned short eventPhase () const
 
void setEventPhase (unsigned short eventPhase)
 
bool bubbles () const
 
bool cancelable () const
 
WEBCORE_EXPORT bool composed () const
 
DOMTimeStamp timeStamp () const
 
void setEventPath (const EventPath &path)
 
void clearEventPath ()
 
Vector< EventTarget * > composedPath () const
 
void stopPropagation ()
 
void stopImmediatePropagation ()
 
bool isTrusted () const
 
void setUntrusted ()
 
EventTargetsrcElement () const
 
bool legacyReturnValue () const
 
void setLegacyReturnValue (bool returnValue)
 
virtual bool isMouseEvent () const
 
virtual bool isFocusEvent () const
 
virtual bool isKeyboardEvent () const
 
virtual bool isInputEvent () const
 
virtual bool isCompositionEvent () const
 
virtual bool isTouchEvent () const
 
virtual bool isClipboardEvent () const
 
virtual bool isBeforeTextInsertedEvent () const
 
virtual bool isBeforeUnloadEvent () const
 
virtual bool isErrorEvent () const
 
virtual bool isWheelEvent () const
 
bool propagationStopped () const
 
bool immediatePropagationStopped () const
 
void resetPropagationFlags ()
 
bool defaultPrevented () const
 
void preventDefault ()
 
void setDefaultPrevented (bool defaultPrevented)
 
bool defaultHandled () const
 
void setDefaultHandled ()
 
void setInPassiveListener (bool value)
 
bool cancelBubble () const
 
void setCancelBubble (bool)
 
EventunderlyingEvent () const
 
void setUnderlyingEvent (Event *)
 
bool isBeingDispatched () const
 
virtual EventTargetrelatedTarget () const
 
virtual ~Event ()
 
WEBCORE_EXPORT void initEvent (const AtomicString &type, bool canBubble, bool cancelable)
 
bool isInitialized () const
 
const AtomicStringtype () const
 
void setType (const AtomicString &type)
 
EventTargettarget () const
 
void setTarget (RefPtr< EventTarget > &&)
 
EventTargetcurrentTarget () const
 
void setCurrentTarget (EventTarget *)
 
unsigned short eventPhase () const
 
void setEventPhase (unsigned short eventPhase)
 
bool bubbles () const
 
bool cancelable () const
 
WEBCORE_EXPORT bool composed () const
 
DOMTimeStamp timeStamp () const
 
void setEventPath (const EventPath &path)
 
void clearEventPath ()
 
Vector< EventTarget * > composedPath () const
 
void stopPropagation ()
 
void stopImmediatePropagation ()
 
bool isTrusted () const
 
void setUntrusted ()
 
EventTargetsrcElement () const
 
bool legacyReturnValue () const
 
void setLegacyReturnValue (bool returnValue)
 
virtual bool isMouseEvent () const
 
virtual bool isFocusEvent () const
 
virtual bool isKeyboardEvent () const
 
virtual bool isInputEvent () const
 
virtual bool isCompositionEvent () const
 
virtual bool isTouchEvent () const
 
virtual bool isClipboardEvent () const
 
virtual bool isBeforeTextInsertedEvent () const
 
virtual bool isBeforeUnloadEvent () const
 
virtual bool isErrorEvent () const
 
virtual bool isWheelEvent () const
 
bool propagationStopped () const
 
bool immediatePropagationStopped () const
 
void resetPropagationFlags ()
 
bool defaultPrevented () const
 
void preventDefault ()
 
void setDefaultPrevented (bool defaultPrevented)
 
bool defaultHandled () const
 
void setDefaultHandled ()
 
void setInPassiveListener (bool value)
 
bool cancelBubble () const
 
void setCancelBubble (bool)
 
EventunderlyingEvent () const
 
void setUnderlyingEvent (Event *)
 
bool isBeingDispatched () const
 
virtual EventTargetrelatedTarget () const
 
- Public Member Functions inherited from WebCore::ScriptWrappable
JSDOMObjectwrapper () const
 
void setWrapper (JSDOMObject *, JSC::WeakHandleOwner *, void *)
 
void clearWrapper (JSDOMObject *)
 
JSDOMObjectwrapper () const
 
void setWrapper (JSDOMObject *, JSC::WeakHandleOwner *, void *)
 
void clearWrapper (JSDOMObject *)
 
- Public Member Functions inherited from WTF::RefCounted< Event >
void deref () const
 
void deref () const
 
void deref () const
 
- Public Member Functions inherited from WTF::RefCountedBase
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
void relaxAdoptionRequirement ()
 
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
void relaxAdoptionRequirement ()
 
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
void relaxAdoptionRequirement ()
 

Static Public Member Functions

static Ref< TextEventcreate (DOMWindow *, const String &data, TextEventInputType=TextEventInputKeyboard)
 
static Ref< TextEventcreateForBindings ()
 
static Ref< TextEventcreateForPlainTextPaste (DOMWindow *, const String &data, bool shouldSmartReplace)
 
static Ref< TextEventcreateForFragmentPaste (DOMWindow *, RefPtr< DocumentFragment > &&data, bool shouldSmartReplace, bool shouldMatchStyle, MailBlockquoteHandling)
 
static Ref< TextEventcreateForDrop (DOMWindow *, const String &data)
 
static Ref< TextEventcreateForDictation (DOMWindow *, const String &data, const Vector< DictationAlternative > &dictationAlternatives)
 
static Ref< TextEventcreate (DOMWindow *, const String &data, TextEventInputType=TextEventInputKeyboard)
 
static Ref< TextEventcreateForBindings ()
 
static Ref< TextEventcreateForPlainTextPaste (DOMWindow *, const String &data, bool shouldSmartReplace)
 
static Ref< TextEventcreateForFragmentPaste (DOMWindow *, RefPtr< DocumentFragment > &&data, bool shouldSmartReplace, bool shouldMatchStyle, MailBlockquoteHandling)
 
static Ref< TextEventcreateForDrop (DOMWindow *, const String &data)
 
static Ref< TextEventcreateForDictation (DOMWindow *, const String &data, const Vector< DictationAlternative > &dictationAlternatives)
 
- Static Public Member Functions inherited from WebCore::UIEvent
static Ref< UIEventcreate (const AtomicString &type, bool canBubble, bool cancelable, DOMWindow *view, int detail)
 
static Ref< UIEventcreateForBindings ()
 
static Ref< UIEventcreate (const AtomicString &type, const UIEventInit &initializer, IsTrusted isTrusted=IsTrusted::No)
 
static Ref< UIEventcreate (const AtomicString &type, bool canBubble, bool cancelable, DOMWindow *view, int detail)
 
static Ref< UIEventcreateForBindings ()
 
static Ref< UIEventcreate (const AtomicString &type, const UIEventInit &initializer, IsTrusted isTrusted=IsTrusted::No)
 
- Static Public Member Functions inherited from WebCore::Event
static Ref< Eventcreate (const AtomicString &type, bool canBubble, bool cancelable)
 
static Ref< EventcreateForBindings ()
 
static Ref< Eventcreate (const AtomicString &type, const EventInit &initializer, IsTrusted isTrusted=IsTrusted::No)
 
static Ref< Eventcreate (const AtomicString &type, bool canBubble, bool cancelable)
 
static Ref< EventcreateForBindings ()
 
static Ref< Eventcreate (const AtomicString &type, const EventInit &initializer, IsTrusted isTrusted=IsTrusted::No)
 
- Static Public Member Functions inherited from WebCore::ScriptWrappable
template<typename Derived >
static ptrdiff_t offsetOfWrapper ()
 
template<typename Derived >
static ptrdiff_t offsetOfWrapper ()
 

Additional Inherited Members

- Public Types inherited from WebCore::Event
enum  IsTrusted { IsTrusted::No, IsTrusted::Yes, IsTrusted::No, IsTrusted::Yes }
 
enum  PhaseType {
  NONE = 0, CAPTURING_PHASE = 1, AT_TARGET = 2, BUBBLING_PHASE = 3,
  NONE = 0, CAPTURING_PHASE = 1, AT_TARGET = 2, BUBBLING_PHASE = 3
}
 
enum  IsTrusted { IsTrusted::No, IsTrusted::Yes, IsTrusted::No, IsTrusted::Yes }
 
enum  PhaseType {
  NONE = 0, CAPTURING_PHASE = 1, AT_TARGET = 2, BUBBLING_PHASE = 3,
  NONE = 0, CAPTURING_PHASE = 1, AT_TARGET = 2, BUBBLING_PHASE = 3
}
 
- Protected Member Functions inherited from WebCore::UIEvent
 UIEvent ()
 
 UIEvent (const AtomicString &type, bool canBubble, bool cancelable, DOMWindow *, int detail)
 
 UIEvent (const AtomicString &type, bool canBubble, bool cancelable, double timestamp, DOMWindow *, int detail)
 
 UIEvent (const AtomicString &, const UIEventInit &, IsTrusted)
 
 UIEvent ()
 
 UIEvent (const AtomicString &type, bool canBubble, bool cancelable, DOMWindow *, int detail)
 
 UIEvent (const AtomicString &type, bool canBubble, bool cancelable, double timestamp, DOMWindow *, int detail)
 
 UIEvent (const AtomicString &, const UIEventInit &, IsTrusted)
 
- Protected Member Functions inherited from WebCore::Event
 Event (IsTrusted=IsTrusted::No)
 
WEBCORE_EXPORT Event (const AtomicString &type, bool canBubble, bool cancelable)
 
 Event (const AtomicString &type, bool canBubble, bool cancelable, double timestamp)
 
 Event (const AtomicString &type, const EventInit &, IsTrusted)
 
virtual void receivedTarget ()
 
bool dispatched () const
 
 Event (IsTrusted=IsTrusted::No)
 
WEBCORE_EXPORT Event (const AtomicString &type, bool canBubble, bool cancelable)
 
 Event (const AtomicString &type, bool canBubble, bool cancelable, double timestamp)
 
 Event (const AtomicString &type, const EventInit &, IsTrusted)
 
virtual void receivedTarget ()
 
bool dispatched () const
 
- Protected Member Functions inherited from WebCore::ScriptWrappable
 ~ScriptWrappable ()
 
 ~ScriptWrappable ()
 
- Protected Member Functions inherited from WTF::RefCounted< Event >
 RefCounted ()
 
 RefCounted ()
 
 RefCounted ()
 
 ~RefCounted ()
 
 ~RefCounted ()
 
 ~RefCounted ()
 
- Protected Member Functions inherited from WTF::RefCountedBase
 RefCountedBase ()
 
 ~RefCountedBase ()
 
bool derefBase () const
 
bool deletionHasBegun () const
 
 RefCountedBase ()
 
 ~RefCountedBase ()
 
bool derefBase () const
 
bool deletionHasBegun () const
 
 RefCountedBase ()
 
 ~RefCountedBase ()
 
bool derefBase () const
 
bool deletionHasBegun () const
 

Constructor & Destructor Documentation

◆ ~TextEvent() [1/2]

TextEvent::~TextEvent ( )
virtual

◆ ~TextEvent() [2/2]

virtual WebCore::TextEvent::~TextEvent ( )
virtual

Member Function Documentation

◆ create() [1/2]

Ref< TextEvent > TextEvent::create ( DOMWindow view,
const String data,
TextEventInputType  inputType = TextEventInputKeyboard 
)
static

◆ create() [2/2]

static Ref<TextEvent> WebCore::TextEvent::create ( DOMWindow ,
const String data,
TextEventInputType  = TextEventInputKeyboard 
)
static

◆ createForBindings() [1/2]

Ref< TextEvent > TextEvent::createForBindings ( )
static

◆ createForBindings() [2/2]

static Ref<TextEvent> WebCore::TextEvent::createForBindings ( )
static

◆ createForDictation() [1/2]

Ref< TextEvent > TextEvent::createForDictation ( DOMWindow view,
const String data,
const Vector< DictationAlternative > &  dictationAlternatives 
)
static

◆ createForDictation() [2/2]

static Ref<TextEvent> WebCore::TextEvent::createForDictation ( DOMWindow ,
const String data,
const Vector< DictationAlternative > &  dictationAlternatives 
)
static

◆ createForDrop() [1/2]

Ref< TextEvent > TextEvent::createForDrop ( DOMWindow view,
const String data 
)
static

◆ createForDrop() [2/2]

static Ref<TextEvent> WebCore::TextEvent::createForDrop ( DOMWindow ,
const String data 
)
static

◆ createForFragmentPaste() [1/2]

Ref< TextEvent > TextEvent::createForFragmentPaste ( DOMWindow view,
RefPtr< DocumentFragment > &&  data,
bool  shouldSmartReplace,
bool  shouldMatchStyle,
MailBlockquoteHandling  mailBlockquoteHandling 
)
static

◆ createForFragmentPaste() [2/2]

static Ref<TextEvent> WebCore::TextEvent::createForFragmentPaste ( DOMWindow ,
RefPtr< DocumentFragment > &&  data,
bool  shouldSmartReplace,
bool  shouldMatchStyle,
MailBlockquoteHandling   
)
static

◆ createForPlainTextPaste() [1/2]

Ref< TextEvent > TextEvent::createForPlainTextPaste ( DOMWindow view,
const String data,
bool  shouldSmartReplace 
)
static

◆ createForPlainTextPaste() [2/2]

static Ref<TextEvent> WebCore::TextEvent::createForPlainTextPaste ( DOMWindow ,
const String data,
bool  shouldSmartReplace 
)
static

◆ data() [1/2]

String WebCore::TextEvent::data ( ) const
inline

◆ data() [2/2]

String WebCore::TextEvent::data ( ) const
inline

◆ dictationAlternatives() [1/2]

const Vector<DictationAlternative>& WebCore::TextEvent::dictationAlternatives ( ) const
inline

◆ dictationAlternatives() [2/2]

const Vector<DictationAlternative>& WebCore::TextEvent::dictationAlternatives ( ) const
inline

◆ eventInterface() [1/2]

EventInterface TextEvent::eventInterface ( ) const
overridevirtual

Reimplemented from WebCore::Event.

◆ eventInterface() [2/2]

EventInterface WebCore::TextEvent::eventInterface ( ) const
overridevirtual

Reimplemented from WebCore::UIEvent.

◆ initTextEvent() [1/2]

void TextEvent::initTextEvent ( const AtomicString type,
bool  canBubble,
bool  cancelable,
DOMWindow view,
const String data 
)

◆ initTextEvent() [2/2]

WEBCORE_EXPORT void WebCore::TextEvent::initTextEvent ( const AtomicString type,
bool  canBubble,
bool  cancelable,
DOMWindow ,
const String data 
)

◆ isAutocompletion() [1/2]

bool WebCore::TextEvent::isAutocompletion ( ) const
inline

◆ isAutocompletion() [2/2]

bool WebCore::TextEvent::isAutocompletion ( ) const
inline

◆ isBackTab() [1/2]

bool WebCore::TextEvent::isBackTab ( ) const
inline

◆ isBackTab() [2/2]

bool WebCore::TextEvent::isBackTab ( ) const
inline

◆ isComposition() [1/2]

bool WebCore::TextEvent::isComposition ( ) const
inline

◆ isComposition() [2/2]

bool WebCore::TextEvent::isComposition ( ) const
inline

◆ isDictation() [1/2]

bool WebCore::TextEvent::isDictation ( ) const
inline

◆ isDictation() [2/2]

bool WebCore::TextEvent::isDictation ( ) const
inline

◆ isDrop() [1/2]

bool WebCore::TextEvent::isDrop ( ) const
inline

◆ isDrop() [2/2]

bool WebCore::TextEvent::isDrop ( ) const
inline

◆ isKeyboard() [1/2]

bool WebCore::TextEvent::isKeyboard ( ) const
inline

◆ isKeyboard() [2/2]

bool WebCore::TextEvent::isKeyboard ( ) const
inline

◆ isLineBreak() [1/2]

bool WebCore::TextEvent::isLineBreak ( ) const
inline

◆ isLineBreak() [2/2]

bool WebCore::TextEvent::isLineBreak ( ) const
inline

◆ isPaste() [1/2]

bool WebCore::TextEvent::isPaste ( ) const
inline

◆ isPaste() [2/2]

bool WebCore::TextEvent::isPaste ( ) const
inline

◆ mailBlockquoteHandling() [1/2]

MailBlockquoteHandling WebCore::TextEvent::mailBlockquoteHandling ( ) const
inline

◆ mailBlockquoteHandling() [2/2]

MailBlockquoteHandling WebCore::TextEvent::mailBlockquoteHandling ( ) const
inline

◆ pastingFragment() [1/2]

DocumentFragment* WebCore::TextEvent::pastingFragment ( ) const
inline

◆ pastingFragment() [2/2]

DocumentFragment* WebCore::TextEvent::pastingFragment ( ) const
inline

◆ shouldMatchStyle() [1/2]

bool WebCore::TextEvent::shouldMatchStyle ( ) const
inline

◆ shouldMatchStyle() [2/2]

bool WebCore::TextEvent::shouldMatchStyle ( ) const
inline

◆ shouldSmartReplace() [1/2]

bool WebCore::TextEvent::shouldSmartReplace ( ) const
inline

◆ shouldSmartReplace() [2/2]

bool WebCore::TextEvent::shouldSmartReplace ( ) const
inline

The documentation for this class was generated from the following files: