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

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: Use "Window" instead of "DOMWindow". 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..b5e3a752cc0b4876a31cf8f186656c85c7cd598f 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 */
Future<ElementRect> get rect() {
return _createMeasurementFuture(
() => new ElementRectWrappingImplementation(_ptr),
@@ -724,6 +733,7 @@ class ElementWrappingImplementation extends NodeWrappingImplementation implement
return getComputedStyle('');
}
+ /** @domName Window.getComputedStyle */
Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement) {
return _createMeasurementFuture(() =>
LevelDom.wrapCSSStyleDeclaration(
« no previous file with comments | « client/html/src/DocumentWrappingImplementation.dart ('k') | client/html/src/NodeWrappingImplementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698