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 app; | 5 part of app; |
6 | 6 |
7 abstract class LocationManager extends Observable { | 7 abstract class LocationManager extends Observable { |
8 final _initialPath = '/vm'; | 8 final _initialPath = '/vm'; |
9 ObservatoryApplication _app; | 9 ObservatoryApplication _app; |
10 | 10 |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 _go(window.location.pathname); | 128 _go(window.location.pathname); |
129 } | 129 } |
130 | 130 |
131 void _onLocationChange(PopStateEvent _) { | 131 void _onLocationChange(PopStateEvent _) { |
132 _go(window.location.pathname); | 132 _go(window.location.pathname); |
133 } | 133 } |
134 | 134 |
135 /// Given an application url, generate a link for an anchor tag. | 135 /// Given an application url, generate a link for an anchor tag. |
136 String makeLink(String url) => url; | 136 String makeLink(String url) => url; |
137 } | 137 } |
OLD | NEW |