| 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 'observatory_element.dart'; | 9 import 'observatory_element.dart'; |
| 10 import 'package:observatory/cli.dart'; | 10 import 'package:observatory/cli.dart'; |
| (...skipping 1699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1710 busy = false; | 1710 busy = false; |
| 1711 }); | 1711 }); |
| 1712 } | 1712 } |
| 1713 | 1713 |
| 1714 @observable String scriptHeight; | 1714 @observable String scriptHeight; |
| 1715 @observable bool expanded = false; | 1715 @observable bool expanded = false; |
| 1716 @observable bool busy = false; | 1716 @observable bool busy = false; |
| 1717 | 1717 |
| 1718 DebuggerFrameElement.created() : super.created(); | 1718 DebuggerFrameElement.created() : super.created(); |
| 1719 | 1719 |
| 1720 |
| 1721 String makeExpandKey(String key) { |
| 1722 return '${frame.function.qualifiedName}/${key}'; |
| 1723 } |
| 1724 |
| 1720 bool matchFrame(Frame newFrame) { | 1725 bool matchFrame(Frame newFrame) { |
| 1721 return newFrame.function.id == frame.function.id; | 1726 return newFrame.function.id == frame.function.id; |
| 1722 } | 1727 } |
| 1723 | 1728 |
| 1724 void updateFrame(Frame newFrame) { | 1729 void updateFrame(Frame newFrame) { |
| 1725 assert(matchFrame(newFrame)); | 1730 assert(matchFrame(newFrame)); |
| 1726 frame = newFrame; | 1731 frame = newFrame; |
| 1727 } | 1732 } |
| 1728 | 1733 |
| 1729 Script get script => frame.location.script; | 1734 Script get script => frame.location.script; |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2001 } | 2006 } |
| 2002 }); | 2007 }); |
| 2003 } | 2008 } |
| 2004 | 2009 |
| 2005 void focus() { | 2010 void focus() { |
| 2006 $['textBox'].focus(); | 2011 $['textBox'].focus(); |
| 2007 } | 2012 } |
| 2008 | 2013 |
| 2009 DebuggerInputElement.created() : super.created(); | 2014 DebuggerInputElement.created() : super.created(); |
| 2010 } | 2015 } |
| OLD | NEW |