| 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:html'; | 7 import 'dart:html'; |
| 8 import 'observatory_element.dart'; | 8 import 'observatory_element.dart'; |
| 9 import 'package:observatory/service.dart'; | 9 import 'package:observatory/service.dart'; |
| 10 import 'package:polymer/polymer.dart'; | 10 import 'package:polymer/polymer.dart'; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 } | 38 } |
| 39 } | 39 } |
| 40 | 40 |
| 41 @CustomTag('debugger-stack') | 41 @CustomTag('debugger-stack') |
| 42 class DebuggerStackElement extends ObservatoryElement { | 42 class DebuggerStackElement extends ObservatoryElement { |
| 43 @published Isolate isolate; | 43 @published Isolate isolate; |
| 44 @published ServiceMap stack; | 44 @published ServiceMap stack; |
| 45 @published int activeFrame = 0; | 45 @published int activeFrame = 0; |
| 46 | 46 |
| 47 isolateChanged(oldValue) { | 47 isolateChanged(oldValue) { |
| 48 isolate.get('stacktrace').then((result) { | 48 isolate.getStack().then((result) { |
| 49 stack = result; | 49 stack = result; |
| 50 }); | 50 }); |
| 51 } | 51 } |
| 52 | 52 |
| 53 DebuggerStackElement.created() : super.created(); | 53 DebuggerStackElement.created() : super.created(); |
| 54 } | 54 } |
| 55 | 55 |
| 56 @CustomTag('debugger-frame') | 56 @CustomTag('debugger-frame') |
| 57 class DebuggerFrameElement extends ObservatoryElement { | 57 class DebuggerFrameElement extends ObservatoryElement { |
| 58 @published ObservableMap frame; | 58 @published ObservableMap frame; |
| 59 | 59 |
| 60 // When true, the frame will start out expanded. | 60 // When true, the frame will start out expanded. |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 print('Debugger command (not implemented): $text'); | 126 print('Debugger command (not implemented): $text'); |
| 127 text = ''; | 127 text = ''; |
| 128 break; | 128 break; |
| 129 } | 129 } |
| 130 }); | 130 }); |
| 131 } | 131 } |
| 132 | 132 |
| 133 DebuggerInputElement.created() : super.created(); | 133 DebuggerInputElement.created() : super.created(); |
| 134 } | 134 } |
| 135 | 135 |
| OLD | NEW |