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

Unified Diff: ui/aura/mus/window_port_mus.cc

Issue 2541163006: Wire up CursorManager for DesktopWindowTreeHostMus (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | ui/views/mus/desktop_window_tree_host_mus.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/window_port_mus.cc
diff --git a/ui/aura/mus/window_port_mus.cc b/ui/aura/mus/window_port_mus.cc
index 52985fe3d521b823447bbd33fa59c8f90992a814..d5a64e88c79980562c5792a140bbc36c9b926852 100644
--- a/ui/aura/mus/window_port_mus.cc
+++ b/ui/aura/mus/window_port_mus.cc
@@ -58,6 +58,9 @@ void WindowPortMus::SetImeVisibility(bool visible,
}
void WindowPortMus::SetPredefinedCursor(ui::mojom::Cursor cursor_id) {
+ if (cursor_id == predefined_cursor_)
+ return;
+
window_tree_client_->SetPredefinedCursor(this, predefined_cursor_, cursor_id);
predefined_cursor_ = cursor_id;
}
« no previous file with comments | « no previous file | ui/views/mus/desktop_window_tree_host_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698