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

Unified Diff: ui/gfx/geometry/mojo/geometry_type_converters.h

Issue 2008193002: Change mojo geometry structs from using type converters to StructTraits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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/gfx/geometry/mojo/geometry_type_converters.h
diff --git a/ui/gfx/geometry/mojo/geometry_type_converters.h b/ui/gfx/geometry/mojo/geometry_type_converters.h
deleted file mode 100644
index 9aedb36a486c7e3fa6d04812f1ac33474e7e9c26..0000000000000000000000000000000000000000
--- a/ui/gfx/geometry/mojo/geometry_type_converters.h
+++ /dev/null
@@ -1,102 +0,0 @@
-// Copyright 2016 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_GFX_GEOMETRY_MOJO_GEOMETRY_TYPE_CONVERTERS_H_
-#define UI_GFX_GEOMETRY_MOJO_GEOMETRY_TYPE_CONVERTERS_H_
-
-#include "ui/gfx/geometry/insets.h"
-#include "ui/gfx/geometry/mojo/geometry.mojom.h"
-#include "ui/gfx/geometry/mojo/mojo_geometry_export.h"
-#include "ui/gfx/geometry/point.h"
-#include "ui/gfx/geometry/point_f.h"
-#include "ui/gfx/geometry/rect.h"
-#include "ui/gfx/geometry/rect_f.h"
-#include "ui/gfx/geometry/size.h"
-
-namespace mojo {
-
-template <>
-struct MOJO_GEOMETRY_EXPORT TypeConverter<PointPtr, gfx::Point> {
- static PointPtr Convert(const gfx::Point& input);
-};
-template <>
-struct MOJO_GEOMETRY_EXPORT TypeConverter<gfx::Point, PointPtr> {
- static gfx::Point Convert(const PointPtr& input);
-};
-
-template <>
-struct MOJO_GEOMETRY_EXPORT TypeConverter<PointFPtr, gfx::PointF> {
- static PointFPtr Convert(const gfx::PointF& input);
-};
-template <>
-struct MOJO_GEOMETRY_EXPORT TypeConverter<gfx::PointF, PointFPtr> {
- static gfx::PointF Convert(const PointFPtr& input);
-};
-
-template <>
-struct MOJO_GEOMETRY_EXPORT TypeConverter<SizePtr, gfx::Size> {
- static SizePtr Convert(const gfx::Size& input);
-};
-template <>
-struct MOJO_GEOMETRY_EXPORT TypeConverter<gfx::Size, SizePtr> {
- static gfx::Size Convert(const SizePtr& input);
-};
-
-template <>
-struct MOJO_GEOMETRY_EXPORT TypeConverter<RectPtr, gfx::Rect> {
- static RectPtr Convert(const gfx::Rect& input);
-};
-template <>
-struct MOJO_GEOMETRY_EXPORT TypeConverter<gfx::Rect, RectPtr> {
- static gfx::Rect Convert(const RectPtr& input);
-};
-
-template <>
-struct MOJO_GEOMETRY_EXPORT TypeConverter<RectFPtr, gfx::RectF> {
- static RectFPtr Convert(const gfx::RectF& input);
-};
-template <>
-struct MOJO_GEOMETRY_EXPORT TypeConverter<gfx::RectF, RectFPtr> {
- static gfx::RectF Convert(const RectFPtr& input);
-};
-
-template <>
-struct MOJO_GEOMETRY_EXPORT TypeConverter<Rect, gfx::Rect> {
- static Rect Convert(const gfx::Rect& input);
-};
-template <>
-struct MOJO_GEOMETRY_EXPORT TypeConverter<gfx::Rect, Rect> {
- static gfx::Rect Convert(const Rect& input);
-};
-
-template <>
-struct MOJO_GEOMETRY_EXPORT TypeConverter<Size, gfx::Size> {
- static Size Convert(const gfx::Size& input);
-};
-template <>
-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 // UI_GFX_GEOMETRY_MOJO_GEOMETRY_TYPE_CONVERTERS_H_

Powered by Google App Engine
This is Rietveld 408576698