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

Unified Diff: ui/wayland/wayland_task.cc

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_task.h ('k') | ui/wayland/wayland_widget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/wayland/wayland_task.cc
diff --git a/ui/wayland/wayland_task.cc b/ui/wayland/wayland_task.cc
new file mode 100644
index 0000000000000000000000000000000000000000..ba6a7fd41b7a862e5bed38df6a327e1a4c77fc44
--- /dev/null
+++ b/ui/wayland/wayland_task.cc
@@ -0,0 +1,52 @@
+// 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.
+
+#include "ui/wayland/wayland_task.h"
+
+#include <wayland-client.h>
+
+#include "ui/wayland/wayland_display.h"
+#include "ui/wayland/wayland_window.h"
+
+namespace ui {
+
+////////////////// WaylandTask Implementation ////////////////////////////
+WaylandTask::WaylandTask(WaylandWindow *window) : window_(window)
+{
+}
+
+WaylandTask::~WaylandTask()
+{
+}
+
+////////////////// WaylandResizeTask Implementation ////////////////////////////
+WaylandResizeTask::WaylandResizeTask(WaylandWindow *window) : WaylandTask(window)
+{
+}
+
+WaylandResizeTask::~WaylandResizeTask()
+{
+}
+
+void WaylandResizeTask::Run()
+{
+ window_->OnResize();
+}
+
+////////////////// WaylandRedrawTask Implementation ////////////////////////////
+WaylandRedrawTask::WaylandRedrawTask(WaylandWindow *window) : WaylandTask(window)
+{
+}
+
+WaylandRedrawTask::~WaylandRedrawTask()
+{
+}
+
+void WaylandRedrawTask::Run()
+{
+ window_->OnRedraw();
+}
+
+} // namespace ui
+
« no previous file with comments | « ui/wayland/wayland_task.h ('k') | ui/wayland/wayland_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698