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

Unified Diff: sky/sdk/lib/framework/widgets/ui_node.dart

Issue 1183503003: Add an example of an app that manipulates both a RenderObject tree and has some fn logic in it. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 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 | « sky/sdk/lib/framework/rendering/box.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/widgets/ui_node.dart
diff --git a/sky/sdk/lib/framework/widgets/ui_node.dart b/sky/sdk/lib/framework/widgets/ui_node.dart
index 2d1cd2497b73444203874a6e78180409b87536df..d8d5968fe3ac84b0944c0f51cf70afe5cdbf3b21 100644
--- a/sky/sdk/lib/framework/widgets/ui_node.dart
+++ b/sky/sdk/lib/framework/widgets/ui_node.dart
@@ -28,7 +28,7 @@ abstract class UINode {
UINode({ Object key }) {
_key = key == null ? "$runtimeType" : "$runtimeType-$key";
- assert(this is App || _inRenderDirtyComponents); // you should not build the UI tree ahead of time, build it only during build()
+ assert(this is AbstractUINodeRoot || _inRenderDirtyComponents); // you should not build the UI tree ahead of time, build it only during build()
}
String _key;
@@ -752,6 +752,7 @@ class UINodeAppView extends AppView {
}
static UINodeAppView _appView;
+ static AppView get appView => _appView;
static void initUINodeAppView() {
if (_appView == null)
_appView = new UINodeAppView();
@@ -801,8 +802,6 @@ abstract class App extends AbstractUINodeRoot {
App();
- AppView get appView => UINodeAppView._appView;
-
void _buildIfDirty() {
super._buildIfDirty();
« no previous file with comments | « sky/sdk/lib/framework/rendering/box.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698