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

Unified Diff: sdk/lib/html/templates/html/impl/impl_Element.darttemplate

Issue 11299220: Add @JSName annotation for native fields and methods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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: sdk/lib/html/templates/html/impl/impl_Element.darttemplate
diff --git a/sdk/lib/html/templates/html/impl/impl_Element.darttemplate b/sdk/lib/html/templates/html/impl/impl_Element.darttemplate
index be0bbc83e486eaa3e6dd279c9e1a9c4459ebea1c..dd74435838e40bac013c6c25d85f356567fcdc06 100644
--- a/sdk/lib/html/templates/html/impl/impl_Element.darttemplate
+++ b/sdk/lib/html/templates/html/impl/impl_Element.darttemplate
@@ -494,8 +494,8 @@ $if DART2JS
}
}
- void _insertAdjacentText(String where, String text)
- native 'insertAdjacentText';
+ @JSName('insertAdjacentText')
+ void _insertAdjacentText(String where, String text) native;
/** @domName Element.insertAdjacentHTML */
void insertAdjacentHTML(String where, String text) {
@@ -506,8 +506,8 @@ $if DART2JS
}
}
- void _insertAdjacentHTML(String where, String text)
- native 'insertAdjacentHTML';
+ @JSName('insertAdjacentHTML')
+ void _insertAdjacentHTML(String where, String text) native;
/** @domName Element.insertAdjacentHTML */
Element insertAdjacentElement(String where, Element element) {
@@ -519,8 +519,8 @@ $if DART2JS
return element;
}
- void _insertAdjacentElement(String where, Element element)
- native 'insertAdjacentElement';
+ @JSName('insertAdjacentElement')
+ void _insertAdjacentElement(String where, Element element) native;
void _insertAdjacentNode(String where, Node node) {
switch (where.toLowerCase()) {

Powered by Google App Engine
This is Rietveld 408576698