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 part of app; | 5 part of app; |
6 | 6 |
7 /// A [Page] controls the user interface of Observatory. At any given time | 7 /// A [Page] controls the user interface of Observatory. At any given time |
8 /// one page will be the current page. Pages are registered at startup. | 8 /// one page will be the current page. Pages are registered at startup. |
9 /// When the user navigates within the application, each page is asked if it | 9 /// When the user navigates within the application, each page is asked if it |
10 /// can handle the current location, the first page to say yes, wins. | 10 /// can handle the current location, the first page to say yes, wins. |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 void _visit(String url) { | 236 void _visit(String url) { |
237 assert(element != null); | 237 assert(element != null); |
238 assert(canVisit(url)); | 238 assert(canVisit(url)); |
239 app.vm.get(_isolateId(url)).then((i) { | 239 app.vm.get(_isolateId(url)).then((i) { |
240 (element as MetricsPageElement).isolate = i; | 240 (element as MetricsPageElement).isolate = i; |
241 }); | 241 }); |
242 } | 242 } |
243 | 243 |
244 bool canVisit(String url) => _matcher.hasMatch(url); | 244 bool canVisit(String url) => _matcher.hasMatch(url); |
245 } | 245 } |
OLD | NEW |