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

Unified Diff: sky/sdk/lib/framework/components2/scrollable.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
« no previous file with comments | « sky/sdk/lib/framework/components2/radio.dart ('k') | sky/sdk/lib/framework/components2/tool_bar.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/components2/scrollable.dart
diff --git a/sky/sdk/lib/framework/components2/scrollable.dart b/sky/sdk/lib/framework/components2/scrollable.dart
index 1bad1700f85e0c0c2d8220e6cf90d8e3c2a37146..bc76e4026345c1523dff20eeb3ea371b604d7bdc 100644
--- a/sky/sdk/lib/framework/components2/scrollable.dart
+++ b/sky/sdk/lib/framework/components2/scrollable.dart
@@ -23,6 +23,10 @@ abstract class ScrollClient {
abstract class Scrollable extends Component {
+ Scrollable({Object key}) : super(key: key) {
+ onDidUnmount(_stopSimulation);
+ }
+
double _scrollOffset = 0.0;
double get scrollOffset => _scrollOffset;
@@ -36,10 +40,6 @@ abstract class Scrollable extends Component {
Simulation _simulation;
- Scrollable({Object key}) : super(key: key) {
- onDidUnmount(_stopSimulation);
- }
-
UINode buildContent();
UINode build() {
@@ -143,4 +143,5 @@ abstract class Scrollable extends Component {
void _handleWheel(sky.WheelEvent event) {
scrollBy(-event.offsetY);
}
+
}
« no previous file with comments | « sky/sdk/lib/framework/components2/radio.dart ('k') | sky/sdk/lib/framework/components2/tool_bar.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698