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

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

Issue 2310003004: Removed polymer & mirror from Observatory (Closed)
Patch Set: Fixed tests Created 4 years, 3 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
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 final _allocationProfileRepository = new AllocationProfileRepository(); 7 final _allocationProfileRepository = new AllocationProfileRepository();
8 final _breakpointRepository = new BreakpointRepository(); 8 final _breakpointRepository = new BreakpointRepository();
9 final _classSampleProfileRepository = new ClassSampleProfileRepository(); 9 final _classSampleProfileRepository = new ClassSampleProfileRepository();
10 final _classRepository = new ClassRepository(); 10 final _classRepository = new ClassRepository();
(...skipping 30 matching lines...) Expand all
41 RetainedSizeRepository _retainedSizeRepository = new RetainedSizeRepository(); 41 RetainedSizeRepository _retainedSizeRepository = new RetainedSizeRepository();
42 ReachableSizeRepository _reachableSizeRepository 42 ReachableSizeRepository _reachableSizeRepository
43 = new ReachableSizeRepository(); 43 = new ReachableSizeRepository();
44 RetainingPathRepository _retainingPathRepository 44 RetainingPathRepository _retainingPathRepository
45 = new RetainingPathRepository(); 45 = new RetainingPathRepository();
46 46
47 /// A [Page] controls the user interface of Observatory. At any given time 47 /// A [Page] controls the user interface of Observatory. At any given time
48 /// one page will be the current page. Pages are registered at startup. 48 /// one page will be the current page. Pages are registered at startup.
49 /// When the user navigates within the application, each page is asked if it 49 /// When the user navigates within the application, each page is asked if it
50 /// can handle the current location, the first page to say yes, wins. 50 /// can handle the current location, the first page to say yes, wins.
51 abstract class Page extends Observable { 51 abstract class Page {
52 final ObservatoryApplication app; 52 final ObservatoryApplication app;
53 final ObservableMap<String, String> internalArguments = 53 final Map<String, String> internalArguments = <String, String>{};
54 new ObservableMap<String, String>(); 54 HtmlElement element;
55 @observable HtmlElement element;
56 55
57 Page(this.app); 56 Page(this.app);
58 57
59 /// Called when the page is installed, this callback must initialize 58 /// Called when the page is installed, this callback must initialize
60 /// [element]. 59 /// [element].
61 void onInstall(); 60 void onInstall();
62 61
63 /// Called when the page is uninstalled, this callback must clear 62 /// Called when the page is uninstalled, this callback must clear
64 /// [element]. 63 /// [element].
65 void onUninstall() { 64 void onUninstall() {
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 element = new TimelinePageElement(app.vm, app.events, app.notifications, 790 element = new TimelinePageElement(app.vm, app.events, app.notifications,
792 queue: app.queue); 791 queue: app.queue);
793 } 792 }
794 793
795 void _visit(Uri uri) { 794 void _visit(Uri uri) {
796 assert(canVisit(uri)); 795 assert(canVisit(uri));
797 } 796 }
798 797
799 bool canVisit(Uri uri) => uri.path == 'timeline'; 798 bool canVisit(Uri uri) => uri.path == 'timeline';
800 } 799 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698