Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 UI_WAYLAND_WAYLAND_CURSOR_H_ | |
| 6 #define UI_WAYLAND_WAYLAND_CURSOR_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 | |
| 10 class WaylandDisplay; | |
| 11 class WaylandShmBuffer; | |
| 12 | |
| 13 // This class allows applications to change the currently displaying cursor. | |
| 14 class WaylandCursor { | |
| 15 public: | |
| 16 // Types of Wayland cursors supported | |
| 17 enum WaylandCursorType { | |
|
tfarina
2011/07/22 23:06:45
I think just Type is enough.
| |
| 18 ARROW_CURSOR, | |
| 19 HAND_CURSOR, | |
| 20 }; | |
| 21 | |
| 22 WaylandCursor(WaylandDisplay* display); | |
| 23 ~WaylandCursor(); | |
| 24 | |
| 25 // Used to change the current type to the type specified in 'type' | |
| 26 void ChangeCursor(WaylandCursorType type); | |
| 27 | |
| 28 private: | |
| 29 // Pointer to the current display. This is not owned by this class. | |
| 30 WaylandDisplay* display_; | |
| 31 // The currently set cursor image. | |
| 32 // This class should dispose of this on deletion. | |
| 33 WaylandShmBuffer* buffer_; | |
| 34 | |
| 35 DISALLOW_COPY_AND_ASSIGN(WaylandCursor); | |
| 36 }; | |
| 37 | |
| 38 #endif // UI_WAYLAND_WAYLAND_CURSOR_H_ | |
|
Evan Martin
2011/07/22 22:41:45
Two spaces before every "//". (You can probably g
| |
| OLD | NEW |