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 class LocationManager extends Observable { | 7 class LocationManager { |
8 final _defaultPath = '/vm'; | 8 final _defaultPath = '/vm'; |
9 | 9 |
10 final ObservatoryApplication _app; | 10 final ObservatoryApplication _app; |
11 | 11 |
12 /// [internalArguments] are parameters specified after a '---' in the | 12 /// [internalArguments] are parameters specified after a '---' in the |
13 /// application URL. | 13 /// application URL. |
14 final Map<String, String> internalArguments = new Map<String, String>(); | 14 final Map<String, String> internalArguments = new Map<String, String>(); |
15 | 15 |
16 Uri _uri; | 16 Uri _uri; |
17 /// [uri] is the application uri. Application uris consist of a path and | 17 /// [uri] is the application uri. Application uris consist of a path and |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 // let browser handle. | 167 // let browser handle. |
168 return; | 168 return; |
169 } | 169 } |
170 event.preventDefault(); | 170 event.preventDefault(); |
171 // 'currentTarget' is the dom element that would process the event. | 171 // 'currentTarget' is the dom element that would process the event. |
172 // If we use 'target' we might get an <em> element or somesuch. | 172 // If we use 'target' we might get an <em> element or somesuch. |
173 var target = event.currentTarget; | 173 var target = event.currentTarget; |
174 go(target.attributes['href']); | 174 go(target.attributes['href']); |
175 } | 175 } |
176 } | 176 } |
OLD | NEW |