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

Unified Diff: ui/views/mus/platform_window_mus.h

Issue 1465803003: mus: Let clients set the cursor of their window. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync pass the nacl breakage Created 5 years 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
Index: ui/views/mus/platform_window_mus.h
diff --git a/ui/views/mus/platform_window_mus.h b/ui/views/mus/platform_window_mus.h
index 0c16f9809ede4c317c8e95f857a59607a8520b6a..27d509cd9bbb997e9230197261c995597e5265d7 100644
--- a/ui/views/mus/platform_window_mus.h
+++ b/ui/views/mus/platform_window_mus.h
@@ -25,6 +25,8 @@ class VIEWS_MUS_EXPORT PlatformWindowMus
void Activate();
+ void SetCursorById(mus::mojom::Cursor cursor);
+
// ui::PlatformWindow:
void Show() override;
void Hide() override;
@@ -53,6 +55,8 @@ class VIEWS_MUS_EXPORT PlatformWindowMus
const gfx::Rect& new_bounds) override;
void OnWindowFocusChanged(mus::Window* gained_focus,
mus::Window* lost_focus) override;
+ void OnWindowCursorChanged(mus::Window* window,
+ mus::mojom::Cursor cursor) override;
void OnWindowInputEvent(mus::Window* view,
const mus::mojom::EventPtr& event) override;
void OnWindowSharedPropertyChanged(
@@ -64,6 +68,7 @@ class VIEWS_MUS_EXPORT PlatformWindowMus
ui::PlatformWindowDelegate* delegate_;
mus::Window* mus_window_;
mus::mojom::ShowState show_state_;
+ mus::mojom::Cursor last_cursor_;
bool has_capture_;
DISALLOW_COPY_AND_ASSIGN(PlatformWindowMus);

Powered by Google App Engine
This is Rietveld 408576698