| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 double ToDouble() const { return number_; } | 47 double ToDouble() const { return number_; } |
| 48 | 48 |
| 49 protected: | 49 protected: |
| 50 PassRefPtr<AnimatableValue> InterpolateTo(const AnimatableValue*, | 50 PassRefPtr<AnimatableValue> InterpolateTo(const AnimatableValue*, |
| 51 double fraction) const override; | 51 double fraction) const override; |
| 52 | 52 |
| 53 private: | 53 private: |
| 54 AnimatableDouble(double number) : number_(number) {} | 54 AnimatableDouble(double number) : number_(number) {} |
| 55 AnimatableType GetType() const override { return kTypeDouble; } | 55 AnimatableType GetType() const override { return kTypeDouble; } |
| 56 bool EqualTo(const AnimatableValue*) const override; | |
| 57 | 56 |
| 58 double number_; | 57 double number_; |
| 59 }; | 58 }; |
| 60 | 59 |
| 61 DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatableDouble, IsDouble()); | 60 DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatableDouble, IsDouble()); |
| 62 | 61 |
| 63 } // namespace blink | 62 } // namespace blink |
| 64 | 63 |
| 65 #endif // AnimatableDouble_h | 64 #endif // AnimatableDouble_h |
| OLD | NEW |