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

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

Issue 2463703003: blink: Cleanup core class forward declarations (Closed)
Patch Set: Remove redundant empty lines Created 4 years, 1 month 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 ListInterpolationFunctions_h 5 #ifndef ListInterpolationFunctions_h
6 #define ListInterpolationFunctions_h 6 #define ListInterpolationFunctions_h
7 7
8 #include "core/animation/InterpolationValue.h" 8 #include "core/animation/InterpolationValue.h"
9 #include "core/animation/PairwiseInterpolationValue.h" 9 #include "core/animation/PairwiseInterpolationValue.h"
10 #include "wtf/Vector.h" 10 #include "wtf/Vector.h"
11 #include <memory> 11 #include <memory>
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class CSSValueList;
16 class UnderlyingValueOwner; 15 class UnderlyingValueOwner;
17 class InterpolationType; 16 class InterpolationType;
18 17
19 class ListInterpolationFunctions { 18 class ListInterpolationFunctions {
20 public: 19 public:
21 template <typename CreateItemCallback> 20 template <typename CreateItemCallback>
22 static InterpolationValue createList(size_t length, CreateItemCallback); 21 static InterpolationValue createList(size_t length, CreateItemCallback);
23 static InterpolationValue createEmptyList() { 22 static InterpolationValue createEmptyList() {
24 return InterpolationValue(InterpolableList::create(0)); 23 return InterpolationValue(InterpolableList::create(0));
25 } 24 }
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 nonInterpolableValues[i] = item.nonInterpolableValue.release(); 102 nonInterpolableValues[i] = item.nonInterpolableValue.release();
104 } 103 }
105 return InterpolationValue( 104 return InterpolationValue(
106 std::move(interpolableList), 105 std::move(interpolableList),
107 NonInterpolableList::create(std::move(nonInterpolableValues))); 106 NonInterpolableList::create(std::move(nonInterpolableValues)));
108 } 107 }
109 108
110 } // namespace blink 109 } // namespace blink
111 110
112 #endif // ListInterpolationFunctions_h 111 #endif // ListInterpolationFunctions_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698