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

Unified Diff: ui/wm/core/cursor_manager.h

Issue 1870743003: Ensure that the cursor visibility state is restored correctly on CursorManager creation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | ui/wm/core/cursor_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/wm/core/cursor_manager.h
diff --git a/ui/wm/core/cursor_manager.h b/ui/wm/core/cursor_manager.h
index a3afdd39debcd7ebdcc8d59e4c2636d08c0ab10a..3e2b86b213df7647fe5a9427694bfd9ebe343f25 100644
--- a/ui/wm/core/cursor_manager.h
+++ b/ui/wm/core/cursor_manager.h
@@ -82,6 +82,12 @@ class WM_EXPORT CursorManager : public aura::client::CursorClient,
base::ObserverList<aura::client::CursorClientObserver> observers_;
+ // This flag holds the cursor visibility state for the duration of the
+ // process. Defaults to true. This flag helps ensure that when a
+ // CursorManager instance is created it gets populated with the correct
+ // cursor visibility state.
+ static bool last_cursor_visibility_state_;
+
DISALLOW_COPY_AND_ASSIGN(CursorManager);
};
« no previous file with comments | « no previous file | ui/wm/core/cursor_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698