Index: ui/wayland/wayland_task.h |
diff --git a/ui/wayland/wayland_task.h b/ui/wayland/wayland_task.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4f2cb59b917eb9b22fd200ed677fab46e07a0eb0 |
--- /dev/null |
+++ b/ui/wayland/wayland_task.h |
@@ -0,0 +1,64 @@ |
+// Copyright 2013 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 UI_WAYLAND_WAYLAND_TASK_H_ |
+#define UI_WAYLAND_WAYLAND_TASK_H_ |
+ |
+#include <stdint.h> |
+ |
+#include <list> |
+ |
+#include "base/basictypes.h" |
+#include "ui/gfx/point.h" |
+#include "ui/gfx/rect.h" |
+ |
+struct wl_compositor; |
+struct wl_display; |
+struct wl_shell; |
+struct wl_shm; |
+struct wl_surface; |
+struct wl_shell_surface; |
+ |
+namespace ui { |
+ |
+class WaylandDisplay; |
+class WaylandWindow; |
+ |
+class WaylandTask { |
+ public: |
+ WaylandTask(WaylandWindow* window); |
+ virtual ~WaylandTask(); |
+ virtual void Run() = 0; |
+ WaylandWindow* GetWindow() { return window_; } |
+ |
+ protected: |
+ WaylandWindow *window_; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(WaylandTask); |
+}; |
+ |
+class WaylandResizeTask : public WaylandTask { |
+ public: |
+ WaylandResizeTask(WaylandWindow* window); |
+ virtual ~WaylandResizeTask(); |
+ virtual void Run(); |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(WaylandResizeTask); |
+}; |
+ |
+class WaylandRedrawTask : public WaylandTask { |
+ public: |
+ WaylandRedrawTask(WaylandWindow* window); |
+ virtual ~WaylandRedrawTask(); |
+ virtual void Run(); |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(WaylandRedrawTask); |
+}; |
+ |
+} // namespace ui |
+ |
+#endif // UI_WAYLAND_WAYLAND_TASK_H_ |