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

Unified Diff: pkg/shadow_dom/tool/shadowdom.js

Issue 22951003: Build shadow_dom package in dart/pkg (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added readme.txt on how to build package 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:
View side-by-side diff with in-line comments
Download patch
« .gitignore ('K') | « pkg/shadow_dom/tool/readme.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/shadow_dom/tool/shadowdom.js
diff --git a/pkg/shadow_dom/tool/shadowdom.js b/pkg/shadow_dom/tool/shadowdom.js
new file mode 100644
index 0000000000000000000000000000000000000000..91f58197c17ce457e6b9186c7eb32269f23aa410
--- /dev/null
+++ b/pkg/shadow_dom/tool/shadowdom.js
@@ -0,0 +1,44 @@
+// Copyright 2013 The Polymer Authors. All rights reserved.
+// Use of this source code is goverened by a BSD-style
+// license that can be found in the LICENSE file.
+
+(function() {
+ var thisFile = 'shadowdom.js';
+ var base = '';
+ Array.prototype.forEach.call(document.querySelectorAll('script[src]'), function(s) {
+ var src = s.getAttribute('src');
+ var re = new RegExp(thisFile + '[^\\\\]*');
+ var match = src.match(re);
+ if (match) {
+ base = src.slice(0, -match[0].length);
+ }
+ });
+ base += '../../../third_party/polymer/ShadowDOM/src/';
+
+ [
+ 'sidetable.js',
+ 'wrappers.js',
+ 'wrappers/events.js',
+ 'wrappers/NodeList.js',
+ 'wrappers/Node.js',
+ 'querySelector.js',
+ 'wrappers/node-interfaces.js',
+ 'wrappers/CharacterData.js',
+ 'wrappers/Element.js',
+ 'wrappers/HTMLElement.js',
+ 'wrappers/HTMLContentElement.js',
+ 'wrappers/HTMLShadowElement.js',
+ 'wrappers/HTMLTemplateElement.js',
+ 'wrappers/HTMLUnknownElement.js',
+ 'wrappers/generic.js',
+ 'wrappers/ShadowRoot.js',
+ 'ShadowRenderer.js',
+ 'wrappers/Document.js',
+ 'wrappers/Window.js',
+ 'wrappers/MutationObserver.js',
+ 'wrappers/override-constructors.js'
+ ].forEach(function(src) {
+ document.write('<script src="' + base + src + '"></script>');
+ });
+
+})();
« .gitignore ('K') | « pkg/shadow_dom/tool/readme.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698