Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(739)

Side by Side Diff: runtime/observatory/lib/src/app/page.dart

Issue 837723004: Build Observatory as part of runtime (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/app/location_manager.dart ('k') | runtime/observatory/lib/src/app/settings.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698