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

Side by Side Diff: third_party/WebKit/Source/core/animation/PairwiseInterpolationValue.h

Issue 2384263003: Reflow comments in core/animation and subdirs (Closed)
Patch Set: Created 4 years, 2 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 #ifndef PairwiseInterpolationValue_h 5 #ifndef PairwiseInterpolationValue_h
6 #define PairwiseInterpolationValue_h 6 #define PairwiseInterpolationValue_h
7 7
8 #include "core/animation/InterpolableValue.h" 8 #include "core/animation/InterpolableValue.h"
9 #include "core/animation/NonInterpolableValue.h" 9 #include "core/animation/NonInterpolableValue.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 #include <memory> 11 #include <memory>
12 12
13 namespace blink { 13 namespace blink {
14 14
15 // Represents the smooth interpolation between an adjacent pair of PropertySpeci ficKeyframes. 15 // Represents the smooth interpolation between an adjacent pair of
16 // PropertySpecificKeyframes.
16 struct PairwiseInterpolationValue { 17 struct PairwiseInterpolationValue {
17 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); 18 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
18 19
19 PairwiseInterpolationValue( 20 PairwiseInterpolationValue(
20 std::unique_ptr<InterpolableValue> startInterpolableValue, 21 std::unique_ptr<InterpolableValue> startInterpolableValue,
21 std::unique_ptr<InterpolableValue> endInterpolableValue, 22 std::unique_ptr<InterpolableValue> endInterpolableValue,
22 PassRefPtr<NonInterpolableValue> nonInterpolableValue = nullptr) 23 PassRefPtr<NonInterpolableValue> nonInterpolableValue = nullptr)
23 : startInterpolableValue(std::move(startInterpolableValue)), 24 : startInterpolableValue(std::move(startInterpolableValue)),
24 endInterpolableValue(std::move(endInterpolableValue)), 25 endInterpolableValue(std::move(endInterpolableValue)),
25 nonInterpolableValue(std::move(nonInterpolableValue)) {} 26 nonInterpolableValue(std::move(nonInterpolableValue)) {}
26 27
27 PairwiseInterpolationValue(std::nullptr_t) {} 28 PairwiseInterpolationValue(std::nullptr_t) {}
28 29
29 PairwiseInterpolationValue(PairwiseInterpolationValue&& other) 30 PairwiseInterpolationValue(PairwiseInterpolationValue&& other)
30 : startInterpolableValue(std::move(other.startInterpolableValue)), 31 : startInterpolableValue(std::move(other.startInterpolableValue)),
31 endInterpolableValue(std::move(other.endInterpolableValue)), 32 endInterpolableValue(std::move(other.endInterpolableValue)),
32 nonInterpolableValue(other.nonInterpolableValue.release()) {} 33 nonInterpolableValue(other.nonInterpolableValue.release()) {}
33 34
34 operator bool() const { return startInterpolableValue.get(); } 35 operator bool() const { return startInterpolableValue.get(); }
35 36
36 std::unique_ptr<InterpolableValue> startInterpolableValue; 37 std::unique_ptr<InterpolableValue> startInterpolableValue;
37 std::unique_ptr<InterpolableValue> endInterpolableValue; 38 std::unique_ptr<InterpolableValue> endInterpolableValue;
38 RefPtr<NonInterpolableValue> nonInterpolableValue; 39 RefPtr<NonInterpolableValue> nonInterpolableValue;
39 }; 40 };
40 41
41 } // namespace blink 42 } // namespace blink
42 43
43 #endif // PairwiseInterpolationValue_h 44 #endif // PairwiseInterpolationValue_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698