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: services/ui/ws/platform_display.cc

Issue 2378883002: mus ws: Consistently use mojom::Cursor instead of int32_t. (Closed)
Patch Set: Created 4 years, 3 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/platform_display.h ('k') | services/ui/ws/server_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/platform_display.cc
diff --git a/services/ui/ws/platform_display.cc b/services/ui/ws/platform_display.cc
index a039209fd6cef090908e1e317ffe8470e8181655..367bdf7e847fd16d0eb72228e3db8e8a391701d1 100644
--- a/services/ui/ws/platform_display.cc
+++ b/services/ui/ws/platform_display.cc
@@ -132,14 +132,14 @@ void DefaultPlatformDisplay::ReleaseCapture() {
platform_window_->ReleaseCapture();
}
-void DefaultPlatformDisplay::SetCursorById(int32_t cursor_id) {
+void DefaultPlatformDisplay::SetCursorById(mojom::Cursor cursor_id) {
#if !defined(OS_ANDROID)
// TODO(erg): This still isn't sufficient, and will only use native cursors
// that chrome would use, not custom image cursors. For that, we should
// delegate to the window manager to load images from resource packs.
//
// We probably also need to deal with different DPIs.
- ui::Cursor cursor(cursor_id);
+ ui::Cursor cursor(static_cast<int32_t>(cursor_id));
cursor_loader_->SetPlatformCursor(&cursor);
platform_window_->SetCursor(cursor.platform());
#endif
« no previous file with comments | « services/ui/ws/platform_display.h ('k') | services/ui/ws/server_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698