| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library nav_bar_element; | 5 library nav_bar_element; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:html'; | 8 import 'dart:html'; |
| 9 import 'observatory_element.dart'; | 9 import 'observatory_element.dart'; |
| 10 import 'package:observatory/service.dart'; | 10 import 'package:observatory/service.dart'; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 } | 59 } |
| 60 } | 60 } |
| 61 | 61 |
| 62 @CustomTag('top-nav-menu') | 62 @CustomTag('top-nav-menu') |
| 63 class TopNavMenuElement extends ObservatoryElement { | 63 class TopNavMenuElement extends ObservatoryElement { |
| 64 @published bool last = false; | 64 @published bool last = false; |
| 65 | 65 |
| 66 TopNavMenuElement.created() : super.created(); | 66 TopNavMenuElement.created() : super.created(); |
| 67 } | 67 } |
| 68 | 68 |
| 69 @CustomTag('vm-nav-menu') |
| 70 class VMNavMenuElement extends ObservatoryElement { |
| 71 @published bool last = false; |
| 72 @published VM vm; |
| 73 |
| 74 VMNavMenuElement.created() : super.created(); |
| 75 } |
| 76 |
| 69 @CustomTag('isolate-nav-menu') | 77 @CustomTag('isolate-nav-menu') |
| 70 class IsolateNavMenuElement extends ObservatoryElement { | 78 class IsolateNavMenuElement extends ObservatoryElement { |
| 71 @published bool last = false; | 79 @published bool last = false; |
| 72 @published Isolate isolate; | 80 @published Isolate isolate; |
| 73 | 81 |
| 74 IsolateNavMenuElement.created() : super.created(); | 82 IsolateNavMenuElement.created() : super.created(); |
| 75 } | 83 } |
| 76 | 84 |
| 77 @CustomTag('library-nav-menu') | 85 @CustomTag('library-nav-menu') |
| 78 class LibraryNavMenuElement extends ObservatoryElement { | 86 class LibraryNavMenuElement extends ObservatoryElement { |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 app.removePauseEvents(event.isolate); | 126 app.removePauseEvents(event.isolate); |
| 119 return event.isolate.stepOut(); | 127 return event.isolate.stepOut(); |
| 120 } | 128 } |
| 121 | 129 |
| 122 void closeItem(MouseEvent e, var detail, Element target) { | 130 void closeItem(MouseEvent e, var detail, Element target) { |
| 123 events.remove(event); | 131 events.remove(event); |
| 124 } | 132 } |
| 125 | 133 |
| 126 NavNotifyItemElement.created() : super.created(); | 134 NavNotifyItemElement.created() : super.created(); |
| 127 } | 135 } |
| OLD | NEW |