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

Unified Diff: lib/html/frog/html_frog.dart

Issue 10817019: Provide noSuchMethod hook for UnknownElement (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix typos Created 8 years, 5 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/dartium/html_dartium.dart ('k') | tests/html/html.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/frog/html_frog.dart
diff --git a/lib/html/frog/html_frog.dart b/lib/html/frog/html_frog.dart
index 8f997b34554fea226b066c147bedeb0837ff27d2..e1bca6505460ebbfe91e92542dcd6378c5d1750b 100644
--- a/lib/html/frog/html_frog.dart
+++ b/lib/html/frog/html_frog.dart
@@ -15316,8 +15316,26 @@ class _Uint8ClampedArrayImpl extends _Uint8ArrayImpl implements Uint8ClampedArra
_Uint8ClampedArrayImpl subarray(int start, [int end]) native;
}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
+// Temporary dispatch hook to support WebComponents.
+Function dynamicUnknownElementDispatcher;
class _UnknownElementImpl extends _ElementImpl implements UnknownElement native "*HTMLUnknownElement" {
+
+
+ // 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);
+ }
+ }
}
class _ValidityStateImpl implements ValidityState native "*ValidityState" {
« no previous file with comments | « lib/html/dartium/html_dartium.dart ('k') | tests/html/html.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698