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

Unified Diff: webkit/glue/chrome_client_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/chrome_client_impl.h ('k') | webkit/glue/plugins/webplugin_delegate_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/chrome_client_impl.cc
===================================================================
--- webkit/glue/chrome_client_impl.cc (revision 7750)
+++ webkit/glue/chrome_client_impl.cc (working copy)
@@ -57,7 +57,8 @@
statusbar_visible_(true),
scrollbars_visible_(true),
menubar_visible_(true),
- resizable_(true) {
+ resizable_(true),
+ ignore_next_set_cursor_(false) {
}
ChromeClientImpl::~ChromeClientImpl() {
@@ -472,11 +473,24 @@
}
void ChromeClientImpl::SetCursor(const WebCursor& cursor) {
+ if (ignore_next_set_cursor_) {
+ ignore_next_set_cursor_ = false;
+ return;
+ }
+
WebViewDelegate* d = webview_->delegate();
if (d)
d->SetCursor(webview_, cursor);
}
+void ChromeClientImpl::SetCursorForPlugin(const WebCursor& cursor) {
+ SetCursor(cursor);
+ // Currently, Widget::setCursor is always called after this function in
+ // EventHandler.cpp and since we don't want that we set a flag indicating
+ // that the next SetCursor call is to be ignored.
+ ignore_next_set_cursor_ = true;
+}
+
void ChromeClientImpl::enableSuddenTermination() {
WebViewDelegate* d = webview_->delegate();
if (d)
« no previous file with comments | « webkit/glue/chrome_client_impl.h ('k') | webkit/glue/plugins/webplugin_delegate_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698