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

Unified Diff: ui/views/widget/desktop_aura/desktop_cursor_client.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: address comments 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: ui/views/widget/desktop_aura/desktop_cursor_client.cc
diff --git a/ui/views/widget/desktop_aura/desktop_cursor_client.cc b/ui/views/widget/desktop_aura/desktop_cursor_client.cc
index 10d7d10c1ea035cfacd0ea85c39977ec8d9a2a34..7a4908cb2e60e1c35373ec92cfede0582c3cdcb2 100644
--- a/ui/views/widget/desktop_aura/desktop_cursor_client.cc
+++ b/ui/views/widget/desktop_aura/desktop_cursor_client.cc
@@ -34,13 +34,18 @@ void DesktopCursorClient::ShowCursor(bool show) {
root_window_->SetCursor(current_cursor_);
else
root_window_->SetCursor(ui::kCursorNone);
- root_window_->OnCursorVisibilityChanged(cursor_visible_);
+ root_window_->OnCursorEnableStateChanged(cursor_visible_);
}
bool DesktopCursorClient::IsCursorVisible() const {
return cursor_visible_;
}
+void DesktopCursorClient::EnableCursor(bool enabled) {
+ // TODO(mazda): Separete cursor visibility and enable state.
+ ShowCursor(enabled);
+}
+
void DesktopCursorClient::SetDeviceScaleFactor(float device_scale_factor) {
cursor_loader_->UnloadAll();
cursor_loader_->set_device_scale_factor(device_scale_factor);
« ui/aura/root_window.cc ('K') | « ui/views/widget/desktop_aura/desktop_cursor_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698