Shaka Player Embedded
Classes | Public Member Functions | List of all members
shaka::JsEngine Class Reference

#include <js_engine.h>

Inheritance diagram for shaka::JsEngine:
shaka::PseudoSingleton< JsEngine >

Classes

struct  SetupContext
 

Public Member Functions

 JsEngine ()
 
 ~JsEngine ()
 
Handle< JsObject > global_handle ()
 
ReturnVal< JsValue > global_value ()
 
- Public Member Functions inherited from shaka::PseudoSingleton< JsEngine >
 PseudoSingleton ()
 
 ~PseudoSingleton ()
 

Additional Inherited Members

- Static Public Member Functions inherited from shaka::PseudoSingleton< JsEngine >
static JsEngineInstance ()
 
static JsEngineInstanceOrNull ()
 

Detailed Description

Manages the global JavaScript engine. This involves initializing any global state and creating a new context that this manages. This should be the first member of JsManager::Impl to ensure the JavaScript engine is setup before anything else. This does not free the global state, only the context, allowing multiple to exist, so long as there is only one at a time.

Definition at line 38 of file js_engine.h.

Constructor & Destructor Documentation

§ JsEngine()

shaka::JsEngine::JsEngine ( )

§ ~JsEngine()

shaka::JsEngine::~JsEngine ( )

Member Function Documentation

§ global_handle()

Handle<JsObject> shaka::JsEngine::global_handle ( )

§ global_value()

ReturnVal<JsValue> shaka::JsEngine::global_value ( )

The documentation for this class was generated from the following file: