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

Unified Diff: sky/sdk/lib/framework/app.dart

Issue 1154403002: Rearrange AppView so that the constructor is first. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/app.dart
diff --git a/sky/sdk/lib/framework/app.dart b/sky/sdk/lib/framework/app.dart
index a10eeac5892d2b4dbd6ee1769d287a48fb165f55..4c105715d9f6a9c19f4fb36d5fd23fa2ec7c1d3b 100644
--- a/sky/sdk/lib/framework/app.dart
+++ b/sky/sdk/lib/framework/app.dart
@@ -6,6 +6,17 @@ import 'layout2.dart';
import 'dart:sky' as sky;
class AppView {
+
+ AppView(RenderBox root) {
+ sky.view.setEventCallback(_handleEvent);
+ sky.view.setBeginFrameCallback(_beginFrame);
+
+ _renderView = new RenderView(root: root);
+ _renderView.layout(newWidth: sky.view.width, newHeight: sky.view.height);
+
+ sky.view.scheduleFrame();
+ }
+
RenderView _renderView;
void _beginFrame(double timeStamp) {
@@ -23,13 +34,4 @@ class AppView {
});
}
- AppView(RenderBox root) {
- sky.view.setEventCallback(_handleEvent);
- sky.view.setBeginFrameCallback(_beginFrame);
-
- _renderView = new RenderView(root: root);
- _renderView.layout(newWidth: sky.view.width, newHeight: sky.view.height);
-
- sky.view.scheduleFrame();
- }
}
« 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