| OLD | NEW |
| 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 #ifndef InterpolationTypesMap_h | 5 #ifndef InterpolationTypesMap_h |
| 6 #define InterpolationTypesMap_h | 6 #define InterpolationTypesMap_h |
| 7 | 7 |
| 8 #include <memory> |
| 8 #include "wtf/Vector.h" | 9 #include "wtf/Vector.h" |
| 9 #include <memory> | |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 class InterpolationType; | 13 class InterpolationType; |
| 14 class PropertyHandle; | 14 class PropertyHandle; |
| 15 | 15 |
| 16 using InterpolationTypes = Vector<std::unique_ptr<const InterpolationType>>; | 16 using InterpolationTypes = Vector<std::unique_ptr<const InterpolationType>>; |
| 17 | 17 |
| 18 class InterpolationTypesMap { | 18 class InterpolationTypesMap { |
| 19 STACK_ALLOCATED(); | 19 STACK_ALLOCATED(); |
| 20 | 20 |
| 21 public: | 21 public: |
| 22 virtual const InterpolationTypes& get(const PropertyHandle&) const = 0; | 22 virtual const InterpolationTypes& get(const PropertyHandle&) const = 0; |
| 23 virtual size_t version() const { return 0; } | 23 virtual size_t version() const { return 0; } |
| 24 }; | 24 }; |
| 25 | 25 |
| 26 } // namespace blink | 26 } // namespace blink |
| 27 | 27 |
| 28 #endif // InterpolationTypesMap_h | 28 #endif // InterpolationTypesMap_h |
| OLD | NEW |