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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 library fn; 5 library fn;
6 6
7 import 'app.dart'; 7 import 'app.dart';
8 import 'dart:async'; 8 import 'dart:async';
9 import 'dart:collection'; 9 import 'dart:collection';
10 import 'dart:mirrors'; 10 import 'dart:mirrors';
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 } 371 }
372 372
373 void remove() { 373 void remove() {
374 if (child != null) 374 if (child != null)
375 removeChild(child); 375 removeChild(child);
376 super.remove(); 376 super.remove();
377 } 377 }
378 378
379 } 379 }
380 380
381 class Opacity extends OneChildRenderObjectWrapper {
382 Opacity({ this.opacity, UINode child, Object key })
383 : super(child: child, key: key);
384
385 RenderOpacity get root { RenderOpacity result = super.root; return result; }
386 final double opacity;
387
388 RenderOpacity createNode() => new RenderOpacity(opacity: opacity);
389
390 void syncRenderObject(Opacity old) {
391 super.syncRenderObject(old);
392 root.opacity = opacity;
393 }
394 }
395
381 class ClipRect extends OneChildRenderObjectWrapper { 396 class ClipRect extends OneChildRenderObjectWrapper {
382 397
383 ClipRect({ UINode child, Object key }) 398 ClipRect({ UINode child, Object key })
384 : super(child: child, key: key); 399 : super(child: child, key: key);
385 400
386 RenderClipRect get root { RenderClipRect result = super.root; return result; } 401 RenderClipRect get root { RenderClipRect result = super.root; return result; }
387 RenderClipRect createNode() => new RenderClipRect(); 402 RenderClipRect createNode() => new RenderClipRect();
388 } 403 }
389 404
390 class ClipOval extends OneChildRenderObjectWrapper { 405 class ClipOval extends OneChildRenderObjectWrapper {
(...skipping 789 matching lines...) Expand 10 before | Expand all | Expand 10 after
1180 // we haven't attached it yet 1195 // we haven't attached it yet
1181 assert(_container.child == null); 1196 assert(_container.child == null);
1182 _container.child = root; 1197 _container.child = root;
1183 } 1198 }
1184 assert(root.parent == _container); 1199 assert(root.parent == _container);
1185 } 1200 }
1186 1201
1187 UINode build() => builder(); 1202 UINode build() => builder();
1188 1203
1189 } 1204 }
OLDNEW
« 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