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

Unified Diff: mojo/converters/geometry/geometry_type_converters.h

Issue 1419793006: Makes windowmanager draw non-client area (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move wm nonclientframeview to wm Created 5 years, 1 month 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: mojo/converters/geometry/geometry_type_converters.h
diff --git a/mojo/converters/geometry/geometry_type_converters.h b/mojo/converters/geometry/geometry_type_converters.h
index d3d8fd21dbff0ab21f1ca701f1c43c431f5e531e..f90aba7a42fa6fecac1e04a06e47ee0b7e8a5d6e 100644
--- a/mojo/converters/geometry/geometry_type_converters.h
+++ b/mojo/converters/geometry/geometry_type_converters.h
@@ -6,6 +6,7 @@
#define MOJO_CONVERTERS_GEOMETRY_GEOMETRY_TYPE_CONVERTERS_H_
#include "mojo/converters/geometry/mojo_geometry_export.h"
+#include "ui/gfx/geometry/insets.h"
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/point_f.h"
#include "ui/gfx/geometry/rect.h"
@@ -78,6 +79,24 @@ struct MOJO_GEOMETRY_EXPORT TypeConverter<gfx::Size, Size> {
static gfx::Size Convert(const Size& input);
};
+template <>
+struct MOJO_GEOMETRY_EXPORT TypeConverter<Insets, gfx::Insets> {
+ static Insets Convert(const gfx::Insets& input);
+};
+template <>
+struct MOJO_GEOMETRY_EXPORT TypeConverter<gfx::Insets, Insets> {
+ static gfx::Insets Convert(const Insets& input);
+};
+
+template <>
+struct MOJO_GEOMETRY_EXPORT TypeConverter<InsetsPtr, gfx::Insets> {
+ static InsetsPtr Convert(const gfx::Insets& input);
+};
+template <>
+struct MOJO_GEOMETRY_EXPORT TypeConverter<gfx::Insets, InsetsPtr> {
+ static gfx::Insets Convert(const InsetsPtr& input);
+};
+
} // namespace mojo
#endif // MOJO_CONVERTERS_GEOMETRY_GEOMETRY_TYPE_CONVERTERS_H_

Powered by Google App Engine
This is Rietveld 408576698