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

Side by Side Diff: ui/wayland/wayland_cursor.h

Issue 10009024: Remove WAYLAND port (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 years, 8 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
« no previous file with comments | « ui/wayland/wayland_buffer.cc ('k') | ui/wayland/wayland_cursor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 UI_WAYLAND_WAYLAND_CURSOR_H_
6 #define UI_WAYLAND_WAYLAND_CURSOR_H_
7
8 #include "base/basictypes.h"
9
10 namespace ui {
11
12 class WaylandDisplay;
13 class WaylandShmBuffer;
14
15 // This class allows applications to change the currently displaying cursor.
16 class WaylandCursor {
17 public:
18 // Types of Wayland cursors supported
19 enum Type {
20 ARROW_CURSOR,
21 HAND_CURSOR,
22 };
23
24 explicit WaylandCursor(WaylandDisplay* display);
25 ~WaylandCursor();
26
27 // Used to change the current type to the type specified in 'type'
28 void ChangeCursor(Type type);
29
30 private:
31 // Pointer to the current display. This is not owned by this class.
32 WaylandDisplay* display_;
33 // The currently set cursor image.
34 // This class should dispose of this on deletion.
35 WaylandShmBuffer* buffer_;
36
37 DISALLOW_COPY_AND_ASSIGN(WaylandCursor);
38 };
39
40 } // namespace ui
41
42 #endif // UI_WAYLAND_WAYLAND_CURSOR_H_
OLDNEW
« no previous file with comments | « ui/wayland/wayland_buffer.cc ('k') | ui/wayland/wayland_cursor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698