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

Unified Diff: bin/dwc_browser.dart

Issue 11305009: Fix dwc extension with latest js-interop, small fix to dwc, and updates to (Closed) Base URL: git@github.com:dart-lang/dart-web-components.git@master
Patch Set: Created 8 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 | « no previous file | example/explainer/build_examples.dart » ('j') | extension/background.html » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/dwc_browser.dart
diff --git a/bin/dwc_browser.dart b/bin/dwc_browser.dart
index eed3c5200413a9ed6e741a90a9ba54c1f85bc6bb..157a0591fa0f8dbf15c8c6a054712c4caba0c720 100644
--- a/bin/dwc_browser.dart
+++ b/bin/dwc_browser.dart
@@ -29,22 +29,21 @@ void main() {
}
/**
- * Parse all templates in [sourceFullFn].
+ * Process the input file at [sourceUri] with the 'dwc' compiler.
* [sourcePagePort] is a Chrome extension port used to communicate back to the
* source page that will consume these proxied urls.
* See extension/background.js.
*/
-void parse(js.Proxy sourcePagePort, String sourceFullFn) {
+void parse(js.Proxy sourcePagePort, String sourceUri) {
// TODO(jacobr): we need to send error messages back to sourcePagePort.
js.retain(sourcePagePort);
- print("Processing: $sourceFullFn");
-
- Uri uri = new Uri.fromString(sourceFullFn);
+ print("Processing: $sourceUri");
+ Uri uri = new Uri.fromString(sourceUri);
fileSystem = new BrowserFileSystem(uri.scheme, sourcePagePort);
// TODO(jacobr): provide a way to pass in options.
var options = CompilerOptions.parse(['--no-colors', uri.path]);
messages = new Messages(options: options);
- asyncTime('Compiled $sourceFullFn', () {
+ asyncTime('Compiled $sourceUri', () {
var compiler = new Compiler(fileSystem, options);
return compiler.run().chain((_) {
for (var file in compiler.output) {
« no previous file with comments | « no previous file | example/explainer/build_examples.dart » ('j') | extension/background.html » ('J')

Powered by Google App Engine
This is Rietveld 408576698