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

Side by Side Diff: sky/sdk/example/widgets/block_viewport.dart

Issue 1237623004: Remove onFrame callback (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 unified diff | Download patch
« no previous file with comments | « no previous file | sky/sdk/example/widgets/sector.dart » ('j') | sky/sdk/lib/rendering/README.md » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 import 'dart:math' as math; 5 import 'dart:math' as math;
6 6
7 import 'package:sky/base/scheduler.dart' as scheduler;
7 import 'package:sky/rendering/sky_binding.dart'; 8 import 'package:sky/rendering/sky_binding.dart';
8 import 'package:sky/widgets/basic.dart'; 9 import 'package:sky/widgets/basic.dart';
9 import 'package:sky/widgets/block_viewport.dart'; 10 import 'package:sky/widgets/block_viewport.dart';
10 import 'package:sky/widgets/material.dart'; 11 import 'package:sky/widgets/material.dart';
11 import 'package:sky/widgets/raised_button.dart'; 12 import 'package:sky/widgets/raised_button.dart';
12 import 'package:sky/widgets/scaffold.dart'; 13 import 'package:sky/widgets/scaffold.dart';
13 import 'package:sky/widgets/theme.dart'; 14 import 'package:sky/widgets/theme.dart';
14 import 'package:sky/widgets/tool_bar.dart'; 15 import 'package:sky/widgets/tool_bar.dart';
15 import 'package:sky/widgets/widget.dart'; 16 import 'package:sky/widgets/widget.dart';
16 17
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 onGestureTap: (_) { 125 onGestureTap: (_) {
125 removeBox(index); 126 removeBox(index);
126 } 127 }
127 ); 128 );
128 } 129 }
129 130
130 } 131 }
131 132
132 void main() { 133 void main() {
133 runApp(new BlockViewportApp()); 134 runApp(new BlockViewportApp());
134 SkyBinding.instance.onFrame = () { 135 // scheduler.addPersistentFrameCallback((_) {
135 // uncomment this for debugging: 136 // SkyBinding.instance.debugDumpRenderTree();
136 // SkyBinding.instance.debugDumpRenderTree(); 137 // });
137 };
138 } 138 }
OLDNEW
« no previous file with comments | « no previous file | sky/sdk/example/widgets/sector.dart » ('j') | sky/sdk/lib/rendering/README.md » ('J')

Powered by Google App Engine
This is Rietveld 408576698