| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 ~AnimatableFilterOperations() override {} | 46 ~AnimatableFilterOperations() override {} |
| 47 | 47 |
| 48 const FilterOperations& Operations() const { | 48 const FilterOperations& Operations() const { |
| 49 return operation_wrapper_->Operations(); | 49 return operation_wrapper_->Operations(); |
| 50 } | 50 } |
| 51 | 51 |
| 52 protected: | 52 protected: |
| 53 PassRefPtr<AnimatableValue> InterpolateTo(const AnimatableValue*, | 53 PassRefPtr<AnimatableValue> InterpolateTo(const AnimatableValue*, |
| 54 double fraction) const override; | 54 double fraction) const override; |
| 55 bool UsesDefaultInterpolationWith(const AnimatableValue*) const override; | |
| 56 | 55 |
| 57 private: | 56 private: |
| 58 AnimatableFilterOperations(const FilterOperations& operations) | 57 AnimatableFilterOperations(const FilterOperations& operations) |
| 59 : operation_wrapper_(FilterOperationsWrapper::Create(operations)) {} | 58 : operation_wrapper_(FilterOperationsWrapper::Create(operations)) {} |
| 60 | 59 |
| 61 bool EqualTo(const AnimatableValue*) const override; | |
| 62 AnimatableType GetType() const override { return kTypeFilterOperations; } | 60 AnimatableType GetType() const override { return kTypeFilterOperations; } |
| 63 | 61 |
| 64 Persistent<FilterOperationsWrapper> operation_wrapper_; | 62 Persistent<FilterOperationsWrapper> operation_wrapper_; |
| 65 }; | 63 }; |
| 66 | 64 |
| 67 DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatableFilterOperations, | 65 DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatableFilterOperations, |
| 68 IsFilterOperations()); | 66 IsFilterOperations()); |
| 69 | 67 |
| 70 } // namespace blink | 68 } // namespace blink |
| 71 | 69 |
| 72 #endif // AnimatableFilterOperations_h | 70 #endif // AnimatableFilterOperations_h |
| OLD | NEW |