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

Unified Diff: ui/wayland/wayland_geometry_utils.h

Issue 7457023: Adding a Wayland basic toolkit (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Removed the WaylandDisplay singleton Created 9 years, 5 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
Index: ui/wayland/wayland_geometry_utils.h
diff --git a/ui/wayland/wayland_geometry_utils.h b/ui/wayland/wayland_geometry_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..3fb45fe9274013ca95932557929f7be3bd34a0c2
--- /dev/null
+++ b/ui/wayland/wayland_geometry_utils.h
@@ -0,0 +1,19 @@
+#ifndef UI_WAYLAND_WAYLAND_GEOMETRY_UTILS_H_
+#define UI_WAYLAND_WAYLAND_GEOMETRY_UTILS_H_
+
+#include <stdint.h>
+
+struct Point {
Evan Martin 2011/07/22 21:08:54 I wonder if it's worth reusing our gfx::Rect and g
+ int32_t x, y;
+
+ Point() : x(0), y(0) {};
+ Point(int32_t x, int32_t y) : x(x), y(y) {};
+};
+
+struct Rectangle {
+ int32_t x, y, width, height;
+
+ Rectangle() : x(0), y(0), width(0), height(0) {};
+};
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698