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

Unified Diff: runtime/observatory/lib/src/service/object.dart

Issue 959043003: Build script views programmatically. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: column limit Created 5 years, 10 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 | « runtime/observatory/lib/src/elements/script_view.dart ('k') | runtime/observatory/test/caching_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/lib/src/service/object.dart
diff --git a/runtime/observatory/lib/src/service/object.dart b/runtime/observatory/lib/src/service/object.dart
index 684931632eb754dd25883d9927e4617a9c707279..8f81d7ef0e03ab7c7872a9ca86a50c6e6d600aad 100644
--- a/runtime/observatory/lib/src/service/object.dart
+++ b/runtime/observatory/lib/src/service/object.dart
@@ -313,6 +313,7 @@ abstract class Coverage {
var coverageList = coverage['coverage'];
assert(coverageList != null);
processCoverageData(coverageList);
+ return this;
});
}
}
@@ -2116,6 +2117,8 @@ class Script extends ServiceObject with Coverage {
_hits[line] = hit;
}
_applyHitsToLines();
+ // Notify any Observers that this Script's state has changed.
+ notifyChange(null);
}
void _processSource(String source) {
@@ -2136,6 +2139,8 @@ class Script extends ServiceObject with Coverage {
lines.add(new ScriptLine(this, i + 1, sourceLines[i]));
}
_applyHitsToLines();
+ // Notify any Observers that this Script's state has changed.
+ notifyChange(null);
}
void _applyHitsToLines() {
« no previous file with comments | « runtime/observatory/lib/src/elements/script_view.dart ('k') | runtime/observatory/test/caching_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698