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

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

Issue 8548019: Add a script for determining which DOM methods correspond to which HTML methods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: More code review changes Created 9 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: client/html/src/ElementWrappingImplementation.dart
diff --git a/client/html/src/ElementWrappingImplementation.dart b/client/html/src/ElementWrappingImplementation.dart
index c30d01e68b2244494634cba5dbdbc1e02d8ece54..00b6b5f2a25317c504d8dab0814422d2750ef5a4 100644
--- a/client/html/src/ElementWrappingImplementation.dart
+++ b/client/html/src/ElementWrappingImplementation.dart
@@ -292,14 +292,17 @@ class ElementAttributeMap implements Map<String, String> {
return false;
}
+ /** @domName Element.hasAttribute */
bool containsKey(String key) {
return _element.hasAttribute(key);
}
+ /** @domName Element.getAttribute */
String operator [](String key) {
return _element.getAttribute(key);
}
+ /** @domName Element.setAttribute */
void operator []=(String key, String value) {
_element.setAttribute(key, value);
}
@@ -310,6 +313,7 @@ class ElementAttributeMap implements Map<String, String> {
}
}
+ /** @domName Element.removeAttribute */
String remove(String key) {
_element.removeAttribute(key);
}
@@ -438,6 +442,7 @@ class SimpleClientRect implements ClientRect {
// triggering unneeded layouts.
/**
* All your element measurement needs in one place
+ * @domName none
*/
class ElementRectWrappingImplementation implements ElementRect {
final ClientRect client;
@@ -671,14 +676,17 @@ class ElementWrappingImplementation extends NodeWrappingImplementation implement
_ptr.focus();
}
+ /** @domName HTMLElement.insertAdjacentElement */
Element insertAdjacentElement([String where = null, Element element = null]) {
return LevelDom.wrapElement(_ptr.insertAdjacentElement(where, LevelDom.unwrap(element)));
}
+ /** @domName HTMLElement.insertAdjacentHTML */
void insertAdjacentHTML([String position_OR_where = null, String text = null]) {
_ptr.insertAdjacentHTML(position_OR_where, text);
}
+ /** @domName HTMLElement.insertAdjacentText */
void insertAdjacentText([String where = null, String text = null]) {
_ptr.insertAdjacentText(where, text);
}
@@ -713,6 +721,7 @@ class ElementWrappingImplementation extends NodeWrappingImplementation implement
void set scrollTop(int value) { _ptr.scrollTop = value; }
+ /** @domName getClientRects */
Jacob 2011/11/21 23:12:11 Should be Element.getClientRects?
nweiz 2011/11/22 01:11:09 "Element" is the default class, so it can be omitt
Future<ElementRect> get rect() {
return _createMeasurementFuture(
() => new ElementRectWrappingImplementation(_ptr),
@@ -724,6 +733,7 @@ class ElementWrappingImplementation extends NodeWrappingImplementation implement
return getComputedStyle('');
}
+ /** @domName DOMWindow.getComputedStyle */
Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement) {
return _createMeasurementFuture(() =>
LevelDom.wrapCSSStyleDeclaration(

Powered by Google App Engine
This is Rietveld 408576698