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

Unified Diff: webkit/plugins/ppapi/ppapi_plugin_instance.h

Issue 8413021: Add functions to generate input events to PPB_Testing_Dev. These make (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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
Index: webkit/plugins/ppapi/ppapi_plugin_instance.h
===================================================================
--- webkit/plugins/ppapi/ppapi_plugin_instance.h (revision 110829)
+++ webkit/plugins/ppapi/ppapi_plugin_instance.h (working copy)
@@ -58,6 +58,7 @@
}
namespace ppapi {
+struct InputEventData;
struct PPP_Instance_Combined;
class Resource;
}
@@ -244,14 +245,15 @@
// In normal state, events come from webkit and painting goes back to it.
// In fullscreen state, events come from the fullscreen container, and
// painting goes back to it.
- // In pending state, events from webkit are ignored, and as soon as we receive
- // events from the fullscreen container, we go to the fullscreen state.
+ // In pending state, events from webkit are ignored, and as soon as we
+ // receive events from the fullscreen container, we go to the fullscreen
+ // state.
bool FlashIsFullscreenOrPending();
// Switches between fullscreen and normal mode. If |delay_report| is set to
// false, it may report the new state through DidChangeView immediately. If
- // true, it will delay it. When called from the plugin, delay_report should be
- // true to avoid re-entrancy.
+ // true, it will delay it. When called from the plugin, delay_report should
+ // be true to avoid re-entrancy.
void FlashSetFullscreen(bool fullscreen, bool delay_report);
FullscreenContainer* fullscreen_container() const {
@@ -288,16 +290,20 @@
PluginDelegate::PlatformContext3D* CreateContext3D();
- // Returns true iff the plugin is a full-page plugin (i.e. not in an iframe or
- // embedded in a page).
+ // Returns true iff the plugin is a full-page plugin (i.e. not in an iframe
+ // or embedded in a page).
bool IsFullPagePlugin() const;
void OnLockMouseACK(int32_t result);
void OnMouseLockLost();
+ // Simulates an input event to the plugin by passing it down to WebKit,
+ // which sends it back up to the plugin as if it came from the user.
+ void SimulateInputEvent(const ::ppapi::InputEventData& input_event);
+
// FunctionGroupBase overrides.
- virtual ::ppapi::thunk::PPB_Instance_FunctionAPI* AsPPB_Instance_FunctionAPI()
- OVERRIDE;
+ virtual ::ppapi::thunk::PPB_Instance_FunctionAPI*
+ AsPPB_Instance_FunctionAPI() OVERRIDE;
// PPB_Instance_FunctionAPI implementation.
virtual PP_Bool BindGraphics(PP_Instance instance,

Powered by Google App Engine
This is Rietveld 408576698