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

Unified Diff: services/ui/ws/display.cc

Issue 2857963003: Add {Lock,Unlock,Show,Hide}Cursor() to the window manager mojom. (Closed)
Patch Set: sky comments Created 3 years, 7 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 | « services/ui/ws/display.h ('k') | services/ui/ws/display_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/display.cc
diff --git a/services/ui/ws/display.cc b/services/ui/ws/display.cc
index becd40ed97784b72dbada881f97b3c6838de21e2..74376b4d4ecf0e5dcfd882017ff27e8d7c586535 100644
--- a/services/ui/ws/display.cc
+++ b/services/ui/ws/display.cc
@@ -36,9 +36,7 @@
namespace ui {
namespace ws {
-Display::Display(WindowServer* window_server)
- : window_server_(window_server),
- last_cursor_(ui::CursorData(ui::CursorType::kNull)) {
+Display::Display(WindowServer* window_server) : window_server_(window_server) {
window_server_->window_manager_window_tree_factory_set()->AddObserver(this);
window_server_->user_id_tracker()->AddObserver(this);
}
@@ -198,11 +196,8 @@ void Display::RemoveWindowManagerDisplayRoot(
NOTREACHED();
}
-void Display::UpdateNativeCursor(const ui::CursorData& cursor) {
- if (!last_cursor_.IsSameAs(cursor)) {
- platform_display_->SetCursor(cursor);
- last_cursor_ = cursor;
- }
+void Display::SetNativeCursor(const ui::CursorData& cursor) {
+ platform_display_->SetCursor(cursor);
}
void Display::SetSize(const gfx::Size& size) {
« no previous file with comments | « services/ui/ws/display.h ('k') | services/ui/ws/display_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698