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

Unified Diff: tools/dom/scripts/systemhtml.py

Issue 409053002: Use @Native annotation on dart2js DOM native classes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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: tools/dom/scripts/systemhtml.py
diff --git a/tools/dom/scripts/systemhtml.py b/tools/dom/scripts/systemhtml.py
index c5fb8a0a630a01f92b950c6a34d376b884dbc421..556c2d4c8ec6380f8b8b6623ef8d412ddcb7edcf 100644
--- a/tools/dom/scripts/systemhtml.py
+++ b/tools/dom/scripts/systemhtml.py
@@ -679,7 +679,7 @@ class Dart2JSBackend(HtmlDartGenerator):
def NativeSpec(self):
native_spec = MakeNativeSpec(self._interface.javascript_binding_name)
- return ' native "%s"' % native_spec
+ return '@Native("%s")\n' % native_spec
def ImplementationTemplate(self):
template_file = ('impl_%s.darttemplate' %

Powered by Google App Engine
This is Rietveld 408576698