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

Side by Side Diff: lib/custom_element_proxy.dart

Issue 839013003: CustomElementProxy annotation (Closed) Base URL: git@github.com:dart-lang/web-components.git@master
Patch Set: add some simple js interop into the test Created 5 years, 11 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 unified diff | Download patch
« no previous file with comments | « no previous file | lib/interop.dart » ('j') | test/custom_element_proxy_test.html » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4 import 'package:initialize/initialize.dart';
5 import 'interop.dart';
6
7 /// Annotation for a dart class which proxies a javascript custom element.
8 /// This will not work unless `interop_support.js` is loaded.
Siggi Cherem (dart-lang) 2015/01/20 22:48:20 Ohh - it might be worth adding a TODO for this. In
jakemac 2015/01/21 18:04:30 Good point, I like the idea of just moving it to a
9 class CustomElementProxy implements Initializer<Type> {
10 final String tagName;
11 final String extendsTag;
12
13 const CustomElementProxy(this.tagName, {this.extendsTag});
14
15 void initialize(Type t) {
16 registerDartType(tagName, t, extendsTag: extendsTag);
17 }
18 }
OLDNEW
« no previous file with comments | « no previous file | lib/interop.dart » ('j') | test/custom_element_proxy_test.html » ('J')

Powered by Google App Engine
This is Rietveld 408576698