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

Unified Diff: lib/html/dartium/html_dartium.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 10826146: Move noSuchMethod hook from UnknownElement to Element (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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:
Download patch
« no previous file with comments | « lib/html/dart2js/html_dart2js.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/dartium/html_dartium.dart
diff --git a/lib/html/dartium/html_dartium.dart b/lib/html/dartium/html_dartium.dart
index 73e89b769b0bf86ec40b066cb2d08ca14ead32e3..f4a7f67c2d23e0a184a3247d30d6bd6bb13bb0c0 100644
--- a/lib/html/dartium/html_dartium.dart
+++ b/lib/html/dartium/html_dartium.dart
@@ -7173,6 +7173,18 @@ class _ElementImpl extends _NodeImpl implements Element {
new Completer<CSSStyleDeclaration>());
}
+ // Hooks to support custom WebComponents.
+ var xtag;
+
+ noSuchMethod(String name, List args) {
+ if (dynamicUnknownElementDispatcher == null) {
+ throw new NoSuchMethodException(this, name, args);
+ } else {
+ return dynamicUnknownElementDispatcher(this, name, args);
+ }
+ }
+
+
_ElementEventsImpl get on() =>
new _ElementEventsImpl(this);
@@ -7274,6 +7286,9 @@ class _ElementImpl extends _NodeImpl implements Element {
}
+// Temporary dispatch hook to support WebComponents.
+Function dynamicUnknownElementDispatcher;
+
final _START_TAG_REGEXP = const RegExp('<(\\w+)');
class _ElementFactoryProvider {
static final _CUSTOM_PARENT_TAG_MAP = const {
@@ -11009,22 +11024,10 @@ class _HTMLUListElementImpl extends _HTMLElementImpl implements UListElement {
// 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.
-// Temporary dispatch hook to support WebComponents.
-Function dynamicUnknownElementDispatcher;
+// WARNING: Do not edit - generated code.
class _HTMLUnknownElementImpl extends _HTMLElementImpl implements UnknownElement {
-
- // Hooks to support custom WebComponents.
- var xtag;
-
- noSuchMethod(String name, List args) {
- if (dynamicUnknownElementDispatcher == null) {
- throw new NoSuchMethodException(this, name, args);
- } else {
- return dynamicUnknownElementDispatcher(this, name, args);
- }
- }
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
« no previous file with comments | « lib/html/dart2js/html_dart2js.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698