Chromium Code Reviews| Index: Source/core/platform/animation/TimingFunction.h |
| diff --git a/Source/core/platform/animation/TimingFunction.h b/Source/core/platform/animation/TimingFunction.h |
| index 342925772719f6112f7767545cc02fe44402e40d..ecc9c7477f79897159b7525da372d91e786c83d2 100644 |
| --- a/Source/core/platform/animation/TimingFunction.h |
| +++ b/Source/core/platform/animation/TimingFunction.h |
| @@ -35,6 +35,7 @@ |
| #include "wtf/Vector.h" |
| #include <algorithm> |
| + |
| namespace WebCore { |
| class TimingFunction : public RefCounted<TimingFunction> { |
| @@ -91,6 +92,10 @@ private: |
| } |
| }; |
| + |
| +// Forward declare so we can friend it below. Don't used in production code! |
|
Steve Block
2013/11/04 23:05:02
s/used/use
mithro-old
2013/11/05 01:53:09
Done.
|
| +class ChainedTimingFunctionPrintTo; |
| + |
| class CubicBezierTimingFunction : public TimingFunction { |
| public: |
| enum SubType { |
| @@ -311,6 +316,10 @@ private: |
| double m_min; |
| double m_max; |
| RefPtr<TimingFunction> m_timingFunction; |
| + |
| + // Allow printing of our segments. Can be removed once |
| + // ChainedTimingFunction has a public API for segments. |
| + friend class ChainedTimingFunctionPrintTo; |
| }; |
| ChainedTimingFunction() |
| @@ -320,6 +329,10 @@ private: |
| } |
| Vector<Segment> m_segments; |
| + |
| + // Allow printing of our segments. Can be removed once |
| + // ChainedTimingFunction has a public API for segments. |
| + friend class ChainedTimingFunctionPrintTo; |
| }; |
| } // namespace WebCore |