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

Unified Diff: sdk/lib/html/templates/html/interface/interface_Element.darttemplate

Issue 11363130: Cleaning up dart:html generation after interface/implementation merge. Removing most of the interfa… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Incorporating review feedback, cleaning up comments Created 8 years, 1 month 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
Index: sdk/lib/html/templates/html/interface/interface_Element.darttemplate
diff --git a/sdk/lib/html/templates/html/interface/interface_Element.darttemplate b/sdk/lib/html/templates/html/interface/interface_Element.darttemplate
deleted file mode 100644
index bb5e01b6f5935d6ae4381ccb0d23464aa4574091..0000000000000000000000000000000000000000
--- a/sdk/lib/html/templates/html/interface/interface_Element.darttemplate
+++ /dev/null
@@ -1,118 +0,0 @@
-// Copyright (c) 2011, 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.
-
-// WARNING: Do not edit - generated code.
-
-part of html;
-
-/**
- * All your attribute manipulation needs in one place.
- * Extends the regular Map interface by automatically coercing non-string
- * values to strings.
- */
-abstract class AttributeMap implements Map<String, String> {
- void operator []=(String key, value);
-}
-
-/**
- * All your element measurement needs in one place
- */
-abstract class ElementRect {
- // Relative to offsetParent
- ClientRect get client;
- ClientRect get offset;
- ClientRect get scroll;
- // In global coords
- ClientRect get bounding;
- // In global coords
- List<ClientRect> get clientRects;
-}
-
-abstract class NodeSelector {
- Element query(String selectors);
- List<Element> queryAll(String selectors);
-}
-
-abstract class CSSClassSet implements Set<String> {
- /**
- * Adds the class [token] to the element if it is not on it, removes it if it
- * is.
- */
- bool toggle(String token);
-
- /**
- * Returns [:true:] classes cannot be added or removed from this
- * [:CSSClassSet:].
- */
- bool get frozen;
-}
-
-$!COMMENT
-abstract class _IElement implements _INode, NodeSelector {
- factory Element.html(String html) =>
- _$(ID)FactoryProvider.createElement_html(html);
- factory Element.tag(String tag) =>
- _$(ID)FactoryProvider.createElement_tag(tag);
-
- AttributeMap get attributes;
- void set attributes(Map<String, String> value);
-
- /**
- * @domName childElementCount, firstElementChild, lastElementChild,
- * children, Node.nodes.add
- */
- List<Element> get elements;
-
- void set elements(Collection<Element> value);
-
- /** @domName className, classList */
- CSSClassSet get classes;
-
- void set classes(Collection<String> value);
-
- AttributeMap get dataAttributes;
- void set dataAttributes(Map<String, String> value);
-
- /**
- * Adds the specified text as a text node after the last child of this.
- */
- void addText(String text);
-
- /**
- * Parses the specified text as HTML and adds the resulting node after the
- * last child of this.
- */
- void addHTML(String html);
-
- /**
- * @domName getClientRects, getBoundingClientRect, clientHeight, clientWidth,
- * clientTop, clientLeft, offsetHeight, offsetWidth, offsetTop, offsetLeft,
- * scrollHeight, scrollWidth, scrollTop, scrollLeft
- */
- Future<ElementRect> get rect;
-
- /** @domName Window.getComputedStyle */
- Future<CSSStyleDeclaration> get computedStyle;
-
- /** @domName Window.getComputedStyle */
- Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement);
-
- Element clone(bool deep);
-
- Element get parent;
-
- /**
- * Experimental support for [web components][wc]. This field stores a
- * reference to the component implementation. It was inspired by Mozilla's
- * [x-tags][] project. Please note: in the future it may be possible to
- * `extend Element` from your class, in which case this field will be
- * deprecated and will simply return this [Element] object.
- *
- * [wc]: http://dvcs.w3.org/hg/webcomponents/raw-file/tip/explainer/index.html
- * [x-tags]: http://x-tags.org/
- */
- var xtag;
-
-$!MEMBERS
-}

Powered by Google App Engine
This is Rietveld 408576698