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

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

Side-by-side diff isn't available for this file because of its large size.
Issue 10817019: Provide noSuchMethod hook for UnknownElement (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove erroneous static 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
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..566d69a27839df8b72795d44aaeb17dbeb032e48 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 suppoer WebComponents.
+static Function dynamicUnknownElementDispatcher;
class _UnknownElementImpl extends _ElementImpl implements UnknownElement native "*HTMLUnknownElement" {
+
+
+ // Hooks to support custom WebComponents.
+ var dartObjectLocalStorage;
+
+ 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" {

Powered by Google App Engine
This is Rietveld 408576698