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

Unified Diff: components/mus/ws/server_window.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: Fix WindowTreeAppTest.SetCursor. 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: components/mus/ws/server_window.h
diff --git a/components/mus/ws/server_window.h b/components/mus/ws/server_window.h
index 7cadc08faf15489c15edee50e1f038f3d024b9b3..66519bb001a9d9a29dbebbb7cd1409b15435b579 100644
--- a/components/mus/ws/server_window.h
+++ b/components/mus/ws/server_window.h
@@ -74,6 +74,8 @@ class ServerWindow {
const gfx::Insets& client_area() const { return client_area_; }
void SetClientArea(const gfx::Insets& insets);
+ int32_t cursor() const { return cursor_id_; }
+
const ServerWindow* parent() const { return parent_; }
ServerWindow* parent() { return parent_; }
@@ -111,6 +113,8 @@ class ServerWindow {
float opacity() const { return opacity_; }
void SetOpacity(float value);
+ void SetPredefinedCursor(mus::mojom::Cursor cursor_id);
+
const gfx::Transform& transform() const { return transform_; }
void SetTransform(const gfx::Transform& transform);
@@ -191,6 +195,7 @@ class ServerWindow {
gfx::Rect bounds_;
gfx::Insets client_area_;
scoped_ptr<ServerWindowSurfaceManager> surface_manager_;
+ mojom::Cursor cursor_id_;
float opacity_;
bool can_focus_;
gfx::Transform transform_;

Powered by Google App Engine
This is Rietveld 408576698