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

Unified Diff: ui/aura/root_window.h

Issue 11035050: Enable CursorManager::LockCursor to lock cursor visibility. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win_aura build Created 8 years, 2 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
« no previous file with comments | « ui/aura/remote_root_window_host_win.cc ('k') | ui/aura/root_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/root_window.h
diff --git a/ui/aura/root_window.h b/ui/aura/root_window.h
index 2e122189f2d029f5641dea643cdfe9969853e234..b28e79ed8f50d76d3b952c77008a49413893137d 100644
--- a/ui/aura/root_window.h
+++ b/ui/aura/root_window.h
@@ -107,7 +107,6 @@ class AURA_EXPORT RootWindow : public ui::CompositorDelegate,
ui::Compositor* compositor() { return compositor_.get(); }
gfx::NativeCursor last_cursor() const { return last_cursor_; }
Window* mouse_pressed_handler() { return mouse_pressed_handler_; }
- bool cursor_shown() const { return cursor_shown_; }
void set_focus_manager(FocusManager* focus_manager) {
focus_manager_ = focus_manager;
@@ -143,8 +142,8 @@ class AURA_EXPORT RootWindow : public ui::CompositorDelegate,
// used.
void SetCursor(gfx::NativeCursor cursor);
- // Shows or hides the cursor.
- void ShowCursor(bool show);
+ // Invoked when the cursor's visibility has changed.
+ void OnCursorVisibilityChanged(bool visible);
// Moves the cursor to the specified location relative to the root window.
virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE;
@@ -382,9 +381,6 @@ class AURA_EXPORT RootWindow : public ui::CompositorDelegate,
// Last cursor set. Used for testing.
gfx::NativeCursor last_cursor_;
- // Is the cursor currently shown? Used for testing.
- bool cursor_shown_;
-
ObserverList<RootWindowObserver> observers_;
Window* mouse_pressed_handler_;
« no previous file with comments | « ui/aura/remote_root_window_host_win.cc ('k') | ui/aura/root_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698