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

Unified Diff: test_sources/non_transformed/lib/library2.dart

Issue 615913004: Add @jsify annotation. Support automatically proxying Lists and Maps to Dart in Proxies. Support co… (Closed) Base URL: https://github.com/dart-lang/js-interop.git@master
Patch Set: Created 6 years, 2 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: test_sources/non_transformed/lib/library2.dart
diff --git a/test_sources/non_transformed/lib/library2.dart b/test_sources/non_transformed/lib/library2.dart
index cfca92f92277694f050a6250a95c99cba0cf61ce..4b22b59755d23b8afeda0a82b09bfce0b35c9c28 100644
--- a/test_sources/non_transformed/lib/library2.dart
+++ b/test_sources/non_transformed/lib/library2.dart
@@ -13,6 +13,18 @@ abstract class Library2 extends JsInterface {
Gizmo createGizmo(String x);
JsAndDart createJsAndDart(int i);
+
+ List createList(a, b, c);
+
+ String joinList(@jsify List list);
+
+ // The returned object is only a transient wrapper on the underlying JS
+ // object. We might want to make this clear by requiring metadata like
+ // @JsMap. We also might want to support @dartify which would do a deep
+ // copy+convert from JS to Dart
+ Map<String, int> createMap(k1, v1, k2, v2);
+
+ String joinMap(@jsify Map<String, int> map);
}
@JsProxy(global: true)

Powered by Google App Engine
This is Rietveld 408576698