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

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: Address Kasper's comments 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
« no previous file with comments | « dart/site/try/src/Makefile ('k') | dart/site/try/src/compilation_unit.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..b5da4dcafea23468ba7940dff5797a8506518d0d 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,13 @@ const String PRIVATE_SCHEME = 'org-trydart';
SendPort compilerPort;
Timer compilerTimer;
+// TODO(ahe): Remove this.
+String get currentSource => window.localStorage['currentSource'];
+
+void set currentSource(String text) {
+ window.localStorage['currentSource'] = text;
+}
+
void scheduleCompilation() {
if (compilationPaused) return;
if (compilerTimer != null) {
« no previous file with comments | « dart/site/try/src/Makefile ('k') | dart/site/try/src/compilation_unit.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698