| Index: ppapi/cpp/module.cc
|
| ===================================================================
|
| --- ppapi/cpp/module.cc (revision 93207)
|
| +++ ppapi/cpp/module.cc (working copy)
|
| @@ -110,6 +110,17 @@
|
| instance->DidChangeFocus(PP_ToBool(has_focus));
|
| }
|
|
|
| +PP_Bool Instance_HandleInputEvent(PP_Instance pp_instance,
|
| + const PP_InputEvent* event) {
|
| + Module* module_singleton = Module::Get();
|
| + if (!module_singleton)
|
| + return PP_FALSE;
|
| + Instance* instance = module_singleton->InstanceForPPInstance(pp_instance);
|
| + if (!instance)
|
| + return PP_FALSE;
|
| + return PP_FromBool(instance->HandleInputEvent(*event));
|
| +}
|
| +
|
| PP_Bool Instance_HandleDocumentLoad(PP_Instance pp_instance,
|
| PP_Resource pp_url_loader) {
|
| Module* module_singleton = Module::Get();
|
| @@ -126,6 +137,7 @@
|
| &Instance_DidDestroy,
|
| &Instance_DidChangeView,
|
| &Instance_DidChangeFocus,
|
| + &Instance_HandleInputEvent,
|
| &Instance_HandleDocumentLoad
|
| };
|
|
|
|
|