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

Unified Diff: services/ui/ws/window_tree.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/window_server.cc ('k') | services/ui/ws/window_tree.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/window_tree.h
diff --git a/services/ui/ws/window_tree.h b/services/ui/ws/window_tree.h
index 3a2a779e6055147298a4a8bf39ce4d26a988efe2..0721fff22ffe0e18eb2de6cd4851e1de0eaa4599 100644
--- a/services/ui/ws/window_tree.h
+++ b/services/ui/ws/window_tree.h
@@ -261,7 +261,7 @@ class WindowTree : public mojom::WindowTree,
float new_opacity,
bool originated_change);
void ProcessCursorChanged(const ServerWindow* window,
- mojom::CursorType cursor_id,
+ const ui::CursorData& cursor,
bool originated_change);
void ProcessFocusChanged(const ServerWindow* old_focused_window,
const ServerWindow* new_focused_window);
@@ -462,9 +462,9 @@ class WindowTree : public mojom::WindowTree,
void SetCanFocus(Id transport_window_id, bool can_focus) override;
void SetEventTargetingPolicy(Id transport_window_id,
mojom::EventTargetingPolicy policy) override;
- void SetPredefinedCursor(uint32_t change_id,
- Id transport_window_id,
- ui::mojom::CursorType cursor_id) override;
+ void SetCursor(uint32_t change_id,
+ Id transport_window_id,
+ ui::CursorData cursor) override;
void SetWindowTextInputState(Id transport_window_id,
mojo::TextInputStatePtr state) override;
void SetImeVisibility(Id transport_window_id,
@@ -521,8 +521,7 @@ class WindowTree : public mojom::WindowTree,
void WmRequestClose(Id transport_window_id) override;
void WmSetFrameDecorationValues(
mojom::FrameDecorationValuesPtr values) override;
- void WmSetNonClientCursor(uint32_t window_id,
- mojom::CursorType cursor_id) override;
+ void WmSetNonClientCursor(uint32_t window_id, ui::CursorData cursor) override;
void OnWmCreatedTopLevelWindow(uint32_t change_id,
Id transport_window_id) override;
void OnAcceleratorAck(
« no previous file with comments | « services/ui/ws/window_server.cc ('k') | services/ui/ws/window_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698