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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/wayland/wayland_screen.cc ('k') | ui/wayland/wayland_task.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« 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