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

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 23241014: Regen dart:html (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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:
Download patch
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index b584d357de9b7e064db7c92b8e4fa9ce11d509da..b527e44e21cff6a940947ddc42c8c8cab0b7af63 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -7183,6 +7183,12 @@ class Document extends Node native "Document"
@DocsEditable()
Event $dom_createEvent(String eventType) native;
+ @JSName('createNodeIterator')
+ @DomName('Document.createNodeIterator')
+ @DocsEditable()
+ @Unstable()
+ NodeIterator $dom_createNodeIterator(Node root, [int whatToShow, NodeFilter filter, bool expandEntityReferences]) native;
+
@JSName('createRange')
@DomName('Document.createRange')
@DocsEditable()
@@ -7216,6 +7222,11 @@ class Document extends Node native "Document"
@Experimental()
TouchList $dom_createTouchList() native;
+ @JSName('createTreeWalker')
+ @DomName('Document.createTreeWalker')
+ @DocsEditable()
+ TreeWalker $dom_createTreeWalker(Node root, [int whatToShow, NodeFilter filter, bool expandEntityReferences]) native;
+
@JSName('elementFromPoint')
@DomName('Document.elementFromPoint')
@DocsEditable()
@@ -17904,6 +17915,47 @@ class NodeFilter extends Interceptor native "NodeFilter" {
@DocsEditable()
static const int SHOW_TEXT = 0x00000004;
}
+// Copyright (c) 2013, 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.
+
+
+@DomName('NodeIterator')
+@Unstable()
+class NodeIterator extends Interceptor native "NodeIterator" {
+ factory NodeIterator(Node root, int whatToShow) {
+ return document.$dom_createNodeIterator(root, whatToShow, null, false);
+ }
+
+ @DomName('NodeIterator.pointerBeforeReferenceNode')
+ @DocsEditable()
+ final bool pointerBeforeReferenceNode;
+
+ @DomName('NodeIterator.referenceNode')
+ @DocsEditable()
+ final Node referenceNode;
+
+ @DomName('NodeIterator.root')
+ @DocsEditable()
+ final Node root;
+
+ @DomName('NodeIterator.whatToShow')
+ @DocsEditable()
+ final int whatToShow;
+
+ @DomName('NodeIterator.detach')
+ @DocsEditable()
+ void detach() native;
+
+ @DomName('NodeIterator.nextNode')
+ @DocsEditable()
+ Node nextNode() native;
+
+ @DomName('NodeIterator.previousNode')
+ @DocsEditable()
+ Node previousNode() native;
+
+}
// Copyright (c) 2012, 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.
@@ -23609,6 +23661,69 @@ class TransitionEvent extends Event native "TransitionEvent,WebKitTransitionEven
@DocsEditable()
final String pseudoElement;
}
+// Copyright (c) 2013, 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.
+
+
+@DomName('TreeWalker')
+@Unstable()
+class TreeWalker extends Interceptor native "TreeWalker" {
+ factory TreeWalker(Node root, int whatToShow) {
+ return document.$dom_createTreeWalker(root, whatToShow, null, false);
+ }
+
+ @DomName('TreeWalker.currentNode')
+ @DocsEditable()
+ Node currentNode;
+
+ @DomName('TreeWalker.expandEntityReferences')
+ @DocsEditable()
+ // http://dom.spec.whatwg.org/#dom-traversal
+ @deprecated // deprecated
+ final bool expandEntityReferences;
+
+ @DomName('TreeWalker.filter')
+ @DocsEditable()
+ final NodeFilter filter;
+
+ @DomName('TreeWalker.root')
+ @DocsEditable()
+ final Node root;
+
+ @DomName('TreeWalker.whatToShow')
+ @DocsEditable()
+ final int whatToShow;
+
+ @DomName('TreeWalker.firstChild')
+ @DocsEditable()
+ Node firstChild() native;
+
+ @DomName('TreeWalker.lastChild')
+ @DocsEditable()
+ Node lastChild() native;
+
+ @DomName('TreeWalker.nextNode')
+ @DocsEditable()
+ Node nextNode() native;
+
+ @DomName('TreeWalker.nextSibling')
+ @DocsEditable()
+ Node nextSibling() native;
+
+ @DomName('TreeWalker.parentNode')
+ @DocsEditable()
+ Node parentNode() native;
+
+ @DomName('TreeWalker.previousNode')
+ @DocsEditable()
+ Node previousNode() native;
+
+ @DomName('TreeWalker.previousSibling')
+ @DocsEditable()
+ Node previousSibling() native;
+
+}
// Copyright (c) 2012, 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.
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698