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

Unified Diff: ui/aura/root_window_host_linux.cc

Issue 9463003: aura-x11: Add custom web cursor support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 10 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
Index: ui/aura/root_window_host_linux.cc
diff --git a/ui/aura/root_window_host_linux.cc b/ui/aura/root_window_host_linux.cc
index 57f6394bfef26de22d21c9eb358a00656ce8303b..d3da5a62e08e087c8ad1d805106a74a06f5fced7 100644
--- a/ui/aura/root_window_host_linux.cc
+++ b/ui/aura/root_window_host_linux.cc
@@ -550,6 +550,11 @@ void RootWindowHostLinux::SetCursor(gfx::NativeCursor cursor) {
SetCursorInternal(cursor);
}
+void RootWindowHostLinux::SetCustomCursor(const gfx::PlatformCursor& cursor) {
+ if (cursor_shown_)
+ XDefineCursor(xdisplay_, xwindow_, cursor);
+}
+
void RootWindowHostLinux::ShowCursor(bool show) {
if (show == cursor_shown_)
return;

Powered by Google App Engine
This is Rietveld 408576698