| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 import 'dart:html'; | 5 import 'dart:html'; |
| 6 import 'dart:async'; | 6 import 'dart:async'; |
| 7 import 'package:observatory/src/elements/helpers/nav_menu.dart'; | 7 import 'package:observatory/src/elements/helpers/nav_menu.dart'; |
| 8 import 'package:observatory/src/elements/helpers/rendering_scheduler.dart'; | 8 import 'package:observatory/src/elements/helpers/rendering_scheduler.dart'; |
| 9 import 'package:observatory/src/elements/helpers/tag.dart'; | 9 import 'package:observatory/src/elements/helpers/tag.dart'; |
| 10 import 'package:observatory/src/elements/helpers/uris.dart'; | 10 import 'package:observatory/src/elements/helpers/uris.dart'; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 super.detached(); | 46 super.detached(); |
| 47 _r.disable(notify: true); | 47 _r.disable(notify: true); |
| 48 children = []; | 48 children = []; |
| 49 } | 49 } |
| 50 | 50 |
| 51 void render() { | 51 void render() { |
| 52 final content = ([ | 52 final content = ([ |
| 53 new NavMenuItemElement('Connect to a VM', link: Uris.vmConnect()), | 53 new NavMenuItemElement('Connect to a VM', link: Uris.vmConnect()), |
| 54 ]..addAll(_content)); | 54 ]..addAll(_content)); |
| 55 children = [ | 55 children = [ |
| 56 navMenu('Observatory', link: Uris.vm(), content: _content) | 56 navMenu('Observatory', link: Uris.vm(), content: content) |
| 57 ]; | 57 ]; |
| 58 } | 58 } |
| 59 } | 59 } |
| OLD | NEW |