Pepper_47_C++_interfaces
|
The C++ interface to the Pepper API. More...
Namespaces | |
deprecated | |
ext | |
internal | |
Enumerations | |
enum | PassRef { PASS_REF } |
Functions | |
template<typename ResourceObjectType > | |
void | ConvertPPResourceArrayToObjects (PassRef, const std::vector< PP_Resource > &input, std::vector< ResourceObjectType > *output) |
CompletionCallback | BlockUntilComplete () |
PP_Bool | InputEvent_HandleEvent (PP_Instance pp_instance, PP_Resource resource) |
PP_Bool | Instance_DidCreate (PP_Instance pp_instance, uint32_t argc, const char *argn[], const char *argv[]) |
void | Instance_DidDestroy (PP_Instance instance) |
void | Instance_DidChangeView (PP_Instance pp_instance, PP_Resource view_resource) |
void | Instance_DidChangeFocus (PP_Instance pp_instance, PP_Bool has_focus) |
PP_Bool | Instance_HandleDocumentLoad (PP_Instance pp_instance, PP_Resource pp_url_loader) |
void | Messaging_HandleMessage (PP_Instance pp_instance, PP_Var var) |
pp::Module * | CreateModule () |
void | SetBrokerGetInterfaceFunc (PP_GetInterface_Func broker_get_interface) |
Variables | |
const PPP_InputEvent | input_event_interface |
static PPP_Instance | instance_interface |
static PPP_Messaging | instance_messaging_interface |
The C++ interface to the Pepper API.
The C++ interface to the Pepper API.
enum pp::PassRef |
An annotation for constructors and other functions that take ownership of a pointer. For example, a resource constructor that takes ownership of a provided PP_Resource
ref count would take this enumeration to differentiate from the more typical use case of taking its own reference.
Enumerator | |
---|---|
PASS_REF |
Definition at line 17 of file pass_ref.h.
|
inline |
BlockUntilComplete() is used in place of an actual completion callback to request blocking behavior. If specified, the calling thread will block until the function completes. Blocking completion callbacks are only allowed from background threads.
CompletionCallback
corresponding to a NULL callback. Definition at line 267 of file completion_callback.h.
|
inline |
Definition at line 27 of file array_output.h.
References PASS_REF.
Referenced by pp::ResourceArrayOutputAdapterWithStorage< T >::output(), and pp::ResourceArrayOutputAdapter< T >::~ResourceArrayOutputAdapter().
pp::Module* pp::CreateModule | ( | ) |
This function creates the pp::Module
object associated with this module.
Note: NaCl module developers must implement this function.
Referenced by PPP_InitializeModule().
PP_Bool pp::InputEvent_HandleEvent | ( | PP_Instance | pp_instance, |
PP_Resource | resource | ||
) |
Definition at line 45 of file module.cc.
References pp::Module::Get(), pp::Instance::HandleInputEvent(), and pp::Module::InstanceForPPInstance().
void pp::Instance_DidChangeFocus | ( | PP_Instance | pp_instance, |
PP_Bool | has_focus | ||
) |
Definition at line 103 of file module.cc.
References pp::Instance::DidChangeFocus(), pp::Module::Get(), and pp::Module::InstanceForPPInstance().
void pp::Instance_DidChangeView | ( | PP_Instance | pp_instance, |
PP_Resource | view_resource | ||
) |
Definition at line 92 of file module.cc.
References pp::Instance::DidChangeView(), pp::Module::Get(), and pp::Module::InstanceForPPInstance().
PP_Bool pp::Instance_DidCreate | ( | PP_Instance | pp_instance, |
uint32_t | argc, | ||
const char * | argn[], | ||
const char * | argv[] | ||
) |
Definition at line 62 of file module.cc.
References pp::Module::CreateInstance(), pp::Module::Get(), and pp::Instance::Init().
void pp::Instance_DidDestroy | ( | PP_Instance | instance | ) |
Definition at line 77 of file module.cc.
References pp::Module::Get().
PP_Bool pp::Instance_HandleDocumentLoad | ( | PP_Instance | pp_instance, |
PP_Resource | pp_url_loader | ||
) |
Definition at line 113 of file module.cc.
References pp::Module::Get(), pp::Instance::HandleDocumentLoad(), and pp::Module::InstanceForPPInstance().
void pp::Messaging_HandleMessage | ( | PP_Instance | pp_instance, |
PP_Var | var | ||
) |
Definition at line 134 of file module.cc.
References pp::Module::Get(), pp::Instance::HandleMessage(), pp::Module::InstanceForPPInstance(), and PASS_REF.
void pp::SetBrokerGetInterfaceFunc | ( | PP_GetInterface_Func | broker_get_interface | ) |
Sets the get interface function in the broker process.
This function is only relevant when you're using the PPB_Broker interface in a trusted native plugin. In this case, you may need to implement PPP_GetInterface when the plugin is loaded in the unsandboxed process. Normally the C++ wrappers implement PPP_GetInterface for you but this doesn't work in the context of the broker process. So if you need to implement PPP_* interfaces in the broker process, call this function in your PPP_InitializeBroker implementation which will set up the given function as implementing PPP_GetInterface.
Definition at line 26 of file ppp_entrypoints.cc.
References g_broker_get_interface.
const PPP_InputEvent pp::input_event_interface |
Definition at line 56 of file module.cc.
Referenced by pp::Module::GetPluginInterface().
|
static |
Definition at line 124 of file module.cc.
Referenced by pp::Module::GetPluginInterface().
|
static |
Definition at line 144 of file module.cc.
Referenced by pp::Module::GetPluginInterface().