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

Unified Diff: sky/engine/bindings2/scripts/templates/dart_blink.template

Issue 914413004: Add a new bindings2/scripts directory for Dart bindings (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Remove idlrenderer.py it's not used 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: sky/engine/bindings2/scripts/templates/dart_blink.template
diff --git a/sky/engine/bindings2/scripts/templates/dart_blink.template b/sky/engine/bindings2/scripts/templates/dart_blink.template
new file mode 100644
index 0000000000000000000000000000000000000000..9ccee1b5a2a0804e2949fa12590b0bc22b01d690
--- /dev/null
+++ b/sky/engine/bindings2/scripts/templates/dart_blink.template
@@ -0,0 +1,21 @@
+// 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.
+
+// WARNING: Do not edit - generated code.
+library sky.core;
+
+import "dart:nativewrappers";
+
+{% for interface in interfaces %}
+part '{{interface.name}}.dart';
+{% endfor %}
+
+{% for callback in callbacks %}
+part '{{callback.name}}.dart';
+{% endfor %}
+
+Window window;
+Document get document => window.document;
+
+typedef EventListener(Event event);

Powered by Google App Engine
This is Rietveld 408576698