| 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 function_view_element; | 5 library function_view_element; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:html'; | 8 import 'dart:html'; |
| 9 import 'package:observatory/models.dart' as M; | 9 import 'package:observatory/models.dart' as M; |
| 10 import 'package:observatory/src/elements/class_ref.dart'; | 10 import 'package:observatory/src/elements/class_ref.dart'; |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 detached() { | 136 detached() { |
| 137 super.detached(); | 137 super.detached(); |
| 138 _r.disable(notify: true); | 138 _r.disable(notify: true); |
| 139 children = []; | 139 children = []; |
| 140 } | 140 } |
| 141 | 141 |
| 142 void render() { | 142 void render() { |
| 143 children = [ | 143 children = [ |
| 144 new NavBarElement(queue: _r.queue) | 144 new NavBarElement(queue: _r.queue) |
| 145 ..children = _createMenu(), | 145 ..children = _createMenu(), |
| 146 new DivElement()..classes = const ['content-centered-big'] | 146 new DivElement()..classes = ['content-centered-big'] |
| 147 ..children = [ | 147 ..children = [ |
| 148 new HeadingElement.h2()..text = 'Function ${_function.name}', | 148 new HeadingElement.h2()..text = 'Function ${_function.name}', |
| 149 new HRElement(), | 149 new HRElement(), |
| 150 new ObjectCommonElement(_isolate, _function, _retainedSizes, | 150 new ObjectCommonElement(_isolate, _function, _retainedSizes, |
| 151 _reachableSizes, _references, _retainingPaths, | 151 _reachableSizes, _references, _retainingPaths, |
| 152 _instances, queue: _r.queue), | 152 _instances, queue: _r.queue), |
| 153 new BRElement(), | 153 new BRElement(), |
| 154 new DivElement()..classes = ['memberList'] | 154 new DivElement()..classes = ['memberList'] |
| 155 ..children = _createMembers(), | 155 ..children = _createMembers(), |
| 156 new HRElement(), | 156 new HRElement(), |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 case M.FunctionKind.stub: | 387 case M.FunctionKind.stub: |
| 388 return 'stub'; | 388 return 'stub'; |
| 389 case M.FunctionKind.tag: | 389 case M.FunctionKind.tag: |
| 390 return 'tag'; | 390 return 'tag'; |
| 391 case M.FunctionKind.signatureFunction: | 391 case M.FunctionKind.signatureFunction: |
| 392 return 'signature function'; | 392 return 'signature function'; |
| 393 } | 393 } |
| 394 throw new Exception('Unknown Functionkind ($kind)'); | 394 throw new Exception('Unknown Functionkind ($kind)'); |
| 395 } | 395 } |
| 396 } | 396 } |
| OLD | NEW |