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

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

Issue 13685021: Properly exposing NodeIterator and TreeWalker. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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:
View side-by-side diff with in-line comments
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 d9fccaef4391b92c0def8ead4924c0b08c035af1..0c02542465fbbeeb928a77dca33fd1d7d0507bda 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -6146,6 +6146,11 @@ class Document extends Node native "Document"
@DocsEditable
Event $dom_createEvent(String eventType) native;
+ @JSName('createNodeIterator')
+ @DomName('Document.createNodeIterator')
+ @DocsEditable
+ NodeIterator $dom_createNodeIterator(Node root, int whatToShow, NodeFilter filter, bool expandEntityReferences) native;
+
@JSName('createRange')
@DomName('Document.createRange')
@DocsEditable
@@ -6173,6 +6178,11 @@ class Document extends Node native "Document"
@DocsEditable
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
@@ -9364,15 +9374,6 @@ class EmbedElement extends Element native "HTMLEmbedElement" {
// 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.
-
-@DocsEditable
-@DomName('EntityReference')
-class EntityReference extends Node native "EntityReference" {
-}
-// 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.
-
// WARNING: Do not edit - generated code.
@@ -16080,27 +16081,17 @@ class NodeFilter native "NodeFilter" {
static const int SHOW_PROCESSING_INSTRUCTION = 0x00000040;
static const int SHOW_TEXT = 0x00000004;
-
- @DomName('NodeFilter.acceptNode')
- @DocsEditable
- int acceptNode(Node n) native;
}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// 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.
-@DocsEditable
@DomName('NodeIterator')
class NodeIterator native "NodeIterator" {
-
- @DomName('NodeIterator.expandEntityReferences')
- @DocsEditable
- final bool expandEntityReferences;
-
- @DomName('NodeIterator.filter')
- @DocsEditable
- final NodeFilter filter;
+ factory NodeIterator(Node root, int whatToShow) {
+ return document.$dom_createNodeIterator(root, whatToShow, null, false);
+ }
@DomName('NodeIterator.pointerBeforeReferenceNode')
@DocsEditable
@@ -16129,6 +16120,7 @@ class NodeIterator native "NodeIterator" {
@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
@@ -21413,14 +21405,16 @@ class TransitionEvent extends Event native "TransitionEvent,WebKitTransitionEven
@DocsEditable
final String pseudoElement;
}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// 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.
-@DocsEditable
@DomName('TreeWalker')
class TreeWalker native "TreeWalker" {
+ factory TreeWalker(Node root, int whatToShow) {
+ return document.$dom_createTreeWalker(root, whatToShow, null, false);
+ }
@DomName('TreeWalker.currentNode')
@DocsEditable
@@ -21469,6 +21463,7 @@ class TreeWalker native "TreeWalker" {
@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
@@ -24353,6 +24348,15 @@ class _DomPoint native "WebKitPoint" {
@DocsEditable
+@DomName('EntityReference')
+abstract class _EntityReference extends Node native "EntityReference" {
+}
+// 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.
+
+
+@DocsEditable
@DomName('EntryArray')
class _EntryArray implements JavaScriptIndexingBehavior, List<Entry> native "EntryArray" {
« 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