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

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

Issue 1093633002: Layout API prototype, for discussion (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: git cl land 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 | « sky/sdk/lib/framework/layout2.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/node.dart
diff --git a/sky/sdk/lib/framework/node.dart b/sky/sdk/lib/framework/node.dart
index ea51099c43fd4d12e7b6c63a60009ed253a43084..59dbfbdcd99205b4524cd782f98f07a891cc183f 100644
--- a/sky/sdk/lib/framework/node.dart
+++ b/sky/sdk/lib/framework/node.dart
@@ -1,6 +1,6 @@
library node;
-class Node {
+class AbstractNode {
// Nodes always have a 'depth' greater than their ancestors'.
// There's no guarantee regarding depth between siblings. The depth
@@ -15,7 +15,7 @@ class Node {
int _depth = 0;
int get depth => _depth;
- void redepthChild(Node child) { // internal, do not call
+ void redepthChild(AbstractNode child) { // internal, do not call
assert(child._attached == _attached);
if (child._depth <= _depth) {
child._depth = _depth + 1;
@@ -44,9 +44,9 @@ class Node {
}
detachChildren() { } // workaround for lack of inter-class mixins in Dart
- Node _parent;
- Node get parent => _parent;
- void adoptChild(Node child) { // only for use by subclasses
+ AbstractNode _parent;
+ AbstractNode get parent => _parent;
+ void adoptChild(AbstractNode child) { // only for use by subclasses
assert(child != null);
assert(child._parent == null);
child._parent = this;
@@ -54,7 +54,7 @@ class Node {
child.attach();
redepthChild(child);
}
- void dropChild(Node child) { // only for use by subclasses
+ void dropChild(AbstractNode child) { // only for use by subclasses
assert(child != null);
assert(child._parent == this);
assert(child.attached == attached);
« no previous file with comments | « sky/sdk/lib/framework/layout2.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698