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

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: Do it the other way + explicit checks that it is a mouse pointer. 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
« no previous file with comments | « ui/views/mus/native_widget_mus.cc ('k') | ui/views/mus/platform_window_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..69c6dd3d32d0392eaff5fc8d60aee5f1a86d911c 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 OnWindowPredefinedCursorChanged(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);
« no previous file with comments | « ui/views/mus/native_widget_mus.cc ('k') | ui/views/mus/platform_window_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698