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

Unified Diff: sky/sdk/lib/framework/components2/popup_menu.dart

Issue 1172173002: Clean up a bunch of our Dart code. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: upstream merge 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
Index: sky/sdk/lib/framework/components2/popup_menu.dart
diff --git a/sky/sdk/lib/framework/components2/popup_menu.dart b/sky/sdk/lib/framework/components2/popup_menu.dart
index ef0ff3e53e264fabbd9061c0ec64a69119e9c4dc..760f0e2d4434093f2340b3aaa25f111a96fcf707 100644
--- a/sky/sdk/lib/framework/components2/popup_menu.dart
+++ b/sky/sdk/lib/framework/components2/popup_menu.dart
@@ -51,13 +51,6 @@ class PopupMenuController {
}
class PopupMenu extends AnimatedComponent {
- List<List<UINode>> items;
- int level;
- PopupMenuController controller;
-
- double _position;
- // int _width;
- // int _height;
PopupMenu({ Object key, this.controller, this.items, this.level })
: super(key: key) {
@@ -67,6 +60,14 @@ class PopupMenu extends AnimatedComponent {
// onDidMount(_measureSize);
}
+ List<List<UINode>> items;
+ int level;
+ PopupMenuController controller;
+
+ double _position;
+ // int _width;
+ // int _height;
+
double _opacityFor(int i) {
if (_position == null || _position == 1.0)
return null;
@@ -113,4 +114,5 @@ class PopupMenu extends AnimatedComponent {
)
);
}
+
}
« no previous file with comments | « sky/sdk/lib/framework/components2/modal_overlay.dart ('k') | sky/sdk/lib/framework/components2/popup_menu_item.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698