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

Unified Diff: corelib/unified/coreimpl/expando.dart

Issue 10837219: Port the remaining of dart:coreimpl to the unified corelib. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review fixes. Created 8 years, 4 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
« no previous file with comments | « corelib/unified/coreimpl/date.dart ('k') | corelib/unified/coreimpl/options.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: corelib/unified/coreimpl/expando.dart
diff --git a/lib/html/src/XMLDocument.dart b/corelib/unified/coreimpl/expando.dart
similarity index 54%
copy from lib/html/src/XMLDocument.dart
copy to corelib/unified/coreimpl/expando.dart
index 47fc63a54eff9d728aad59e96d81b69d96c593fa..bea086c30971b728f58df3f0b5e3ecb5e30bce90 100644
--- a/lib/html/src/XMLDocument.dart
+++ b/corelib/unified/coreimpl/expando.dart
@@ -2,11 +2,12 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-interface XMLDocument extends Document, XMLElement
- default XMLDocumentWrappingImplementation {
+class ExpandoImplementation<T> implements Expando<T> {
+ final String name;
- /** WARNING: Currently this doesn't work on Dartium (issue 649). */
- XMLDocument.xml(String xml);
+ const ExpandoImplementation([this.name]);
- XMLDocument clone(bool deep);
+ external T operator[](Object object);
+ external void operator[]=(Object object, T value);
+ external String toString();
}
« no previous file with comments | « corelib/unified/coreimpl/date.dart ('k') | corelib/unified/coreimpl/options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698