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

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

Issue 17265006: wayland patch for inspection Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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_screen.cc ('k') | ui/wayland/wayland_task.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 2013 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_TASK_H_
6 #define UI_WAYLAND_WAYLAND_TASK_H_
7
8 #include <stdint.h>
9
10 #include <list>
11
12 #include "base/basictypes.h"
13 #include "ui/gfx/point.h"
14 #include "ui/gfx/rect.h"
15
16 struct wl_compositor;
17 struct wl_display;
18 struct wl_shell;
19 struct wl_shm;
20 struct wl_surface;
21 struct wl_shell_surface;
22
23 namespace ui {
24
25 class WaylandDisplay;
26 class WaylandWindow;
27
28 class WaylandTask {
29 public:
30 WaylandTask(WaylandWindow* window);
31 virtual ~WaylandTask();
32 virtual void Run() = 0;
33 WaylandWindow* GetWindow() { return window_; }
34
35 protected:
36 WaylandWindow *window_;
37
38 private:
39 DISALLOW_COPY_AND_ASSIGN(WaylandTask);
40 };
41
42 class WaylandResizeTask : public WaylandTask {
43 public:
44 WaylandResizeTask(WaylandWindow* window);
45 virtual ~WaylandResizeTask();
46 virtual void Run();
47
48 private:
49 DISALLOW_COPY_AND_ASSIGN(WaylandResizeTask);
50 };
51
52 class WaylandRedrawTask : public WaylandTask {
53 public:
54 WaylandRedrawTask(WaylandWindow* window);
55 virtual ~WaylandRedrawTask();
56 virtual void Run();
57
58 private:
59 DISALLOW_COPY_AND_ASSIGN(WaylandRedrawTask);
60 };
61
62 } // namespace ui
63
64 #endif // UI_WAYLAND_WAYLAND_TASK_H_
OLDNEW
« no previous file with comments | « ui/wayland/wayland_screen.cc ('k') | ui/wayland/wayland_task.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698