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

Unified Diff: mojo/public/tools/bindings/generators/go_templates/runtime_type_macros.tmpl

Issue 2250183003: Make the fuchsia mojo/public repo the source of truth. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 4 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/public/tools/bindings/generators/go_templates/runtime_type_macros.tmpl
diff --git a/mojo/public/tools/bindings/generators/go_templates/runtime_type_macros.tmpl b/mojo/public/tools/bindings/generators/go_templates/runtime_type_macros.tmpl
deleted file mode 100644
index 239c949b5cbe7f430c2fb5190feb41e8fe009a76..0000000000000000000000000000000000000000
--- a/mojo/public/tools/bindings/generators/go_templates/runtime_type_macros.tmpl
+++ /dev/null
@@ -1,37 +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.
-
-{% macro maybeWriteStaticMojomTypeAccessor(typepkg, type) %}
-{% if should_gen_mojom_types and type|mojom_type_key != "" %}
-
-// {{type|name(true)}}MojomType returns the UserDefinedType that describes the Mojom
-// type of {{type|name(true)}}. To obtain the UserDefinedType for Mojom types recursively
-// contained in the returned UserDefinedType, look in the map returned
-// by the function GetAllMojomTypeDefinitions().
-func {{type|name(true)}}MojomType() {{typepkg}}UserDefinedType {
- return GetAllMojomTypeDefinitions()["{{type|mojom_type_key}}"]
-}
-
-{% endif %}
-{% endmacro %}
-
-
-{% macro maybeWriteMojomTypeAccessor(typepkg, staticType, typeName) %}
-{% if should_gen_mojom_types and staticType|mojom_type_key != "" %}
-
-// MojomType returns the UserDefinedType that describes the Mojom
-// type of this object. To obtain the UserDefinedType for Mojom types recursively
-// contained in the returned UserDefinedType, look in the map returned
-// by the function AllMojomTypes().
-func (*{{typeName}}) MojomType() {{typepkg}}UserDefinedType {
- return {{staticType|name(true)}}MojomType()
-}
-
-// AllMojomTypes returns a map that contains the UserDefinedType for
-// all Mojom types in the complete type graph of the Mojom type of this object.
-func (*{{typeName}}) AllMojomTypes() map[string]{{typepkg}}UserDefinedType {
- return GetAllMojomTypeDefinitions()
-}
-{% endif %}
-{% endmacro %}

Powered by Google App Engine
This is Rietveld 408576698