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

Unified Diff: pkg/polymer/lib/src/build/common.dart

Issue 29823005: fixes to polymer, gets tests back to a stable state (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 | « pkg/polymer/lib/polymer.dart ('k') | pkg/polymer/lib/src/build/polyfill_injector.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/lib/src/build/common.dart
diff --git a/pkg/polymer/lib/src/build/common.dart b/pkg/polymer/lib/src/build/common.dart
index 1ae2a90de1f376984d7741c26ff5cec0b26b6046..4bbd946cfee9842d6d374289b83dee105954a5a4 100644
--- a/pkg/polymer/lib/src/build/common.dart
+++ b/pkg/polymer/lib/src/build/common.dart
@@ -38,7 +38,26 @@ Document _parseHtml(String contents, String sourcePath, TransformLogger logger,
class TransformOptions {
List<String> entryPoints;
- TransformOptions([entryPoints])
+ /**
+ * True to enable Content Security Policy.
+ * This means the HTML page will include *.dart.precompiled.js
+ *
+ * This flag has no effect unless [directlyIncludeJS] is enabled.
+ */
+ bool contentSecurityPolicy;
+
+ /**
+ * True to include the compiled JavaScript directly from the HTML page.
+ * If enabled this will remove "packages/browser/dart.js" and replace
+ * `type="application/dart"` scripts with equivalent *.dart.js files.
+ *
+ * If [contentSecurityPolicy] enabled, this will reference files
+ * named *.dart.precompiled.js.
+ */
+ bool directlyIncludeJS;
+
+ TransformOptions({entryPoints, this.contentSecurityPolicy: false,
+ this.directlyIncludeJS: true})
: entryPoints = entryPoints == null ? null
: entryPoints.map(_systemToAssetPath).toList();
« no previous file with comments | « pkg/polymer/lib/polymer.dart ('k') | pkg/polymer/lib/src/build/polyfill_injector.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698