diff options
Diffstat (limited to 'ui/aura/root_window_host.h')
-rw-r--r-- | ui/aura/root_window_host.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/aura/root_window_host.h b/ui/aura/root_window_host.h index c88097d..1c77565 100644 --- a/ui/aura/root_window_host.h +++ b/ui/aura/root_window_host.h @@ -54,9 +54,14 @@ class RootWindowHost : public MessageLoop::Dispatcher { // Returns the location of the RootWindow on native screen. virtual gfx::Point GetLocationOnNativeScreen() const = 0; - // Sets the currently displayed cursor. + // Sets the currently displayed cursor. Shows the cursor by default. + // If you want to update hidden cursor, should call ShowCursor(false) + // after this function. virtual void SetCursor(gfx::NativeCursor cursor) = 0; + // Sets current cursor visibility to |show|. + virtual void ShowCursor(bool show) = 0; + // Queries the mouse's current position relative to the host window. // The position is constrained within the host window. // You should probably call RootWindow::last_mouse_location() instead; this |