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

Side by Side Diff: chrome/browser/android/vr_shell/animation.cc

Issue 2801073002: [vr] Use base's time classes (Closed)
Patch Set: updated tests Created 3 years, 8 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "chrome/browser/android/vr_shell/animation.h" 5 #include "chrome/browser/android/vr_shell/animation.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "chrome/browser/android/vr_shell/easing.h" 9 #include "chrome/browser/android/vr_shell/easing.h"
10 10
11 namespace vr_shell { 11 namespace vr_shell {
12 12
13 Animation::Animation(int id, 13 Animation::Animation(int id,
14 Property property, 14 Property property,
15 std::unique_ptr<easing::Easing> easing, 15 std::unique_ptr<easing::Easing> easing,
16 std::vector<float> from, 16 std::vector<float> from,
17 std::vector<float> to, 17 std::vector<float> to,
18 int64_t start, 18 const base::TimeTicks& start,
19 int64_t duration) 19 const base::TimeDelta& duration)
20 : id(id), 20 : id(id),
21 property(property), 21 property(property),
22 easing(std::move(easing)), 22 easing(std::move(easing)),
23 from(from), 23 from(from),
24 to(to), 24 to(to),
25 start(start), 25 start(start),
26 duration(duration) {} 26 duration(duration) {}
27 27
28 Animation::~Animation() {} 28 Animation::~Animation() {}
29 29
30 } // namespace vr_shell 30 } // namespace vr_shell
OLDNEW
« no previous file with comments | « chrome/browser/android/vr_shell/animation.h ('k') | chrome/browser/android/vr_shell/ui_elements.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698