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

Side by Side Diff: sky/framework/fn.dart

Issue 1019973003: Call _notifyMountStatusChanged() on App startup (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 library fn; 5 library fn;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 import 'dart:sky' as sky; 9 import 'dart:sky' as sky;
10 import 'reflect.dart' as reflect; 10 import 'reflect.dart' as reflect;
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 sky.Node _host = null; 760 sky.Node _host = null;
761 App() : super(stateful: true) { 761 App() : super(stateful: true) {
762 _host = sky.document.createElement('div'); 762 _host = sky.document.createElement('div');
763 sky.document.appendChild(_host); 763 sky.document.appendChild(_host);
764 764
765 new Future.microtask(() { 765 new Future.microtask(() {
766 Stopwatch sw = new Stopwatch()..start(); 766 Stopwatch sw = new Stopwatch()..start();
767 767
768 _sync(null, _host, null); 768 _sync(null, _host, null);
769 assert(_root is sky.Node); 769 assert(_root is sky.Node);
770 _notifyMountStatusChanged();
770 771
771 sw.stop(); 772 sw.stop();
772 if (_shouldLogRenderDuration) 773 if (_shouldLogRenderDuration)
773 print("Initial build: ${sw.elapsedMicroseconds} microseconds"); 774 print("Initial build: ${sw.elapsedMicroseconds} microseconds");
774 }); 775 });
775 } 776 }
776 } 777 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698