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

Unified Diff: client/dom/templates/dom/wrapping/wrapping_dom.js

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
Index: client/dom/templates/dom/wrapping/wrapping_dom.js
diff --git a/client/dom/templates/dom/wrapping/wrapping_dom.js b/client/dom/templates/dom/wrapping/wrapping_dom.js
index ab532441ec0913d8310e16a6ed04877b56e52b73..ff6819e5b1a06e8acd74b87d3462726787efcf43 100644
--- a/client/dom/templates/dom/wrapping/wrapping_dom.js
+++ b/client/dom/templates/dom/wrapping/wrapping_dom.js
@@ -58,6 +58,14 @@ function native__AudioContextFactoryProvider_create() {
}
}
+function native__DOMParserFactoryProvider_create() {
+ try {
+ return __dom_wrap(new DOMParser());
+ } catch (e) {
+ throw __dom_wrap_exception(e);
+ }
+}
+
function native__FileReaderFactoryProvider_create() {
try {
return __dom_wrap(new FileReader());
« no previous file with comments | « client/dom/templates/dom/interface/interface_DOMParser.darttemplate ('k') | client/tests/client/client.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698