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

Side by Side Diff: ui/aura/root_window_host_linux.h

Issue 9463003: aura-x11: Add custom web cursor support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: x custom cursor cache 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ 5 #ifndef UI_AURA_ROOT_WINDOW_HOST_LINUX_H_
6 #define UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ 6 #define UI_AURA_ROOT_WINDOW_HOST_LINUX_H_
7 #pragma once 7 #pragma once
8 8
9 #include <X11/Xlib.h> 9 #include <X11/Xlib.h>
10 10
(...skipping 20 matching lines...) Expand all
31 virtual void SetRootWindow(RootWindow* root_window) OVERRIDE; 31 virtual void SetRootWindow(RootWindow* root_window) OVERRIDE;
32 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; 32 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE;
33 virtual void Show() OVERRIDE; 33 virtual void Show() OVERRIDE;
34 virtual void ToggleFullScreen() OVERRIDE; 34 virtual void ToggleFullScreen() OVERRIDE;
35 virtual gfx::Size GetSize() const OVERRIDE; 35 virtual gfx::Size GetSize() const OVERRIDE;
36 virtual void SetSize(const gfx::Size& size) OVERRIDE; 36 virtual void SetSize(const gfx::Size& size) OVERRIDE;
37 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; 37 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE;
38 virtual void SetCapture() OVERRIDE; 38 virtual void SetCapture() OVERRIDE;
39 virtual void ReleaseCapture() OVERRIDE; 39 virtual void ReleaseCapture() OVERRIDE;
40 virtual void SetCursor(gfx::NativeCursor cursor_type) OVERRIDE; 40 virtual void SetCursor(gfx::NativeCursor cursor_type) OVERRIDE;
41 virtual void SetCustomCursor(const gfx::PlatformCursor& cursor) OVERRIDE;
41 virtual void ShowCursor(bool show) OVERRIDE; 42 virtual void ShowCursor(bool show) OVERRIDE;
42 virtual gfx::Point QueryMouseLocation() OVERRIDE; 43 virtual gfx::Point QueryMouseLocation() OVERRIDE;
43 virtual bool ConfineCursorToRootWindow() OVERRIDE; 44 virtual bool ConfineCursorToRootWindow() OVERRIDE;
44 virtual void UnConfineCursor() OVERRIDE; 45 virtual void UnConfineCursor() OVERRIDE;
45 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; 46 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE;
46 virtual void PostNativeEvent(const base::NativeEvent& event) OVERRIDE; 47 virtual void PostNativeEvent(const base::NativeEvent& event) OVERRIDE;
47 virtual MessageLoop::Dispatcher* GetDispatcher() OVERRIDE; 48 virtual MessageLoop::Dispatcher* GetDispatcher() OVERRIDE;
48 49
49 // MessageLoop::DestructionObserver Overrides. 50 // MessageLoop::DestructionObserver Overrides.
50 virtual void WillDestroyCurrentMessageLoop() OVERRIDE; 51 virtual void WillDestroyCurrentMessageLoop() OVERRIDE;
(...skipping 12 matching lines...) Expand all
63 // The display and the native X window hosting the root window. 64 // The display and the native X window hosting the root window.
64 Display* xdisplay_; 65 Display* xdisplay_;
65 ::Window xwindow_; 66 ::Window xwindow_;
66 67
67 // The native root window. 68 // The native root window.
68 ::Window x_root_window_; 69 ::Window x_root_window_;
69 70
70 // Current Aura cursor. 71 // Current Aura cursor.
71 gfx::NativeCursor current_cursor_; 72 gfx::NativeCursor current_cursor_;
72 73
74 // Current custom platform cursor.
75 gfx::PlatformCursor custom_cursor_;
76
73 // Is the cursor currently shown? 77 // Is the cursor currently shown?
74 bool cursor_shown_; 78 bool cursor_shown_;
75 79
76 // The invisible cursor. 80 // The invisible cursor.
77 ::Cursor invisible_cursor_; 81 ::Cursor invisible_cursor_;
78 82
79 // The bounds of |xwindow_|. 83 // The bounds of |xwindow_|.
80 gfx::Rect bounds_; 84 gfx::Rect bounds_;
81 85
82 DISALLOW_COPY_AND_ASSIGN(RootWindowHostLinux); 86 DISALLOW_COPY_AND_ASSIGN(RootWindowHostLinux);
83 }; 87 };
84 88
85 } // namespace aura 89 } // namespace aura
86 90
87 #endif // UI_AURA_ROOT_WINDOW_HOST_LINUX_H_ 91 #endif // UI_AURA_ROOT_WINDOW_HOST_LINUX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698