#include <OffscreenGecko/embedding.h>
Public Member Functions | |
Embedding (WrappedType *obj) | |
Embedding (EmbeddingOptions &opt, OSGK_GeckoResult &result) | |
Create a new embedding object. | |
Embedding (EmbeddingOptions &opt) | |
Create a new embedding object. | |
Embedding (OSGK_GeckoResult &result) | |
Create a new embedding object. | |
Embedding () | |
Create a new embedding object. | |
ComponentMgr | GetComponentMgr () |
Get Gecko component manager wrapper. | |
nsIComponentManager * | GetGeckoComponentManager () |
Get interface for actual Gecko component manager. | |
nsIComponentRegistrar * | GetGeckoComponentRegistrar () |
Get interface for actual Gecko component registrar. | |
GeckoMem | GetGeckoMem () |
Get Gecko memory allocator object. | |
nsIServiceManager * | GetGeckoServiceManager () |
Get interface for actual Gecko service manager. | |
Embedding & | operator= (const Embedding &other) |
bool | RegisterJSGlobal (const char *name, const char *contractID, unsigned int flags, String &previous, OSGK_GeckoResult &geckoResult) |
Register a global object for JavaScript scripting. | |
bool | RegisterJSGlobal (const char *name, const char *contractID, unsigned int flags, OSGK_GeckoResult &geckoResult) |
Register a global object for JavaScript scripting. | |
bool | RegisterJSGlobal (const char *name, const char *contractID, unsigned int flags, String &previous) |
Register a global object for JavaScript scripting. | |
bool | RegisterJSGlobal (const char *name, const char *contractID, unsigned int flags) |
Register a global object for JavaScript scripting. | |
Focus helpers | |
void | ClearFocus () |
Clear focus so no browser is focused. | |
bool | GetAutoFocus () |
Get whether auto-focus is enabled. | |
void | SetAutoFocus (bool autoFocus) |
Enable/disables "auto-focus". |
OSGK::Embedding::Embedding | ( | ) | [inline] |
Create a new embedding object.
OSGK::Embedding::Embedding | ( | OSGK_GeckoResult & | result | ) | [inline] |
Create a new embedding object.
result | Returns the result code from Gecko. Can be 0. |
OSGK::Embedding::Embedding | ( | EmbeddingOptions & | opt | ) | [inline] |
Create a new embedding object.
opt | A set of options for the embedding to be created. |
OSGK::Embedding::Embedding | ( | EmbeddingOptions & | opt, | |
OSGK_GeckoResult & | result | |||
) | [inline] |
Create a new embedding object.
opt | A set of options for the embedding to be created. | |
result | Returns the result code from Gecko. Can be 0. |
OSGK::Embedding::Embedding | ( | WrappedType * | obj | ) | [inline, explicit] |
void OSGK::Embedding::ClearFocus | ( | ) | [inline] |
Clear focus so no browser is focused.
Proper clearing of focus is needed for some things such as e.g. preventing caret displaying.
bool OSGK::Embedding::GetAutoFocus | ( | ) | [inline] |
Get whether auto-focus is enabled.
ComponentMgr OSGK::Embedding::GetComponentMgr | ( | ) | [inline] |
Get Gecko component manager wrapper.
nsIComponentManager* OSGK::Embedding::GetGeckoComponentManager | ( | ) | [inline] |
Get interface for actual Gecko component manager.
nsIComponentRegistrar* OSGK::Embedding::GetGeckoComponentRegistrar | ( | ) | [inline] |
Get interface for actual Gecko component registrar.
GeckoMem OSGK::Embedding::GetGeckoMem | ( | ) | [inline] |
Get Gecko memory allocator object.
nsIServiceManager* OSGK::Embedding::GetGeckoServiceManager | ( | ) | [inline] |
Get interface for actual Gecko service manager.
bool OSGK::Embedding::RegisterJSGlobal | ( | const char * | name, | |
const char * | contractID, | |||
unsigned int | flags, | |||
String & | previous, | |||
OSGK_GeckoResult & | geckoResult | |||
) | [inline] |
Register a global object for JavaScript scripting.
name | Identifier of the global object. | |
contractID | Contract ID used to instantiate the object. | |
flags | Registration flags. | |
previous | Receives a previously registered contract ID for the given identifier. | |
geckoResult | Receives the Gecko result code for the registration. |
bool OSGK::Embedding::RegisterJSGlobal | ( | const char * | name, | |
const char * | contractID, | |||
unsigned int | flags, | |||
OSGK_GeckoResult & | geckoResult | |||
) | [inline] |
Register a global object for JavaScript scripting.
name | Identifier of the global object. | |
contractID | Contract ID used to instantiate the object. | |
flags | Registration flags. | |
geckoResult | Receives the Gecko result code for the registration. |
bool OSGK::Embedding::RegisterJSGlobal | ( | const char * | name, | |
const char * | contractID, | |||
unsigned int | flags, | |||
String & | previous | |||
) | [inline] |
Register a global object for JavaScript scripting.
name | Identifier of the global object. | |
contractID | Contract ID used to instantiate the object. | |
flags | Registration flags. | |
previous | Receives a previously registered contract ID for the given identifier. |
bool OSGK::Embedding::RegisterJSGlobal | ( | const char * | name, | |
const char * | contractID, | |||
unsigned int | flags | |||
) | [inline] |
Register a global object for JavaScript scripting.
name | Identifier of the global object. | |
contractID | Contract ID used to instantiate the object. | |
flags | Registration flags. |
void OSGK::Embedding::SetAutoFocus | ( | bool | autoFocus | ) | [inline] |
Enable/disables "auto-focus".
Auto-focus means that a browser object will get focus as soon as any event is sent to it. Proper focus handling is needed for some things such as e.g. caret handling; automatically giving the focus to a browser object receiving an event is usually a sufficient strategy to prevent oddities arising from wrong or lacking focus handling without burdening you, the user, too much. Auto-focus is by default on.
autoFocus | Whether to enable or disable the auto-focus feature. |