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

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

Issue 10913125: Remove lib/dom directory! (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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
Index: lib/dom/templates/html/interface/interface_Element.darttemplate
===================================================================
--- lib/dom/templates/html/interface/interface_Element.darttemplate (revision 12066)
+++ lib/dom/templates/html/interface/interface_Element.darttemplate (working copy)
@@ -1,117 +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.
-
-// TODO(vsm): Eliminate this type.
-
-// Note, ElementList implements List (instead of List<Element>) so
-// that its implementing classes may be cast to Lists of more specific
-// type such as List<CanvasElement>.
-interface ElementList extends List {
- // TODO(jacobr): add element batch manipulation methods.
- ElementList filter(bool f(Element element));
-
- ElementList getRange(int start, int length);
-
- Element get first();
- // TODO(jacobr): add insertAt
-}
-
-/**
- * All your attribute manipulation needs in one place.
- * Extends the regular Map interface by automatically coercing non-string
- * values to strings.
- */
-interface AttributeMap extends Map<String, String> {
- void operator []=(String key, value);
-}
-
-/**
- * All your element measurement needs in one place
- */
-interface 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();
-}
-
-interface NodeSelector {
- Element query(String selectors);
- List<Element> queryAll(String selectors);
-}
-
-interface CSSClassSet extends 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 isFrozen();
-}
-
-$!COMMENT
-interface Element extends Node, NodeSelector default _$(ID)FactoryProvider {
- Element.html(String html);
- Element.tag(String tag);
-
- AttributeMap get attributes();
- void set attributes(Map<String, String> value);
-
- /**
- * @domName childElementCount, firstElementChild, lastElementChild,
- * children, Node.nodes.add
- */
- ElementList 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();
-
-$!MEMBERS
-}

Powered by Google App Engine
This is Rietveld 408576698