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

Unified Diff: mojo/converters/transform/transform_converters.h

Issue 911793002: Split transform_converters.h from geometry_type_converters.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Create mojo/converters/transform Created 5 years, 10 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: mojo/converters/transform/transform_converters.h
diff --git a/mojo/converters/transform/transform_converters.h b/mojo/converters/transform/transform_converters.h
new file mode 100644
index 0000000000000000000000000000000000000000..9098dde4ee4ca523d1a0b39008ca8d56717a6030
--- /dev/null
+++ b/mojo/converters/transform/transform_converters.h
@@ -0,0 +1,25 @@
+// Copyright 2015 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 MOJO_CONVERTERS_TRANSFORM_TRANSFORM_CONVERTERS_H_
+#define MOJO_CONVERTERS_TRANSFORM_TRANSFORM_CONVERTERS_H_
+
+#include "mojo/converters/transform/mojo_transform_export.h"
+#include "third_party/mojo_services/src/geometry/public/interfaces/geometry.mojom.h"
msw 2015/02/13 18:25:35 nit q: Would it be useful at all to split the Tran
wtc 2015/02/13 18:59:09 Yes, I had the same idea and implemented it in pat
+#include "ui/gfx/transform.h"
+
+namespace mojo {
+
+template <>
+struct MOJO_TRANSFORM_EXPORT TypeConverter<TransformPtr, gfx::Transform> {
+ static TransformPtr Convert(const gfx::Transform& input);
+};
+template <>
+struct MOJO_TRANSFORM_EXPORT TypeConverter<gfx::Transform, TransformPtr> {
+ static gfx::Transform Convert(const TransformPtr& input);
+};
+
+} // namespace mojo
+
+#endif // MOJO_CONVERTERS_TRANSFORM_TRANSFORM_CONVERTERS_H_
« no previous file with comments | « mojo/converters/transform/mojo_transform_export.h ('k') | mojo/converters/transform/transform_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698