Shaka Player Embedded
|
#include <document.h>
Public Member Functions | |
Document () | |
uint64_t | created_at () const |
std::string | node_name () const override |
optional< std::string > | NodeValue () const override |
optional< std::string > | TextContent () const override |
RefPtr< Element > | DocumentElement () const |
std::vector< RefPtr< Element > > | GetElementsByTagName (const std::string &name) const override |
RefPtr< Element > | CreateElement (const std::string &name) |
RefPtr< Comment > | CreateComment (const std::string &data) |
RefPtr< Text > | CreateTextNode (const std::string &data) |
ExceptionOr< RefPtr< Attr > > | CreateAttribute (const std::string &name) |
ExceptionOr< RefPtr< Attr > > | CreateAttributeNS (const std::string &namespace_uri, const std::string &qualified_name) |
Public Member Functions inherited from shaka::js::dom::ContainerNode | |
ContainerNode (NodeType type, RefPtr< Document > document) | |
ExceptionOr< RefPtr< Element > > | QuerySelector (const std::string &query) const |
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 |
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 () |
Static Public Member Functions | |
static Document * | Create () |
static RefPtr< Document > | EnsureGlobalDocument () |
Static Public Member Functions inherited from shaka::BackingObject | |
static void * | operator new[] (size_t size)=delete |
static void | operator delete[] (void *)=delete |
Implements the Document interface for DOM. https://dom.spec.whatwg.org/#document
Definition at line 38 of file document.h.
shaka::js::dom::Document::Document | ( | ) |
Definition at line 38 of file document.cc.
|
inlinestatic |
Definition at line 44 of file document.h.
ExceptionOr< RefPtr< Attr > > shaka::js::dom::Document::CreateAttribute | ( | const std::string & | name | ) |
Definition at line 111 of file document.cc.
ExceptionOr< RefPtr< Attr > > shaka::js::dom::Document::CreateAttributeNS | ( | const std::string & | namespace_uri, |
const std::string & | qualified_name | ||
) |
Definition at line 120 of file document.cc.
Definition at line 103 of file document.cc.
|
inline |
Definition at line 53 of file document.h.
Definition at line 95 of file document.cc.
Definition at line 107 of file document.cc.
Definition at line 77 of file document.cc.
Definition at line 51 of file document.cc.
|
overridevirtual |
Reimplemented from shaka::js::dom::ContainerNode.
Definition at line 85 of file document.cc.
|
overridevirtual |
Implements shaka::js::dom::Node.
Definition at line 65 of file document.cc.
|
overridevirtual |
Implements shaka::js::dom::Node.
Definition at line 69 of file document.cc.
|
overridevirtual |
Implements shaka::js::dom::Node.
Definition at line 73 of file document.cc.