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

Unified Diff: dart/site/try/src/compilation.dart

Issue 214513005: Add CompilationUnit abstraction for tracking "project files". (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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: dart/site/try/src/compilation.dart
diff --git a/dart/site/try/src/compilation.dart b/dart/site/try/src/compilation.dart
index 9228ed417118164ae31b596b67b7e8e0fb7e91c2..0ba2741fabb7e7243cec0778ea8eaf0237145f06 100644
--- a/dart/site/try/src/compilation.dart
+++ b/dart/site/try/src/compilation.dart
@@ -11,7 +11,8 @@ import 'dart:html' show
IFrameElement,
MessageEvent,
Url,
- Worker;
+ Worker,
+ window;
import 'dart:async' show
Timer;
@@ -22,7 +23,6 @@ import 'dart:isolate' show
import 'editor.dart' show
addDiagnostic,
- currentSource,
isMalformedInput;
import 'run.dart' show
@@ -63,6 +63,9 @@ const String PRIVATE_SCHEME = 'org-trydart';
SendPort compilerPort;
Timer compilerTimer;
+// TODO(ahe): Remove this.
+String get currentSource => window.localStorage['currentSource'];
+
void scheduleCompilation() {
if (compilationPaused) return;
if (compilerTimer != null) {

Powered by Google App Engine
This is Rietveld 408576698