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

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

Issue 2830703003: [views-mus] Support custom cursors. (Closed)
Patch Set: fix cast_shell_linux Created 3 years, 8 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_default.cc ('k') | services/ui/ws/server_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/server_window.h
diff --git a/services/ui/ws/server_window.h b/services/ui/ws/server_window.h
index 3a7fa5a5ec4330804a61e6dfe3bc96cbc5eb9817..cc8fce16c4ed2f1a9e71f2989577736bf7721da7 100644
--- a/services/ui/ws/server_window.h
+++ b/services/ui/ws/server_window.h
@@ -105,10 +105,8 @@ class ServerWindow {
bool can_accept_drops() const { return accepts_drops_; }
void SetCanAcceptDrops(bool accepts_drags);
- ui::mojom::CursorType cursor() const { return cursor_id_; }
- ui::mojom::CursorType non_client_cursor() const {
- return non_client_cursor_id_;
- }
+ const ui::CursorData& cursor() const { return cursor_; }
+ const ui::CursorData& non_client_cursor() const { return non_client_cursor_; }
const ServerWindow* parent() const { return parent_; }
ServerWindow* parent() { return parent_; }
@@ -151,8 +149,8 @@ class ServerWindow {
float opacity() const { return opacity_; }
void SetOpacity(float value);
- void SetPredefinedCursor(ui::mojom::CursorType cursor_id);
- void SetNonClientCursor(ui::mojom::CursorType cursor_id);
+ void SetCursor(ui::CursorData cursor);
+ void SetNonClientCursor(ui::CursorData cursor);
const gfx::Transform& transform() const { return transform_; }
void SetTransform(const gfx::Transform& transform);
@@ -252,8 +250,8 @@ class ServerWindow {
std::vector<gfx::Rect> additional_client_areas_;
std::unique_ptr<ServerWindowCompositorFrameSinkManager>
compositor_frame_sink_manager_;
- mojom::CursorType cursor_id_;
- mojom::CursorType non_client_cursor_id_;
+ ui::CursorData cursor_;
+ ui::CursorData non_client_cursor_;
float opacity_;
bool can_focus_;
mojom::EventTargetingPolicy event_targeting_policy_ =
« no previous file with comments | « services/ui/ws/platform_display_default.cc ('k') | services/ui/ws/server_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698