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

Unified Diff: web_components/lib/custom_element_proxy.dart

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « web_components/lib/build/web_components.dart ('k') | web_components/lib/dart_support.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: web_components/lib/custom_element_proxy.dart
diff --git a/web_components/lib/custom_element_proxy.dart b/web_components/lib/custom_element_proxy.dart
deleted file mode 100644
index 4f57097c6d20e50d2e18103e39df0eb7a94afeae..0000000000000000000000000000000000000000
--- a/web_components/lib/custom_element_proxy.dart
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright (c) 2015, 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.
-library web_components.custom_element_proxy;
-
-import 'dart:js' as js;
-import 'package:initialize/initialize.dart';
-import 'interop.dart';
-
-/// Annotation for a dart class which proxies a javascript custom element.
-/// This will not work unless `interop_support.js` is loaded.
-// TODO(jakemac): Add an @HtmlImport here to a new file which includes
-// `interop_support.js`. We will need to point everything else at that html file
-// as well for deduplication purposes (could even just copy it in as an inline
-// script so the js file no longer exists?).
-class CustomElementProxy implements Initializer<Type> {
- final String tagName;
- final String extendsTag;
-
- const CustomElementProxy(this.tagName, {this.extendsTag});
-
- void initialize(Type t) {
- registerDartType(tagName, t, extendsTag: extendsTag);
- }
-}
-
-/// A simple mixin to make it easier to interoperate with the Javascript API of
-/// a browser object. This is mainly used by classes that expose a Dart API for
-/// Javascript custom elements.
-class CustomElementProxyMixin {
- js.JsObject _proxy;
-
- js.JsObject get jsElement {
- if (_proxy == null) {
- _proxy = new js.JsObject.fromBrowserObject(this);
- }
- return _proxy;
- }
-}
« no previous file with comments | « web_components/lib/build/web_components.dart ('k') | web_components/lib/dart_support.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698