summaryrefslogtreecommitdiffstats
path: root/webkit/glue/chrome_client_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/chrome_client_impl.cc')
-rw-r--r--webkit/glue/chrome_client_impl.cc16
1 files changed, 15 insertions, 1 deletions
diff --git a/webkit/glue/chrome_client_impl.cc b/webkit/glue/chrome_client_impl.cc
index b7cc3ae..471eb14 100644
--- a/webkit/glue/chrome_client_impl.cc
+++ b/webkit/glue/chrome_client_impl.cc
@@ -57,7 +57,8 @@ ChromeClientImpl::ChromeClientImpl(WebViewImpl* webview)
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::popupOpened(WebCore::FramelessScrollView* popup_view,
}
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)