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

Unified Diff: mojo/public/tools/bindings/generators/dart_templates/module.lib.tmpl

Issue 674383002: Initial work on Dart bindings for Mojo. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Merge. Work on templates. Created 6 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/public/tools/bindings/generators/dart_templates/module.lib.tmpl
diff --git a/mojo/public/tools/bindings/generators/dart_templates/module.lib.tmpl b/mojo/public/tools/bindings/generators/dart_templates/module.lib.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..762133b42a63cc756247eb7fe61c78378feae0a2
--- /dev/null
+++ b/mojo/public/tools/bindings/generators/dart_templates/module.lib.tmpl
@@ -0,0 +1,16 @@
+// Copyright 2014 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.
+
+library {{module.name}};
+
+import 'dart:async';
+
+// Set package-root to e.g out/Release, or wherever the Dart Mojo bindings live.
+import 'package:mojo/public/dart/system/lib/core.dart' as core;
+import 'package:mojo/public/dart/bindings/lib/bindings.dart' as bindings;
+{%- for import in imports %}
+import 'package:{{import.module.path}}.mojom.dart' as {{import.unique_name}};
+{%- endfor %}
+
+{%- include "module_definition.tmpl" %}

Powered by Google App Engine
This is Rietveld 408576698