Shaka Player Embedded
|
#include <callback.h>
Public Member Functions | |
Callback () | |
~Callback () override | |
Callback (const Callback &) | |
Callback (Callback &&) | |
Callback & | operator= (const Callback &) |
Callback & | operator= (Callback &&) |
bool | empty () const |
bool | operator== (const Callback &other) const |
bool | operator!= (const Callback &other) const |
template<typename... Args> | |
void | operator() (Args &&... args) const |
template<typename T , typename... Args> | |
MUST_USE_RESULT ExceptionOr< void > | CallWithThis (T &&that, Args &&... args) const |
bool | TryConvert (Handle< JsValue > given) override |
ReturnVal< JsValue > | ToJsValue () const override |
void | Trace (memory::HeapTracer *tracer) const override |
![]() | |
virtual | ~GenericConverter () |
![]() | |
virtual | ~Traceable () |
virtual bool | IsRootedAlive () const |
virtual bool | IsShortLived () const |
Static Public Member Functions | |
static std::string | name () |
Additional Inherited Members | |
![]() | |
static constexpr const uint64_t | kShortLiveDurationMs = 5000 |
Defines a helper type that is used to store and call JavaScript functions.
This defines a call operator that will call the function and swallow exceptions, printing the stack trace in the debug log if one is thrown. This also defines a named function to call the JavaScript function and return any exception instead.
Definition at line 38 of file callback.h.
shaka::Callback::Callback | ( | ) |
Definition at line 21 of file callback.cc.
|
override |
Definition at line 22 of file callback.cc.
|
default |
|
default |
|
inline |
Definition at line 74 of file callback.h.
|
inline |
Definition at line 52 of file callback.h.
|
inlinestatic |
Definition at line 40 of file callback.h.
|
inline |
Definition at line 59 of file callback.h.
|
inline |
Definition at line 64 of file callback.h.
|
inline |
Definition at line 56 of file callback.h.
|
overridevirtual |
Converts the current value into a JavaScript value.
Implements shaka::GenericConverter.
Definition at line 36 of file callback.cc.
|
overridevirtual |
Called during a GC run. This should call HeapTracer::Trace on all Traceable members. Be sure to call the base method when overriding.
Implements shaka::memory::Traceable.
Definition at line 40 of file callback.cc.
|
overridevirtual |
Tries to convert the given value into the required type, populating the members of this object as needed.
Implements shaka::GenericConverter.
Definition at line 29 of file callback.cc.