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

Unified Diff: client/html/src/Element.dart

Issue 9537001: Generate dart:html bindings for Dartium as well as Frog. All unittests now pass (or are disabled fo… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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: client/html/src/Element.dart
diff --git a/client/html/src/Element.dart b/client/html/src/Element.dart
deleted file mode 100644
index 2a583f193a0a0baab271229bcddd6c9f1ba632ef..0000000000000000000000000000000000000000
--- a/client/html/src/Element.dart
+++ /dev/null
@@ -1,201 +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.
-
-interface ElementList extends List<Element> {
- // 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
-}
-
-class DeferredElementRect {
- // TODO(jacobr)
-}
-
-interface ElementEvents extends Events {
- EventListenerList get abort();
- EventListenerList get beforeCopy();
- EventListenerList get beforeCut();
- EventListenerList get beforePaste();
- EventListenerList get blur();
- EventListenerList get change();
- EventListenerList get click();
- EventListenerList get contextMenu();
- EventListenerList get copy();
- EventListenerList get cut();
- EventListenerList get dblClick();
- EventListenerList get drag();
- EventListenerList get dragEnd();
- EventListenerList get dragEnter();
- EventListenerList get dragLeave();
- EventListenerList get dragOver();
- EventListenerList get dragStart();
- EventListenerList get drop();
- EventListenerList get error();
- EventListenerList get focus();
- EventListenerList get input();
- EventListenerList get invalid();
- EventListenerList get keyDown();
- EventListenerList get keyPress();
- EventListenerList get keyUp();
- EventListenerList get load();
- EventListenerList get mouseDown();
- EventListenerList get mouseMove();
- EventListenerList get mouseOut();
- EventListenerList get mouseOver();
- EventListenerList get mouseUp();
- EventListenerList get mouseWheel();
- EventListenerList get paste();
- EventListenerList get reset();
- EventListenerList get scroll();
- EventListenerList get search();
- EventListenerList get select();
- EventListenerList get selectStart();
- EventListenerList get submit();
- EventListenerList get touchCancel();
- EventListenerList get touchEnd();
- EventListenerList get touchLeave();
- EventListenerList get touchMove();
- EventListenerList get touchStart();
- EventListenerList get transitionEnd();
- EventListenerList get fullscreenChange();
-}
-
-/**
- * All your element measurement needs in one place
- */
-interface ElementRect {
- ClientRect get client();
- ClientRect get offset();
- ClientRect get scroll();
- ClientRect get bounding();
- List<ClientRect> get clientRects();
-}
-
-
-interface Element extends Node /*, common.NodeSelector, common.ElementTraversal */
- default ElementWrappingImplementation {
-
- Element.html(String html);
- Element.tag(String tag);
-
- Map<String, String> get attributes();
- void set attributes(Map<String, String> value);
-
- ElementList get elements();
-
- // TODO: The type of value should be Collection<Element>. See http://b/5392897
- void set elements(value);
-
- Set<String> get classes();
-
- // TODO: The type of value should be Collection<String>. See http://b/5392897
- void set classes(value);
-
- Map<String, String> get dataAttributes();
- void set dataAttributes(Map<String, String> value);
-
- String get contentEditable();
-
- void set contentEditable(String value);
-
- String get dir();
-
- void set dir(String value);
-
- bool get draggable();
-
- void set draggable(bool value);
-
- Element get firstElementChild();
-
- bool get hidden();
-
- void set hidden(bool value);
-
- String get id();
-
- void set id(String value);
-
- String get innerHTML();
-
- void set innerHTML(String value);
-
- bool get isContentEditable();
-
- String get lang();
-
- void set lang(String value);
-
- Element get lastElementChild();
-
- Element get nextElementSibling();
-
- Element get offsetParent();
-
- String get outerHTML();
-
- Element get previousElementSibling();
-
- void set scrollLeft(int value);
-
- void set scrollTop(int value);
-
- bool get spellcheck();
-
- void set spellcheck(bool value);
-
- CSSStyleDeclaration get style();
-
- int get tabIndex();
-
- void set tabIndex(int value);
-
- String get tagName();
-
- String get title();
-
- void set title(String value);
-
- String get webkitdropzone();
-
- void set webkitdropzone(String value);
-
- void blur();
-
- void focus();
-
- Element insertAdjacentElement([String where, Element element]);
-
- void insertAdjacentHTML([String position_OR_where, String text]);
-
- void insertAdjacentText([String where, String text]);
-
- Element query(String selectors);
-
- ElementList queryAll(String selectors);
-
- Element get parent();
-
- void scrollByLines([int lines]);
-
- void scrollByPages([int pages]);
-
- void scrollIntoView([bool centerIfNeeded]);
-
- bool matchesSelector([String selectors]);
-
- Future<ElementRect> get rect();
-
- Future<CSSStyleDeclaration> get computedStyle();
-
- Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement);
-
- ElementEvents get on();
-
- Element clone(bool deep);
-}

Powered by Google App Engine
This is Rietveld 408576698