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

Unified Diff: client/dom/frog/dom_frog.dart

Issue 9310103: Add a constructor for DOMParser. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add tests and a template for DOMParser. Created 8 years, 10 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 | client/dom/generated/src/frog/DOMParser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/dom/frog/dom_frog.dart
diff --git a/client/dom/frog/dom_frog.dart b/client/dom/frog/dom_frog.dart
index bb9e357cbeb1a2509d38a61cf70d890bba321724..15ea4d9f5edabbc70c8905ea4ceb836da528b6b3 100644
--- a/client/dom/frog/dom_frog.dart
+++ b/client/dom/frog/dom_frog.dart
@@ -1159,6 +1159,7 @@ class _DOMMimeTypeArrayJs extends _DOMTypeJs implements DOMMimeTypeArray native
}
class _DOMParserJs extends _DOMTypeJs implements DOMParser native "*DOMParser" {
+ DOMParser() native;
_DocumentJs parseFromString(String str, String contentType) native;
}
@@ -14413,7 +14414,9 @@ interface DOMMimeTypeArray {
// WARNING: Do not edit - generated code.
-interface DOMParser {
+interface DOMParser default _DOMParserFactoryProvider {
+
+ DOMParser();
Document parseFromString(String str, String contentType);
}
@@ -26692,6 +26695,10 @@ class _AudioContextFactoryProvider {
''';
}
+class _DOMParserFactoryProvider {
+ factory DOMParser() native '''return new DOMParser();''';
+}
+
class _FileReaderFactoryProvider {
factory FileReader() native '''return new FileReader();''';
« no previous file with comments | « no previous file | client/dom/generated/src/frog/DOMParser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698