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

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

Issue 1174253003: Make the stocks popup menu fade in (Closed) Base URL: git@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/components2/popup_menu.dart ('k') | sky/sdk/lib/framework/rendering/box.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/fn2.dart
diff --git a/sky/sdk/lib/framework/fn2.dart b/sky/sdk/lib/framework/fn2.dart
index 1045eaf290e1a2eeb214926b2dc7eac03d8f5be6..af186021f3462accb62d70f740001bfeebf44c23 100644
--- a/sky/sdk/lib/framework/fn2.dart
+++ b/sky/sdk/lib/framework/fn2.dart
@@ -378,6 +378,21 @@ abstract class OneChildRenderObjectWrapper extends RenderObjectWrapper {
}
+class Opacity extends OneChildRenderObjectWrapper {
+ Opacity({ this.opacity, UINode child, Object key })
+ : super(child: child, key: key);
+
+ RenderOpacity get root { RenderOpacity result = super.root; return result; }
+ final double opacity;
+
+ RenderOpacity createNode() => new RenderOpacity(opacity: opacity);
+
+ void syncRenderObject(Opacity old) {
+ super.syncRenderObject(old);
+ root.opacity = opacity;
+ }
+}
+
class ClipRect extends OneChildRenderObjectWrapper {
ClipRect({ UINode child, Object key })
« no previous file with comments | « sky/sdk/lib/framework/components2/popup_menu.dart ('k') | sky/sdk/lib/framework/rendering/box.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698