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

Unified Diff: Source/core/platform/animation/TimingFunction.h

Issue 39223002: TimingFunction test helper. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Code review fixes. Created 7 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698