 Chromium Code Reviews
 Chromium Code Reviews Issue 839013003:
  CustomElementProxy annotation  (Closed) 
  Base URL: git@github.com:dart-lang/web-components.git@master
    
  
    Issue 839013003:
  CustomElementProxy annotation  (Closed) 
  Base URL: git@github.com:dart-lang/web-components.git@master| OLD | NEW | 
|---|---|
| (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 } | |
| OLD | NEW |