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

Unified Diff: ash/magnifier/magnification_controller.cc

Issue 11412315: Make the cursor have separate mode for disabled mouse events and invisible. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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: ash/magnifier/magnification_controller.cc
diff --git a/ash/magnifier/magnification_controller.cc b/ash/magnifier/magnification_controller.cc
index d2169b320e0a88530ee0baf6b7399ea91fe48224..6295e0841d591978d6ad7f992355c9d6c53af620 100644
--- a/ash/magnifier/magnification_controller.cc
+++ b/ash/magnifier/magnification_controller.cc
@@ -354,11 +354,11 @@ void MagnificationControllerImpl::AfterAnimationMoveCursorTo(
aura::client::CursorClient* cursor_client =
aura::client::GetCursorClient(root_window_);
if (cursor_client) {
- // When cursor is invisible, do not move or show the cursor after the
+ // When cursor is invisible, do not move or enable the cursor after the
// animation.
if (!cursor_client->IsCursorVisible())
return;
- cursor_client->ShowCursor(false);
+ cursor_client->EnableCursor(false);
}
move_cursor_after_animation_ = true;
position_after_animation_ = location;
@@ -408,7 +408,7 @@ void MagnificationControllerImpl::OnImplicitAnimationsCompleted() {
aura::client::CursorClient* cursor_client =
aura::client::GetCursorClient(root_window_);
if (cursor_client)
- cursor_client->ShowCursor(true);
+ cursor_client->EnableCursor(true);
}
is_on_animation_ = false;

Powered by Google App Engine
This is Rietveld 408576698