|
Shaka Player Embedded
|
#include <character_data.h>
Public Member Functions | |
| CharacterData (NodeType type, RefPtr< Document > document) | |
| CharacterData (NodeType type, RefPtr< Document > document, const std::string &data) | |
| optional< std::string > | NodeValue () const override |
| optional< std::string > | TextContent () const override |
| size_t | length () const |
| std::string | data () const |
| void | SetData (const std::string &data) |
Public Member Functions inherited from shaka::js::dom::Node | |
| Node (NodeType type, RefPtr< Document > document) | |
| void | Trace (memory::HeapTracer *tracer) const override |
| bool | IsShortLived () const override |
| RefPtr< Document > | document () const |
| RefPtr< Node > | parent_node () const |
| std::vector< RefPtr< Node > > | child_nodes () const |
| NodeType | node_type () const |
| virtual std::string | node_name () const =0 |
| RefPtr< Node > | first_child () const |
| RefPtr< Node > | last_child () const |
| RefPtr< Node > | AppendChild (RefPtr< Node > new_child) |
| RefPtr< Node > | RemoveChild (RefPtr< Node > to_remove) |
| bool | is_document () const |
| bool | is_element () const |
| bool | is_char_data () const |
Public Member Functions inherited from shaka::js::events::EventTarget | |
| EventTarget () | |
| void | Trace (memory::HeapTracer *tracer) const override |
| void | AddEventListener (const std::string &type, Listener callback) |
| void | SetCppEventListener (EventType type, std::function< void()> callback) |
| void | RemoveEventListener (const std::string &type, Listener callback) |
| void | UnsetCppEventListener (EventType type) |
| ExceptionOr< bool > | DispatchEvent (RefPtr< Event > event) |
| ExceptionOr< bool > | DispatchEventInternal (RefPtr< Event > event, bool *did_listeners_throw) |
| template<typename EventType , typename... Args> | |
| std::shared_ptr< ThreadEvent< bool > > | ScheduleEvent (Args &&... args) |
| template<typename EventType , typename... Args> | |
| ExceptionOr< bool > | RaiseEvent (Args... args) |
Public Member Functions inherited from shaka::BackingObject | |
| BackingObject () | |
| void | Trace (memory::HeapTracer *tracer) const override |
| bool | IsRootedAlive () const override |
| std::string | name () const |
| virtual BackingObjectFactoryBase * | factory () const =0 |
| bool | DerivedFrom (const std::string &base) |
| ReturnVal< JsValue > | JsThis () const |
| void | SetJsThis (Handle< JsObject > this_) |
Public Member Functions inherited from shaka::memory::Traceable | |
| virtual | ~Traceable () |
Implements the CharacterData interface for DOM. https://dom.spec.whatwg.org/#characterdata
Definition at line 31 of file character_data.h.
Definition at line 25 of file character_data.cc.
| shaka::js::dom::CharacterData::CharacterData | ( | NodeType | type, |
| RefPtr< Document > | document, | ||
| const std::string & | data | ||
| ) |
Definition at line 28 of file character_data.cc.
|
inline |
Definition at line 45 of file character_data.h.
|
inline |
Definition at line 42 of file character_data.h.
|
overridevirtual |
Implements shaka::js::dom::Node.
Definition at line 36 of file character_data.cc.
| void shaka::js::dom::CharacterData::SetData | ( | const std::string & | data | ) |
Definition at line 44 of file character_data.cc.
|
overridevirtual |
Implements shaka::js::dom::Node.
Definition at line 40 of file character_data.cc.
1.8.13