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

Side by Side Diff: sky/framework/components/fixed_height_scrollable.dart

Issue 998373002: Rename fling-curve.dart to fling_curve.dart (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 | « sky/framework/animation/fling_curve.dart ('k') | sky/framework/elements/sky-scrollable.sky » ('j') | no next file with comments »
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 '../animation/fling-curve.dart'; 5 import '../animation/fling_curve.dart';
6 import '../fn.dart'; 6 import '../fn.dart';
7 import 'dart:sky' as sky; 7 import 'dart:sky' as sky;
8 8
9 abstract class FixedHeightScrollable extends Component { 9 abstract class FixedHeightScrollable extends Component {
10 // TODO(rafaelw): This component really shouldn't have an opinion 10 // TODO(rafaelw): This component really shouldn't have an opinion
11 // about how it is sized. The owning component should decide whether 11 // about how it is sized. The owning component should decide whether
12 // it's explicitly sized or flexible or whatever... 12 // it's explicitly sized or flexible or whatever...
13 static final Style _style = new Style(''' 13 static final Style _style = new Style('''
14 overflow: hidden; 14 overflow: hidden;
15 position: relative; 15 position: relative;
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 } 143 }
144 144
145 void _handleFlingCancel(sky.GestureEvent event) { 145 void _handleFlingCancel(sky.GestureEvent event) {
146 _stopFling(); 146 _stopFling();
147 } 147 }
148 148
149 void _handleWheel(sky.WheelEvent event) { 149 void _handleWheel(sky.WheelEvent event) {
150 _scrollBy(-event.offsetY); 150 _scrollBy(-event.offsetY);
151 } 151 }
152 } 152 }
OLDNEW
« no previous file with comments | « sky/framework/animation/fling_curve.dart ('k') | sky/framework/elements/sky-scrollable.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698