| 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 part of observatory; | 5 part of observatory; |
| 6 | 6 |
| 7 /// The LocationManager class observes and parses the hash ('#') portion of the | 7 /// The LocationManager class observes and parses the hash ('#') portion of the |
| 8 /// URL in window.location. The text after the '#' is used as the request | 8 /// URL in window.location. The text after the '#' is used as the request |
| 9 /// string for the VM service. | 9 /// string for the VM service. |
| 10 class LocationManager extends Observable { | 10 class LocationManager extends Observable { |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 String currentIsolateScriptLink(String scriptURL) { | 103 String currentIsolateScriptLink(String scriptURL) { |
| 104 var encoded = Uri.encodeComponent(scriptURL); | 104 var encoded = Uri.encodeComponent(scriptURL); |
| 105 return currentIsolateRelativeLink('scripts/$encoded'); | 105 return currentIsolateRelativeLink('scripts/$encoded'); |
| 106 } | 106 } |
| 107 | 107 |
| 108 /// Create a request for [l] on [isolateId]. | 108 /// Create a request for [l] on [isolateId]. |
| 109 @observable | 109 @observable |
| 110 String relativeLink(String isolateId, String l) { | 110 String relativeLink(String isolateId, String l) { |
| 111 return '#/$isolateId/$l'; | 111 return '#/$isolateId/$l'; |
| 112 } | 112 } |
| 113 |
| 114 /// Create a request for [l] on [isolateId]. |
| 115 @observable |
| 116 String absoluteLink(String l) { |
| 117 return '#/$l'; |
| 118 } |
| 113 } | 119 } |
| OLD | NEW |