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

Side by Side Diff: sky/sdk/lib/widgets/scrollable.dart

Issue 1182053012: Rename editing2/ and theme2/ to editing/ and theme/. (Closed) Base URL: https://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
« no previous file with comments | « sky/sdk/lib/widgets/scaffold.dart ('k') | sky/sdk/lib/widgets/switch.dart » ('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 'dart:math' as math; 5 import 'dart:math' as math;
6 import 'dart:sky' as sky; 6 import 'dart:sky' as sky;
7 7
8 import '../animation/generators.dart'; 8 import '../animation/generators.dart';
9 import '../animation/mechanics.dart'; 9 import '../animation/mechanics.dart';
10 import '../animation/scroll_behavior.dart'; 10 import '../animation/scroll_behavior.dart';
11 import '../theme2/edges.dart'; 11 import '../theme/edges.dart';
12 import '../theme2/view_configuration.dart' as config; 12 import '../theme/view_configuration.dart' as config;
13 import 'basic.dart'; 13 import 'basic.dart';
14 import 'material.dart'; 14 import 'material.dart';
15 15
16 const double _kMillisecondsPerSecond = 1000.0; 16 const double _kMillisecondsPerSecond = 1000.0;
17 17
18 double _velocityForFlingGesture(sky.GestureEvent event) { 18 double _velocityForFlingGesture(sky.GestureEvent event) {
19 return math.max(-config.kMaxFlingVelocity, math.min(config.kMaxFlingVelocity, 19 return math.max(-config.kMaxFlingVelocity, math.min(config.kMaxFlingVelocity,
20 -event.velocityY)) / _kMillisecondsPerSecond; 20 -event.velocityY)) / _kMillisecondsPerSecond;
21 } 21 }
22 22
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 155
156 void _handleFlingCancel(sky.GestureEvent event) { 156 void _handleFlingCancel(sky.GestureEvent event) {
157 _startSimulation(_createParticle()); 157 _startSimulation(_createParticle());
158 } 158 }
159 159
160 void _handleWheel(sky.WheelEvent event) { 160 void _handleWheel(sky.WheelEvent event) {
161 scrollBy(-event.offsetY); 161 scrollBy(-event.offsetY);
162 } 162 }
163 163
164 } 164 }
OLDNEW
« no previous file with comments | « sky/sdk/lib/widgets/scaffold.dart ('k') | sky/sdk/lib/widgets/switch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698