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

Unified Diff: sky/sdk/lib/widgets/popup_menu.dart

Issue 1231103005: Rename watchPerformance to watch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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/widgets/material.dart ('k') | sky/sdk/lib/widgets/scrollable.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/widgets/popup_menu.dart
diff --git a/sky/sdk/lib/widgets/popup_menu.dart b/sky/sdk/lib/widgets/popup_menu.dart
index f5101e9899550877bb0e796a1c95634605bec50a..79bb6f6856f25a33efd971501c8a90578132c183 100644
--- a/sky/sdk/lib/widgets/popup_menu.dart
+++ b/sky/sdk/lib/widgets/popup_menu.dart
@@ -91,18 +91,20 @@ class PopupMenuController {
class PopupMenu extends AnimatedComponent {
PopupMenu({ String key, this.controller, this.items, this.level })
- : super(key: key) {
+ : super(key: key);
+
+ PopupMenuController controller;
+ List<PopupMenuItem> items;
+ int level;
+
+ void initState() {
_painter = new BoxPainter(new BoxDecoration(
backgroundColor: Grey[50],
borderRadius: 2.0,
boxShadow: shadows[level]));
- watchPerformance(controller.performance);
+ watch(controller.performance);
}
- PopupMenuController controller;
- List<PopupMenuItem> items;
- int level;
-
void syncFields(PopupMenu source) {
controller = source.controller;
items = source.items;
« no previous file with comments | « sky/sdk/lib/widgets/material.dart ('k') | sky/sdk/lib/widgets/scrollable.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698