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

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

Issue 1885653003: Attempt to fix ash tests on Chrome OS valgrind (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't revert all of commit abc44825 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 | « ui/wm/core/cursor_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/wm/core/cursor_manager.cc
diff --git a/ui/wm/core/cursor_manager.cc b/ui/wm/core/cursor_manager.cc
index 607614b61311860b889149d478a043c46755f5f3..08c9643b74e293eb895eb136b14a8f59c0752e2d 100644
--- a/ui/wm/core/cursor_manager.cc
+++ b/ui/wm/core/cursor_manager.cc
@@ -87,6 +87,11 @@ CursorManager::CursorManager(scoped_ptr<NativeCursorManager> delegate)
CursorManager::~CursorManager() {
}
+// static
+void CursorManager::ResetCursorVisibilityStateForTest() {
+ last_cursor_visibility_state_ = true;
+}
+
void CursorManager::SetCursor(gfx::NativeCursor cursor) {
state_on_unlock_->set_cursor(cursor);
if (cursor_lock_count_ == 0 &&
« no previous file with comments | « ui/wm/core/cursor_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698