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

Unified Diff: runtime/observatory/lib/src/elements/nav_bar.dart

Issue 2161633005: Converted Observatory nav-refresh element (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Final Merge Created 4 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
Index: runtime/observatory/lib/src/elements/nav_bar.dart
diff --git a/runtime/observatory/lib/src/elements/nav_bar.dart b/runtime/observatory/lib/src/elements/nav_bar.dart
index 3999db87c9116bd6aa64f45b7b26a15d66ebf4c4..7cb34060b4cf520f02785a7cfb6a69e9bbd98810 100644
--- a/runtime/observatory/lib/src/elements/nav_bar.dart
+++ b/runtime/observatory/lib/src/elements/nav_bar.dart
@@ -42,31 +42,6 @@ class NavMenuItemElement extends ObservatoryElement {
typedef Future RefreshCallback();
-@CustomTag('nav-refresh')
-class NavRefreshElement extends ObservatoryElement {
- @published RefreshCallback callback;
- @published bool active = false;
- @published String label = 'Refresh';
-
- NavRefreshElement.created() : super.created();
-
- void buttonClick(Event e, var detail, Node target) {
- if (active) {
- return;
- }
- active = true;
- if (callback != null) {
- callback()
- .catchError(app.handleException)
- .whenComplete(refreshDone);
- }
- }
-
- void refreshDone() {
- active = false;
- }
-}
-
@CustomTag('top-nav-menu')
class TopNavMenuElement extends ObservatoryElement {
@published bool last = false;
« no previous file with comments | « runtime/observatory/lib/src/elements/nav/refresh_wrapper.dart ('k') | runtime/observatory/lib/src/elements/nav_bar.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698