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

Side by Side Diff: remoting/client/ui/fling_animation.cc

Issue 2879383002: [CRD iOS] Move UI stuff into a subdirectory (Closed)
Patch Set: Fix include Created 3 years, 7 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 | « remoting/client/ui/fling_animation.h ('k') | remoting/client/ui/fling_animation_unittest.cc » ('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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 #include "remoting/client/fling_animation.h" 5 #include "remoting/client/ui/fling_animation.h"
6 6
7 #include "base/time/default_tick_clock.h" 7 #include "base/time/default_tick_clock.h"
8 8
9 namespace remoting { 9 namespace remoting {
10 10
11 FlingAnimation::FlingAnimation(float time_constant, 11 FlingAnimation::FlingAnimation(float time_constant,
12 const FlingCallback& fling_callback) 12 const FlingCallback& fling_callback)
13 : fling_tracker_(time_constant), 13 : fling_tracker_(time_constant),
14 fling_callback_(fling_callback), 14 fling_callback_(fling_callback),
15 clock_(new base::DefaultTickClock()) {} 15 clock_(new base::DefaultTickClock()) {}
(...skipping 21 matching lines...) Expand all
37 void FlingAnimation::Abort() { 37 void FlingAnimation::Abort() {
38 fling_tracker_.StopFling(); 38 fling_tracker_.StopFling();
39 } 39 }
40 40
41 void FlingAnimation::SetTickClockForTest( 41 void FlingAnimation::SetTickClockForTest(
42 std::unique_ptr<base::TickClock> clock) { 42 std::unique_ptr<base::TickClock> clock) {
43 clock_ = std::move(clock); 43 clock_ = std::move(clock);
44 } 44 }
45 45
46 } // namespace remoting 46 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/client/ui/fling_animation.h ('k') | remoting/client/ui/fling_animation_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698