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

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: 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
Index: ui/aura/root_window.h
diff --git a/ui/aura/root_window.h b/ui/aura/root_window.h
index 71b72f0a2d16f697287e671ceb4da0c35eba5d87..6028ff24d0541103f329aebf21907e6cf9ba05f1 100644
--- a/ui/aura/root_window.h
+++ b/ui/aura/root_window.h
@@ -104,7 +104,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;
@@ -140,8 +139,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;
@@ -379,9 +378,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_;

Powered by Google App Engine
This is Rietveld 408576698