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

Unified Diff: webkit/glue/plugins/webplugin_delegate_impl.h

Issue 115330: linux: Adding events to windowless plugins on Linux (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 7 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
Index: webkit/glue/plugins/webplugin_delegate_impl.h
===================================================================
--- webkit/glue/plugins/webplugin_delegate_impl.h (revision 16673)
+++ webkit/glue/plugins/webplugin_delegate_impl.h (working copy)
@@ -53,9 +53,10 @@
virtual void Print(gfx::NativeDrawingContext context);
virtual void SetFocus(); // only called when windowless
-// only called when windowless
- virtual bool HandleEvent(NPEvent* event,
- WebCursor* cursor);
+ // only called when windowless
+ // See NPAPI NPP_HandleEvent for more information.
+ virtual bool HandleInputEvent(const WebKit::WebInputEvent& event,
+ WebCursor* cursor);
virtual NPObject* GetPluginScriptableObject();
virtual void DidFinishLoadWithReason(NPReason reason);
virtual int GetProcessId();
@@ -146,7 +147,6 @@
// See NPAPI NPP_SetWindow for more information.
void WindowlessSetWindow(bool force_set_window);
-
//-----------------------------------------
// used for windowed and windowless plugins
@@ -186,6 +186,7 @@
#if defined(OS_LINUX)
// The pixmap we're drawing into, for a windowless plugin.
GdkPixmap* pixmap_;
+ double first_event_time_;
// Ensure pixmap_ exists and is at least width by height pixels.
void EnsurePixmapAtLeastSize(int width, int height);
« no previous file with comments | « webkit/glue/plugins/test/plugin_javascript_open_popup.cc ('k') | webkit/glue/plugins/webplugin_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698