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:html'; | 8 import 'dart:html'; |
9 import 'dart:math'; | 9 import 'dart:math'; |
10 import 'observatory_element.dart'; | 10 import 'observatory_element.dart'; |
(...skipping 1809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1820 } | 1820 } |
1821 } | 1821 } |
1822 | 1822 |
1823 Future asyncNext() async { | 1823 Future asyncNext() async { |
1824 if (isolatePaused()) { | 1824 if (isolatePaused()) { |
1825 var event = isolate.pauseEvent; | 1825 var event = isolate.pauseEvent; |
1826 if (event.asyncContinuation == null) { | 1826 if (event.asyncContinuation == null) { |
1827 console.print("No async continuation at this location"); | 1827 console.print("No async continuation at this location"); |
1828 } else { | 1828 } else { |
1829 List<Future> asyncStepFutures = await isolate.asyncStepOver(); | 1829 List<Future> asyncStepFutures = await isolate.asyncStepOver(); |
1830 return asyncStepFutures[Isolate.kFirstResume]; | 1830 return asyncStepFutures[Isolate.kUIFuture]; |
1831 } | 1831 } |
1832 } else { | 1832 } else { |
1833 console.print('The program is already running'); | 1833 console.print('The program is already running'); |
1834 } | 1834 } |
1835 } | 1835 } |
1836 | 1836 |
1837 Future syncNext() async { | 1837 Future syncNext() async { |
1838 if (isolatePaused()) { | 1838 if (isolatePaused()) { |
1839 var event = isolate.pauseEvent; | 1839 var event = isolate.pauseEvent; |
1840 if (event.kind == ServiceEvent.kPauseStart) { | 1840 if (event.kind == ServiceEvent.kPauseStart) { |
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2654 } | 2654 } |
2655 }); | 2655 }); |
2656 } | 2656 } |
2657 | 2657 |
2658 void focus() { | 2658 void focus() { |
2659 $['textBox'].focus(); | 2659 $['textBox'].focus(); |
2660 } | 2660 } |
2661 | 2661 |
2662 DebuggerInputElement.created() : super.created(); | 2662 DebuggerInputElement.created() : super.created(); |
2663 } | 2663 } |
OLD | NEW |