#include <event.h>
Definition at line 31 of file event.h.
§ EventPhase
| Enumerator |
|---|
| NONE | |
| CAPTURING_PHASE | |
| AT_TARGET | |
| BUBBLING_PHASE | |
Definition at line 38 of file event.h.
§ Event() [1/2]
| shaka::js::events::Event::Event |
( |
const std::string & |
type | ) |
|
|
explicitprotected |
§ Event() [2/2]
| shaka::js::events::Event::Event |
( |
EventType |
type | ) |
|
|
explicit |
§ Create()
| static Event* shaka::js::events::Event::Create |
( |
const std::string & |
type | ) |
|
|
inlinestatic |
§ is_immediate_stopped()
| bool shaka::js::events::Event::is_immediate_stopped |
( |
| ) |
const |
|
inline |
§ is_stopped()
| bool shaka::js::events::Event::is_stopped |
( |
| ) |
const |
|
inline |
§ IsShortLived()
| bool shaka::js::events::Event::IsShortLived |
( |
| ) |
const |
|
overridevirtual |
Gets whether the object is considered short-lived. This means that once the C++ ref-count is zero, the object won't remain alive for long. It is important to only set this if the JavaScript object won't be used for long.
This exists for JSC which doesn't offer a way for us to track whether a JavaScript object is still alive. If the JavaScript object is used after the backing object is destroyed, then a JavaScript exception will be thrown.
Reimplemented from shaka::memory::Traceable.
Definition at line 43 of file event.cc.
§ PreventDefault()
| void shaka::js::events::Event::PreventDefault |
( |
| ) |
|
§ StopImmediatePropagation()
| void shaka::js::events::Event::StopImmediatePropagation |
( |
| ) |
|
§ StopPropagation()
| void shaka::js::events::Event::StopPropagation |
( |
| ) |
|
§ Trace()
§ bubbles
| const bool shaka::js::events::Event::bubbles = false |
§ cancelable
| const bool shaka::js::events::Event::cancelable = false |
§ current_target
§ default_prevented
| bool shaka::js::events::Event::default_prevented = false |
§ event_phase
| int shaka::js::events::Event::event_phase = NONE |
§ is_trusted
| const bool shaka::js::events::Event::is_trusted = false |
§ target
§ time_stamp
| const double shaka::js::events::Event::time_stamp |
§ type
| const std::string shaka::js::events::Event::type |
The documentation for this class was generated from the following files: