OLD | NEW |
(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_ |
OLD | NEW |