Index: runtime/bin/vmservice/client/lib/src/elements/io_view.dart |
diff --git a/runtime/bin/vmservice/client/lib/src/elements/io_view.dart b/runtime/bin/vmservice/client/lib/src/elements/io_view.dart |
index c0196b240c0860f51656bcb41926a26f344cdd99..bd44740413b92025f991a320ebd2e3975e704d41 100644 |
--- a/runtime/bin/vmservice/client/lib/src/elements/io_view.dart |
+++ b/runtime/bin/vmservice/client/lib/src/elements/io_view.dart |
@@ -62,14 +62,16 @@ class IOHttpServerViewElement extends ObservatoryElement { |
}); |
} |
- void enteredView() { |
- super.enteredView(); |
+ @override |
+ void attached() { |
+ super.attached(); |
// Start a timer to update the isolate summary once a second. |
_updateTimer = new Timer(new Duration(seconds: 1), _updateHttpServer); |
} |
- void leftView() { |
- super.leftView(); |
+ @override |
+ void detached() { |
+ super.detached(); |
if (_updateTimer != null) { |
_updateTimer.cancel(); |
_updateTimer = null; |
@@ -96,14 +98,16 @@ class IOHttpServerConnectionViewElement extends ObservatoryElement { |
}); |
} |
- void enteredView() { |
- super.enteredView(); |
+ @override |
+ void attached() { |
+ super.attached(); |
// Start a timer to update the isolate summary once a second. |
_updateTimer = new Timer(new Duration(seconds: 1), _updateHttpServer); |
} |
- void leftView() { |
- super.leftView(); |
+ @override |
+ void detached() { |
+ super.detached(); |
if (_updateTimer != null) { |
_updateTimer.cancel(); |
_updateTimer = null; |
@@ -206,14 +210,16 @@ class IORandomAccessFileViewElement extends ObservatoryElement { |
}); |
} |
- void enteredView() { |
- super.enteredView(); |
+ @override |
+ void attached() { |
+ super.attached(); |
// Start a timer to update the isolate summary once a second. |
_updateTimer = new Timer(new Duration(seconds: 1), _updateFile); |
} |
- void leftView() { |
- super.leftView(); |
+ @override |
+ void detached() { |
+ super.detached(); |
if (_updateTimer != null) { |
_updateTimer.cancel(); |
_updateTimer = null; |
@@ -259,14 +265,16 @@ class IOProcessViewElement extends ObservatoryElement { |
}); |
} |
- void enteredView() { |
- super.enteredView(); |
+ @override |
+ void attached() { |
+ super.attached(); |
// Start a timer to update the isolate summary once a second. |
_updateTimer = new Timer(new Duration(seconds: 1), _updateFile); |
} |
- void leftView() { |
- super.leftView(); |
+ @override |
+ void detached() { |
+ super.detached(); |
if (_updateTimer != null) { |
_updateTimer.cancel(); |
_updateTimer = null; |