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

Unified Diff: client/html/src/DocumentWrappingImplementation.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/DocumentWrappingImplementation.dart
diff --git a/client/html/src/DocumentWrappingImplementation.dart b/client/html/src/DocumentWrappingImplementation.dart
index c2f417c91902f092023e3f04850005653276fe87..0fd9623a0b91aa3c3a8ac19f1ae39dcbb4c78baa 100644
--- a/client/html/src/DocumentWrappingImplementation.dart
+++ b/client/html/src/DocumentWrappingImplementation.dart
@@ -24,91 +24,121 @@ class DocumentWrappingImplementation extends ElementWrappingImplementation imple
_documentPtr.dartObjectLocalStorage = this;
}
+ /** @domName HTMLDocument.activeElement */
Element get activeElement() => LevelDom.wrapElement(_documentPtr.activeElement);
Node get parent() => null;
+ /** @domName Document.body */
Element get body() => LevelDom.wrapElement(_documentPtr.body);
+ /** @domName Document.body */
void set body(Element value) { _documentPtr.body = LevelDom.unwrap(value); }
+ /** @domName Document.charset */
String get charset() => _documentPtr.charset;
+ /** @domName Document.charset */
void set charset(String value) { _documentPtr.charset = value; }
+ /** @domName Document.cookie */
String get cookie() => _documentPtr.cookie;
+ /** @domName Document.cookie */
void set cookie(String value) { _documentPtr.cookie = value; }
+ /** @domName Document.defaultView */
Window get window() => LevelDom.wrapWindow(_documentPtr.defaultView);
+ /** @domName HTMLDocument.designMode */
void set designMode(String value) { _documentPtr.designMode = value; }
+ /** @domName Document.domain */
String get domain() => _documentPtr.domain;
+ /** @domName Document.head */
HeadElement get head() => LevelDom.wrapHeadElement(_documentPtr.head);
+ /** @domName Document.lastModified */
String get lastModified() => _documentPtr.lastModified;
+ /** @domName Document.readyState */
String get readyState() => _documentPtr.readyState;
+ /** @domName Document.referrer */
String get referrer() => _documentPtr.referrer;
+ /** @domName Document.styleSheets */
StyleSheetList get styleSheets() => LevelDom.wrapStyleSheetList(_documentPtr.styleSheets);
+ /** @domName Document.title */
String get title() => _documentPtr.title;
+ /** @domName Document.title */
void set title(String value) { _documentPtr.title = value; }
+ /** @domName Document.webkitHidden */
bool get webkitHidden() => _documentPtr.webkitHidden;
+ /** @domName Document.webkitVisibilityState */
String get webkitVisibilityState() => _documentPtr.webkitVisibilityState;
+ /** @domName Document.caretRangeFromPoint */
Future<Range> caretRangeFromPoint([int x = null, int y = null]) {
return _createMeasurementFuture(
() => LevelDom.wrapRange(_documentPtr.caretRangeFromPoint(x, y)),
new Completer<Range>());
}
+ /** @domName Document.createElement */
Element createElement([String tagName = null]) {
return LevelDom.wrapElement(_documentPtr.createElement(tagName));
}
+ /** @domName Document.createEvent */
Event createEvent([String eventType = null]) {
return LevelDom.wrapEvent(_documentPtr.createEvent(eventType));
}
+ /** @domName Document.elementFromPoint */
Future<Element> elementFromPoint([int x = null, int y = null]) {
return _createMeasurementFuture(
() => LevelDom.wrapElement(_documentPtr.elementFromPoint(x, y)),
new Completer<Element>());
}
+ /** @domName Document.execCommand */
bool execCommand([String command = null, bool userInterface = null, String value = null]) {
return _documentPtr.execCommand(command, userInterface, value);
}
+ /** @domName Document.getCSSCanvasContext */
CanvasRenderingContext getCSSCanvasContext(String contextId, String name,
int width, int height) {
return LevelDom.wrapCanvasRenderingContext(_documentPtr.getCSSCanvasContext(contextId, name, width, height));
}
+ /** @domName Document.queryCommandEnabled */
bool queryCommandEnabled([String command = null]) {
return _documentPtr.queryCommandEnabled(command);
}
+ /** @domName Document.queryCommandIndeterm */
bool queryCommandIndeterm([String command = null]) {
return _documentPtr.queryCommandIndeterm(command);
}
+ /** @domName Document.queryCommandState */
bool queryCommandState([String command = null]) {
return _documentPtr.queryCommandState(command);
}
+ /** @domName Document.queryCommandSupported */
bool queryCommandSupported([String command = null]) {
return _documentPtr.queryCommandSupported(command);
}
+ /** @domName Document.queryCommandValue */
String queryCommandValue([String command = null]) {
return _documentPtr.queryCommandValue(command);
}
« no previous file with comments | « client/html/src/DocumentFragmentWrappingImplementation.dart ('k') | client/html/src/ElementWrappingImplementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698