| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 debugger_page_element; | 5 library debugger_page_element; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:svg'; | 8 import 'dart:svg'; |
| 9 import 'dart:html'; | 9 import 'dart:html'; |
| 10 import 'dart:math'; | 10 import 'dart:math'; |
| (...skipping 1229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1240 await debugger.vm.setName(args[0]); | 1240 await debugger.vm.setName(args[0]); |
| 1241 } | 1241 } |
| 1242 | 1242 |
| 1243 String helpShort = 'Rename the current Dart virtual machine'; | 1243 String helpShort = 'Rename the current Dart virtual machine'; |
| 1244 | 1244 |
| 1245 String helpLong = 'Rename the current Dart virtual machine.\n' | 1245 String helpLong = 'Rename the current Dart virtual machine.\n' |
| 1246 '\n' | 1246 '\n' |
| 1247 'Syntax: vm name <name>\n'; | 1247 'Syntax: vm name <name>\n'; |
| 1248 } | 1248 } |
| 1249 | 1249 |
| 1250 | |
| 1251 class VmCommand extends DebuggerCommand { | 1250 class VmCommand extends DebuggerCommand { |
| 1252 VmCommand(Debugger debugger) | 1251 VmCommand(Debugger debugger) |
| 1253 : super(debugger, 'vm', [ | 1252 : super(debugger, 'vm', [ |
| 1254 new VmListCommand(debugger), | 1253 new VmListCommand(debugger), |
| 1255 new VmNameCommand(debugger), | 1254 new VmNameCommand(debugger), |
| 1256 ]); | 1255 ]); |
| 1257 | 1256 |
| 1258 Future run(List<String> args) async { | 1257 Future run(List<String> args) async { |
| 1259 debugger.console.print("'vm' expects a subcommand (see 'help vm')"); | 1258 debugger.console.print("'vm' expects a subcommand (see 'help vm')"); |
| 1260 } | 1259 } |
| (...skipping 1299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2560 ..classes = ['memberName'] | 2559 ..classes = ['memberName'] |
| 2561 ..text = homeMethodName, | 2560 ..text = homeMethodName, |
| 2562 new DivElement() | 2561 new DivElement() |
| 2563 ..classes = ['memberName'] | 2562 ..classes = ['memberName'] |
| 2564 ..children = [ | 2563 ..children = [ |
| 2565 anyRef(_isolate, homeMethod.dartOwner, | 2564 anyRef(_isolate, homeMethod.dartOwner, |
| 2566 _instances, | 2565 _instances, |
| 2567 queue: _r.queue) | 2566 queue: _r.queue) |
| 2568 ] | 2567 ] |
| 2569 ] | 2568 ] |
| 2570 ] | 2569 ]..addAll(_frame.variables |
| 2571 ..addAll(_frame.variables | 2570 .map((v) => new DivElement() |
| 2572 .map((v) => new DivElement() | 2571 ..classes = ['memberItem'] |
| 2573 ..classes = ['memberItem'] | 2572 ..children = [ |
| 2574 ..children = [ | 2573 new DivElement() |
| 2575 new DivElement() | 2574 ..classes = ['memberName'] |
| 2576 ..classes = ['memberName'] | 2575 ..text = v.name, |
| 2577 ..text = v.name, | 2576 new DivElement() |
| 2578 new DivElement() | 2577 ..classes = ['memberName'] |
| 2579 ..classes = ['memberName'] | 2578 ..children = [ |
| 2580 ..children = [ | 2579 anyRef(_isolate, v['value'], _instances, |
| 2581 anyRef(_isolate, v['value'], _instances, | 2580 queue: _r.queue) |
| 2582 queue: _r.queue) | 2581 ] |
| 2583 ] | 2582 ]) |
| 2584 ]) | 2583 .toList())) |
| 2585 .toList())) | |
| 2586 ] | 2584 ] |
| 2587 ], | 2585 ], |
| 2588 new DivElement() | 2586 new DivElement() |
| 2589 ..classes = ['frameContractor'] | 2587 ..classes = ['frameContractor'] |
| 2590 ..children = [ | 2588 ..children = [ |
| 2591 collapseButton = new ButtonElement() | 2589 collapseButton = new ButtonElement() |
| 2592 ..onClick.listen((e) async { | 2590 ..onClick.listen((e) async { |
| 2593 collapseButton.disabled = true; | 2591 collapseButton.disabled = true; |
| 2594 await _toggleExpand(); | 2592 await _toggleExpand(); |
| 2595 collapseButton.disabled = false; | 2593 collapseButton.disabled = false; |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2870 ..children = [ | 2868 ..children = [ |
| 2871 new DivElement()..classes = ['memberName'], | 2869 new DivElement()..classes = ['memberName'], |
| 2872 new DivElement() | 2870 new DivElement() |
| 2873 ..classes = ['memberValue'] | 2871 ..classes = ['memberValue'] |
| 2874 ..children = ([ | 2872 ..children = ([ |
| 2875 previewButton = new ButtonElement() | 2873 previewButton = new ButtonElement() |
| 2876 ..text = 'preview' | 2874 ..text = 'preview' |
| 2877 ..onClick.listen((_) { | 2875 ..onClick.listen((_) { |
| 2878 previewButton.disabled = true; | 2876 previewButton.disabled = true; |
| 2879 }) | 2877 }) |
| 2880 ] | 2878 ]..addAll(_preview == null |
| 2881 ..addAll(_preview == null | 2879 ? const [] |
| 2882 ? const [] | 2880 : [ |
| 2883 : [ | 2881 anyRef(_isolate, _preview, _instances, |
| 2884 anyRef(_isolate, _preview, _instances, | 2882 queue: _r.queue) |
| 2885 queue: _r.queue) | 2883 ])) |
| 2886 ])) | |
| 2887 ] | 2884 ] |
| 2888 ] | 2885 ] |
| 2889 ], | 2886 ], |
| 2890 new DivElement() | 2887 new DivElement() |
| 2891 ..classes = ['messageContractor'] | 2888 ..classes = ['messageContractor'] |
| 2892 ..children = [ | 2889 ..children = [ |
| 2893 collapseButton = new ButtonElement() | 2890 collapseButton = new ButtonElement() |
| 2894 ..onClick.listen((e) async { | 2891 ..onClick.listen((e) async { |
| 2895 collapseButton.disabled = true; | 2892 collapseButton.disabled = true; |
| 2896 await _toggleExpand(); | 2893 await _toggleExpand(); |
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3348 ..setAttribute('height', '24') | 3345 ..setAttribute('height', '24') |
| 3349 ..children = [ | 3346 ..children = [ |
| 3350 new PathElement() | 3347 new PathElement() |
| 3351 ..setAttribute( | 3348 ..setAttribute( |
| 3352 'd', | 3349 'd', |
| 3353 'M11 17h2v-6h-2v6zm1-15C6.48 2 2 6.48 2 12s4.48 10 ' | 3350 'M11 17h2v-6h-2v6zm1-15C6.48 2 2 6.48 2 12s4.48 10 ' |
| 3354 '10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 ' | 3351 '10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 ' |
| 3355 '0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zM11 ' | 3352 '0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zM11 ' |
| 3356 '9h2V7h-2v2z') | 3353 '9h2V7h-2v2z') |
| 3357 ]; | 3354 ]; |
| OLD | NEW |