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

Unified Diff: ui/wayland/wayland_cursor.h

Issue 7457023: Adding a Wayland basic toolkit (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: removed unused flag Created 9 years, 5 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
Index: ui/wayland/wayland_cursor.h
diff --git a/ui/wayland/wayland_cursor.h b/ui/wayland/wayland_cursor.h
new file mode 100644
index 0000000000000000000000000000000000000000..aa865d7ffeff21a4c5053dfa049cb83c324c09c9
--- /dev/null
+++ b/ui/wayland/wayland_cursor.h
@@ -0,0 +1,38 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_WAYLAND_WAYLAND_CURSOR_H_
+#define UI_WAYLAND_WAYLAND_CURSOR_H_
+
+#include "base/basictypes.h"
+
+class WaylandDisplay;
+class WaylandShmBuffer;
+
+// This class allows applications to change the currently displaying cursor.
+class WaylandCursor {
+ public:
+ // Types of Wayland cursors supported
+ enum WaylandCursorType {
tfarina 2011/07/22 23:06:45 I think just Type is enough.
+ ARROW_CURSOR,
+ HAND_CURSOR,
+ };
+
+ WaylandCursor(WaylandDisplay* display);
+ ~WaylandCursor();
+
+ // Used to change the current type to the type specified in 'type'
+ void ChangeCursor(WaylandCursorType type);
+
+ private:
+ // Pointer to the current display. This is not owned by this class.
+ WaylandDisplay* display_;
+ // The currently set cursor image.
+ // This class should dispose of this on deletion.
+ WaylandShmBuffer* buffer_;
+
+ DISALLOW_COPY_AND_ASSIGN(WaylandCursor);
+};
+
+#endif // UI_WAYLAND_WAYLAND_CURSOR_H_
Evan Martin 2011/07/22 22:41:45 Two spaces before every "//". (You can probably g

Powered by Google App Engine
This is Rietveld 408576698