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

Unified Diff: sdk/lib/html/dartium/html_dartium.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:
Download patch
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | sdk/lib/svg/dart2js/svg_dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dartium/html_dartium.dart
diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
index 002f4e49560e8f6e25ac3d6d225945f4b7262c35..17da9d9ef7548f2db5a83419b10b44c4f79c3a43 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -6669,6 +6669,10 @@ class Document extends Node
@DocsEditable
Event $dom_createEvent(String eventType) native "Document_createEvent_Callback";
+ @DomName('Document.createNodeIterator')
+ @DocsEditable
+ NodeIterator $dom_createNodeIterator(Node root, int whatToShow, NodeFilter filter, bool expandEntityReferences) native "Document_createNodeIterator_Callback";
+
@DomName('Document.createRange')
@DocsEditable
Range $dom_createRange() native "Document_createRange_Callback";
@@ -6686,6 +6690,10 @@ class Document extends Node
@DocsEditable
TouchList $dom_createTouchList() native "Document_createTouchList_Callback";
+ @DomName('Document.createTreeWalker')
+ @DocsEditable
+ TreeWalker $dom_createTreeWalker(Node root, int whatToShow, NodeFilter filter, bool expandEntityReferences) native "Document_createTreeWalker_Callback";
+
@DomName('Document.elementFromPoint')
@DocsEditable
Element $dom_elementFromPoint(int x, int y) native "Document_elementFromPoint_Callback";
@@ -9808,19 +9816,6 @@ class EmbedElement extends _Element_Merged {
// WARNING: Do not edit - generated code.
-@DocsEditable
-@DomName('EntityReference')
-class EntityReference extends Node {
- EntityReference.internal() : super.internal();
-
-}
-// 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.
-
-
typedef void _EntriesCallback(List<Entry> entries);
// 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
@@ -17185,31 +17180,19 @@ class NodeFilter extends NativeFieldWrapperClass1 {
static const int SHOW_TEXT = 0x00000004;
- @DomName('NodeFilter.acceptNode')
- @DocsEditable
- int acceptNode(Node n) native "NodeFilter_acceptNode_Callback";
-
}
-// 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.
-// WARNING: Do not edit - generated code.
-
-@DocsEditable
@DomName('NodeIterator')
class NodeIterator extends NativeFieldWrapperClass1 {
+ factory NodeIterator(Node root, int whatToShow) {
+ return document.$dom_createNodeIterator(root, whatToShow, null, false);
+ }
NodeIterator.internal();
- @DomName('NodeIterator.expandEntityReferences')
- @DocsEditable
- bool get expandEntityReferences native "NodeIterator_expandEntityReferences_Getter";
-
- @DomName('NodeIterator.filter')
- @DocsEditable
- NodeFilter get filter native "NodeIterator_filter_Getter";
-
@DomName('NodeIterator.pointerBeforeReferenceNode')
@DocsEditable
bool get pointerBeforeReferenceNode native "NodeIterator_pointerBeforeReferenceNode_Getter";
@@ -23169,16 +23152,16 @@ class TransitionEvent extends Event {
String get pseudoElement native "TransitionEvent_pseudoElement_Getter";
}
-// 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.
-// WARNING: Do not edit - generated code.
-
-@DocsEditable
@DomName('TreeWalker')
class TreeWalker extends NativeFieldWrapperClass1 {
+ factory TreeWalker(Node root, int whatToShow) {
+ return document.$dom_createTreeWalker(root, whatToShow, null, false);
+ }
TreeWalker.internal();
@DomName('TreeWalker.currentNode')
@@ -26127,6 +26110,19 @@ class _Element_Merged extends Element {
@DocsEditable
+@DomName('EntityReference')
+abstract class _EntityReference extends Node {
+ _EntityReference.internal() : super.internal();
+
+}
+// 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.
+
+
+@DocsEditable
@DomName('EntryArray')
class _EntryArray extends NativeFieldWrapperClass1 implements List<Entry> {
_EntryArray.internal();
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | sdk/lib/svg/dart2js/svg_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698