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

Unified Diff: lib/web_ui.dart

Issue 22280002: use custom_element pkg (Closed) Base URL: https://github.com/dart-lang/web-ui.git@master
Patch Set: Created 7 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 | « lib/observe/map.dart ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/web_ui.dart
diff --git a/lib/web_ui.dart b/lib/web_ui.dart
index 00ed711d23299bfb703088437b522752e02615bd..003874b1f8e1161506fcf4eeae71dc887e1a7acb 100644
--- a/lib/web_ui.dart
+++ b/lib/web_ui.dart
@@ -26,7 +26,7 @@ export 'watcher.dart';
import 'dart:async';
import 'dart:html';
-import 'dart:mirrors' show reflect;
+import 'package:custom_element/custom_element.dart' show CustomElement;
import 'package:meta/meta.dart';
/**
@@ -37,7 +37,7 @@ import 'package:meta/meta.dart';
* - [attributeChanged]
* - [removed]
*/
-abstract class WebComponent implements Element {
+abstract class WebComponent extends CustomElement {
/** The web component element wrapped by this class. */
Element _host;
List _shadowRoots;
@@ -309,9 +309,6 @@ abstract class WebComponent implements Element {
// TODO(jmesserly): rename "created" to "onCreated".
void onCreated() => created();
-
- /** The rest of the [Element] API is handled by [host]. */
- dynamic noSuchMethod(Invocation m) => reflect(host).delegate(m);
}
/**
« no previous file with comments | « lib/observe/map.dart ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698