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

Unified Diff: webkit/glue/webplugin_impl.cc

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/webcursor_win.cc ('k') | webkit/tools/test_shell/test_webview_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webplugin_impl.cc
===================================================================
--- webkit/glue/webplugin_impl.cc (revision 7750)
+++ webkit/glue/webplugin_impl.cc (working copy)
@@ -895,11 +895,16 @@
WebCursor cursor;
if (!delegate_->HandleEvent(&np_event, &cursor))
event->setDefaultHandled();
+
+ ChromeClientImpl* chrome_client =
+ static_cast<ChromeClientImpl*>(
+ parent_view->frame()->page()->chrome()->client());
+
// A windowless plugin can change the cursor in response to the WM_MOUSEMOVE
// event. We need to reflect the changed cursor in the frame view as the
// mouse is moved in the boundaries of the windowless plugin.
- static_cast<ChromeClientImpl*>(
- parent_view->frame()->page()->chrome()->client())->SetCursor(cursor);
+ chrome_client->SetCursorForPlugin(cursor);
+
#else
NOTIMPLEMENTED();
#endif
« no previous file with comments | « webkit/glue/webcursor_win.cc ('k') | webkit/tools/test_shell/test_webview_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698