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

Unified Diff: services/ui/ws/platform_display.h

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/event_dispatcher.cc ('k') | services/ui/ws/platform_display.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/platform_display.h
diff --git a/services/ui/ws/platform_display.h b/services/ui/ws/platform_display.h
index 633d9c6f09f1f8449ef3699cedf74fcbd63f1241..27f9601026f4dc1a7943cb15fa911a44ef1e51af 100644
--- a/services/ui/ws/platform_display.h
+++ b/services/ui/ws/platform_display.h
@@ -15,6 +15,7 @@
#include "base/memory/weak_ptr.h"
#include "base/strings/string16.h"
#include "build/build_config.h"
+#include "services/ui/public/interfaces/cursor.mojom.h"
#include "services/ui/public/interfaces/window_manager.mojom.h"
#include "services/ui/public/interfaces/window_manager_constants.mojom.h"
#include "services/ui/public/interfaces/window_tree.mojom.h"
@@ -76,7 +77,7 @@ class PlatformDisplay {
virtual void ReleaseCapture() = 0;
- virtual void SetCursorById(int32_t cursor) = 0;
+ virtual void SetCursorById(mojom::Cursor cursor) = 0;
virtual display::Display::Rotation GetRotation() = 0;
@@ -129,7 +130,7 @@ class DefaultPlatformDisplay : public PlatformDisplay,
void SetTitle(const base::string16& title) override;
void SetCapture() override;
void ReleaseCapture() override;
- void SetCursorById(int32_t cursor) override;
+ void SetCursorById(mojom::Cursor cursor) override;
float GetDeviceScaleFactor() override;
display::Display::Rotation GetRotation() override;
void UpdateTextInputState(const ui::TextInputState& state) override;
« no previous file with comments | « services/ui/ws/event_dispatcher.cc ('k') | services/ui/ws/platform_display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698