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

Unified Diff: runtime/observatory/lib/src/app/application.dart

Issue 1217823009: Make VM event streams look like real dart streams. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: merge with master Created 5 years, 5 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/service_common.dart ('k') | runtime/observatory/lib/src/app/page.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/lib/src/app/application.dart
diff --git a/runtime/observatory/lib/src/app/application.dart b/runtime/observatory/lib/src/app/application.dart
index ef565f59f1492cd50874006cce095feb8c1a5ef4..3dc046d9033364feae2f6c64acadbbd3f794f25f 100644
--- a/runtime/observatory/lib/src/app/application.dart
+++ b/runtime/observatory/lib/src/app/application.dart
@@ -23,6 +23,7 @@ class ObservatoryApplication extends Observable {
@observable Page currentPage;
VM _vm;
VM get vm => _vm;
+
set vm(VM vm) {
if (_vm == vm) {
// Do nothing.
@@ -53,7 +54,8 @@ class ObservatoryApplication extends Observable {
new ServiceEvent.connectionClosed(reason)));
});
- vm.events.stream.listen(_onEvent);
+ vm.listenEventStream(VM.kIsolateStream, _onEvent);
+ vm.listenEventStream(VM.kDebugStream, _onEvent);
}
_vm = vm;
}
@@ -88,11 +90,9 @@ class ObservatoryApplication extends Observable {
switch(event.kind) {
case ServiceEvent.kIsolateStart:
case ServiceEvent.kIsolateUpdate:
- case ServiceEvent.kGraph:
case ServiceEvent.kBreakpointAdded:
case ServiceEvent.kBreakpointResolved:
case ServiceEvent.kBreakpointRemoved:
- case ServiceEvent.kGC:
case ServiceEvent.kDebuggerSettingsUpdate:
// Ignore for now.
break;
« no previous file with comments | « runtime/observatory/lib/service_common.dart ('k') | runtime/observatory/lib/src/app/page.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698