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

Unified Diff: pkg/polymer/lib/src/transform/polyfill_injector.dart

Issue 23898009: Switch polymer's build.dart to use the new linter. This CL does the following (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: addressing john comments (part 2) - renamed files Created 7 years, 3 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: pkg/polymer/lib/src/transform/polyfill_injector.dart
diff --git a/pkg/polymer/lib/src/transform/polyfill_injector.dart b/pkg/polymer/lib/src/transform/polyfill_injector.dart
index 6b951139fb5cfa7a787f6c7ddf07f40aa965ee01..c80438846762903596d61d2379942169405f6519 100644
--- a/pkg/polymer/lib/src/transform/polyfill_injector.dart
+++ b/pkg/polymer/lib/src/transform/polyfill_injector.dart
@@ -21,10 +21,14 @@ import 'common.dart';
* script tag that loads the shadow_dom polyfill and interop.js (used for the
* css shimming).
*/
-class PolyfillInjector extends Transformer {
+class PolyfillInjector extends Transformer with PolymerTransformer {
+ final TransformOptions options;
+
+ PolyfillInjector(this.options);
+
/** Only run on entry point .html files. */
Future<bool> isPrimary(Asset input) =>
- new Future.value(isPrimaryHtml(input.id));
+ new Future.value(options.isHtmlEntryPoint(input.id));
Future apply(Transform transform) {
return readPrimaryAsHtml(transform).then((document) {
« no previous file with comments | « pkg/polymer/lib/src/transform/import_inliner.dart ('k') | pkg/polymer/lib/src/transform/script_compactor.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698