Shaka Player Embedded
|
#include <container_node.h>
Public Member Functions | |
ContainerNode (NodeType type, RefPtr< Document > document) | |
virtual std::vector< RefPtr< Element > > | GetElementsByTagName (const std::string &name) const |
ExceptionOr< RefPtr< Element > > | QuerySelector (const std::string &query) const |
![]() | |
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 |
virtual optional< std::string > | NodeValue () const =0 |
virtual optional< std::string > | TextContent () 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 |
![]() | |
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) |
![]() | |
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_) |
![]() | |
virtual | ~Traceable () |
Defines a Node that has children. This defines a common base class between Element and Document.
This also implements the ParentNode mixin: https://dom.spec.whatwg.org/#parentnode
Definition at line 38 of file container_node.h.
Definition at line 38 of file container_node.cc.
|
virtual |
Reimplemented in shaka::js::dom::Document.
Definition at line 45 of file container_node.cc.
ExceptionOr< RefPtr< Element > > shaka::js::dom::ContainerNode::QuerySelector | ( | const std::string & | query | ) | const |
Definition at line 63 of file container_node.cc.