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

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

Issue 15088: Add support for custom cursors set by windowless plugins. Windowless plugins... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 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 | « webkit/glue/chrome_client_impl.cc ('k') | webkit/glue/plugins/webplugin_delegate_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/webplugin_delegate_impl.h
===================================================================
--- webkit/glue/plugins/webplugin_delegate_impl.h (revision 7750)
+++ webkit/glue/plugins/webplugin_delegate_impl.h (working copy)
@@ -93,6 +93,7 @@
PLUGIN_QUIRK_DONT_ALLOW_MULTIPLE_INSTANCES = 16,
PLUGIN_QUIRK_DIE_AFTER_UNLOAD = 32,
PLUGIN_QUIRK_PATCH_TRACKPOPUP_MENU = 64,
+ PLUGIN_QUIRK_PATCH_SETCURSOR = 128,
};
int quirks() { return quirks_; }
@@ -264,18 +265,24 @@
// The plugin module handle.
HMODULE plugin_module_handle_;
- // Indicates whether we IAT patched the TrackPopupMenu function.
- static bool track_popup_menu_patched_;
+ // Helper object for patching the TrackPopupMenu API
+ static iat_patch::IATPatchFunction iat_patch_track_popup_menu_;
- // Helper object for patching the import table of Silverlight.
- static iat_patch::IATPatchFunction iat_patch_helper_;
-
// TrackPopupMenu interceptor. Parameters are the same as the Win32 function
// TrackPopupMenu.
static BOOL WINAPI TrackPopupMenuPatch(HMENU menu, unsigned int flags, int x,
int y, int reserved, HWND window,
const RECT* rect);
+ // SetCursor interceptor for windowless plugins.
+ static HCURSOR WINAPI SetCursorPatch(HCURSOR cursor);
+
+ // Helper object for patching the SetCursor API
+ static iat_patch::IATPatchFunction iat_patch_set_cursor_;
+
+ // Holds the current cursor set by the windowless plugin.
+ WebCursor current_windowless_cursor_;
+
DISALLOW_EVIL_CONSTRUCTORS(WebPluginDelegateImpl);
};
« no previous file with comments | « webkit/glue/chrome_client_impl.cc ('k') | webkit/glue/plugins/webplugin_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698