Chromium Code Reviews| 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 |