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

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

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 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_H_ 5 #ifndef UI_AURA_ROOT_WINDOW_HOST_H_
6 #define UI_AURA_ROOT_WINDOW_HOST_H_ 6 #define UI_AURA_ROOT_WINDOW_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "ui/aura/cursor.h" 10 #include "ui/aura/cursor.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 // Sets the OS capture to the root window. 61 // Sets the OS capture to the root window.
62 virtual void SetCapture() = 0; 62 virtual void SetCapture() = 0;
63 63
64 // Releases OS capture of the root window. 64 // Releases OS capture of the root window.
65 virtual void ReleaseCapture() = 0; 65 virtual void ReleaseCapture() = 0;
66 66
67 // Sets the currently displayed cursor. 67 // Sets the currently displayed cursor.
68 virtual void SetCursor(gfx::NativeCursor cursor) = 0; 68 virtual void SetCursor(gfx::NativeCursor cursor) = 0;
69 69
70 // Sets a custom cursor.
71 virtual void SetCustomCursor(const gfx::PlatformCursor& cursor) = 0;
72
70 // Shows or hides the cursor. 73 // Shows or hides the cursor.
71 virtual void ShowCursor(bool show) = 0; 74 virtual void ShowCursor(bool show) = 0;
72 75
73 // Queries the mouse's current position relative to the host window. 76 // Queries the mouse's current position relative to the host window.
74 // The position is constrained within the host window. 77 // The position is constrained within the host window.
75 // You should probably call RootWindow::last_mouse_location() instead; this 78 // You should probably call RootWindow::last_mouse_location() instead; this
76 // method can be expensive. 79 // method can be expensive.
77 virtual gfx::Point QueryMouseLocation() = 0; 80 virtual gfx::Point QueryMouseLocation() = 0;
78 81
79 // Clips the cursor to the bounds of the root window until UnConfineCursor(). 82 // Clips the cursor to the bounds of the root window until UnConfineCursor().
(...skipping 10 matching lines...) Expand all
90 #if !defined(OS_WIN) 93 #if !defined(OS_WIN)
91 // See documentation for RootWindow::GetDispatcher(). 94 // See documentation for RootWindow::GetDispatcher().
92 virtual MessageLoop::Dispatcher* GetDispatcher() = 0; 95 virtual MessageLoop::Dispatcher* GetDispatcher() = 0;
93 #endif 96 #endif
94 #endif 97 #endif
95 }; 98 };
96 99
97 } // namespace aura 100 } // namespace aura
98 101
99 #endif // UI_AURA_ROOT_WINDOW_HOST_H_ 102 #endif // UI_AURA_ROOT_WINDOW_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698