Chromium Code Reviews| 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..14d9ec84b7248912c38cd4fb06c424b4b3fe20d6 |
| --- /dev/null |
| +++ b/ui/wayland/wayland_cursor.h |
| @@ -0,0 +1,39 @@ |
| +// 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 WAYLAND_CURSOR_H_ |
| +#define WAYLAND_CURSOR_H_ |
| + |
| +#include "base/basictypes.h" |
|
Evan Martin
2011/07/22 18:21:22
Is this needed?
|
| + |
| +class WaylandDisplay; |
| +class WaylandShmBuffer; |
| + |
| +/* This class allows applications to change the currently displaying cursor. |
| +*/ |
| +class WaylandCursor { |
| + public: |
| + /* Types of Wayland cursors supported */ |
| + enum WaylandCursorType { |
| + 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 |