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

Unified Diff: sky/framework/components/drawer.dart

Issue 1043283003: [Effen] s/Node/UINode/, s/Element/WrapperNode/, s/EventTarget/EventListenerNode/ (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/framework/components/checkbox.dart ('k') | sky/framework/components/drawer_header.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/components/drawer.dart
diff --git a/sky/framework/components/drawer.dart b/sky/framework/components/drawer.dart
index 29e94ca48a7221f8e55929bf083b3964aebe6a94..d28aede248b8228d6a5e7cc9962c0ece2733dd55 100644
--- a/sky/framework/components/drawer.dart
+++ b/sky/framework/components/drawer.dart
@@ -103,7 +103,7 @@ class Drawer extends AnimatedComponent {
bottom: 0;'''
);
- List<Node> children;
+ List<UINode> children;
int level;
DrawerController controller;
@@ -118,13 +118,13 @@ class Drawer extends AnimatedComponent {
animateField(controller.position, #_position);
}
- Node build() {
+ UINode build() {
bool isClosed = _position <= -_kWidth;
String inlineStyle = 'display: ${isClosed ? 'none' : ''}';
String maskInlineStyle = 'opacity: ${(_position / _kWidth + 1) * 0.5}';
String contentInlineStyle = 'transform: translateX(${_position}px)';
- var mask = new EventTarget(
+ var mask = new EventListenerNode(
new Container(
style: _maskStyle,
inlineStyle: maskInlineStyle
@@ -141,7 +141,7 @@ class Drawer extends AnimatedComponent {
),
level: level);
- return new EventTarget(
+ return new EventListenerNode(
new Container(
style: _style,
inlineStyle: inlineStyle,
« no previous file with comments | « sky/framework/components/checkbox.dart ('k') | sky/framework/components/drawer_header.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698