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

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

Issue 8839010: New version of the bindings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years 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
« no previous file with comments | « client/html/src/Document.dart ('k') | client/html/src/ElementWrappingImplementation.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/html/src/DocumentWrappingImplementation.dart
diff --git a/client/html/src/DocumentWrappingImplementation.dart b/client/html/src/DocumentWrappingImplementation.dart
index 0fd9623a0b91aa3c3a8ac19f1ae39dcbb4c78baa..2b5ca88aa58a9b23d2ac3716d0a9562a5431c3ef 100644
--- a/client/html/src/DocumentWrappingImplementation.dart
+++ b/client/html/src/DocumentWrappingImplementation.dart
@@ -21,11 +21,11 @@ class DocumentWrappingImplementation extends ElementWrappingImplementation imple
DocumentWrappingImplementation._wrap(this._documentPtr, ptr) : super._wrap(ptr) {
// We have to set the back ptr on the document as well as the documentElement
// so that it is always simple to detect when an existing wrapper exists.
- _documentPtr.dartObjectLocalStorage = this;
+ _documentPtr.dynamic.dartObjectLocalStorage = this;
}
/** @domName HTMLDocument.activeElement */
- Element get activeElement() => LevelDom.wrapElement(_documentPtr.activeElement);
+ Element get activeElement() => LevelDom.wrapElement(_documentPtr.dynamic.activeElement);
Node get parent() => null;
@@ -51,7 +51,7 @@ class DocumentWrappingImplementation extends ElementWrappingImplementation imple
Window get window() => LevelDom.wrapWindow(_documentPtr.defaultView);
/** @domName HTMLDocument.designMode */
- void set designMode(String value) { _documentPtr.designMode = value; }
+ void set designMode(String value) { _documentPtr.dynamic.designMode = value; }
/** @domName Document.domain */
String get domain() => _documentPtr.domain;
@@ -90,13 +90,8 @@ class DocumentWrappingImplementation extends ElementWrappingImplementation imple
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]) {
+ Event createEvent(String eventType) {
return LevelDom.wrapEvent(_documentPtr.createEvent(eventType));
}
« no previous file with comments | « client/html/src/Document.dart ('k') | client/html/src/ElementWrappingImplementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698