void ChromeClient::setCursor(const WebCore::Cursor& cursor) { HCURSOR platformCursor = cursor.platformCursor()->nativeCursor(); if (!platformCursor) return; ::SetCursor(platformCursor); }
void WebView::setCursor(const WebCore::Cursor& cursor) { HCURSOR platformCursor = cursor.platformCursor()->nativeCursor(); if (!platformCursor) return; m_lastCursorSet = platformCursor; ::SetCursor(platformCursor); }
void PageClientImpl::setCursor(const WebCore::Cursor& cursor) { if (!gtk_widget_get_realized(m_viewWidget)) return; // [GTK] Widget::setCursor() gets called frequently // http://bugs.webkit.org/show_bug.cgi?id=16388 // Setting the cursor may be an expensive operation in some backends, // so don't re-set the cursor if it's already set to the target value. GdkWindow* window = gtk_widget_get_window(m_viewWidget); GdkCursor* currentCursor = gdk_window_get_cursor(window); GdkCursor* newCursor = cursor.platformCursor().get(); if (currentCursor != newCursor) gdk_window_set_cursor(window, newCursor); }
void QRawWebViewPrivate::setCursor(const WebCore::Cursor& cursor) { m_client->viewRequestedCursorOverride(*cursor.platformCursor()); }
void QtPageClient::setCursor(const WebCore::Cursor& cursor) { // FIXME: This is a temporary fix until we get cursor support in QML items. QGuiApplication::setOverrideCursor(*cursor.platformCursor()); }
void QWKPagePrivate::setCursor(const WebCore::Cursor& cursor) { #ifndef QT_NO_CURSOR emit q->cursorChanged(*cursor.platformCursor()); #endif }