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

Side by Side 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: More comments and Chrome style formatting 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WAYLAND_CURSOR_H_
6 #define WAYLAND_CURSOR_H_
7
8 #include "base/basictypes.h"
Evan Martin 2011/07/22 18:21:22 Is this needed?
9
10 class WaylandDisplay;
11 class WaylandShmBuffer;
12
13 /* This class allows applications to change the currently displaying cursor.
14 */
15 class WaylandCursor {
16 public:
17 /* Types of Wayland cursors supported */
18 enum WaylandCursorType {
19 ARROW_CURSOR,
20 HAND_CURSOR,
21 };
22
23 WaylandCursor(WaylandDisplay* display);
24 ~WaylandCursor();
25
26 /* Used to change the current type to the type specified in 'type' */
27 void ChangeCursor(WaylandCursorType type);
28
29 private:
30 /* Pointer to the current display. This is not owned by this class. */
31 WaylandDisplay* display_;
32 /* The currently set cursor image.
33 This class should dispose of this on deletion. */
34 WaylandShmBuffer* buffer_;
35
36 DISALLOW_COPY_AND_ASSIGN(WaylandCursor);
37 };
38
39 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698