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

Side by Side Diff: sky/sdk/lib/framework/components2/ink_splash.dart

Issue 1153223003: [Effen] Point the stocks2 and components2 files at the forked libraries. (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
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/animated_value.dart'; 5 import '../animation/animated_value.dart';
6 import '../animation/curves.dart'; 6 import '../animation/curves.dart';
7 import '../fn.dart'; 7 import '../fn2.dart';
8 import '../theme/view_configuration.dart' as config; 8 import '../theme/view_configuration.dart' as config;
9 import 'dart:async'; 9 import 'dart:async';
10 import 'dart:math' as math; 10 import 'dart:math' as math;
11 import '../layout.dart'; 11 import '../layout2.dart';
12 12
13 const double _kSplashConfirmedDuration = 350.0; 13 const double _kSplashConfirmedDuration = 350.0;
14 const double _kSplashUnconfirmedDuration = config.kDefaultLongPressTimeout; 14 const double _kSplashUnconfirmedDuration = config.kDefaultLongPressTimeout;
15 const double _kSplashAbortDuration = 100.0; 15 const double _kSplashAbortDuration = 100.0;
16 const double _kSplashInitialDelay = 0.0; // we could delay initially in case the user scrolls 16 const double _kSplashInitialDelay = 0.0; // we could delay initially in case the user scrolls
17 17
18 double _getSplashTargetSize(Rect rect, double x, double y) { 18 double _getSplashTargetSize(Rect rect, double x, double y) {
19 return 2.0 * math.max(math.max(x - rect.x, rect.x + rect.width - x), 19 return 2.0 * math.max(math.max(x - rect.x, rect.x + rect.width - x),
20 math.max(y - rect.y, rect.y + rect.height - y)); 20 math.max(y - rect.y, rect.y + rect.height - y));
21 } 21 }
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 style: _clipperStyle, 132 style: _clipperStyle,
133 children: [ 133 children: [
134 new Container( 134 new Container(
135 inlineStyle: _inlineStyle, 135 inlineStyle: _inlineStyle,
136 style: _splashStyle 136 style: _splashStyle
137 ) 137 )
138 ] 138 ]
139 ); 139 );
140 } 140 }
141 } 141 }
OLDNEW
« no previous file with comments | « sky/sdk/lib/framework/components2/icon_button.dart ('k') | sky/sdk/lib/framework/components2/ink_well.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698