Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(388)

Unified Diff: ppapi/cpp/module.cc

Issue 7471006: Revert 93223 - Reland http://codereview.chromium.org/7452002/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/cpp/instance.cc ('k') | ppapi/examples/2d/graphics_2d_example.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/module.cc
===================================================================
--- ppapi/cpp/module.cc (revision 93228)
+++ 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
};
« no previous file with comments | « ppapi/cpp/instance.cc ('k') | ppapi/examples/2d/graphics_2d_example.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698