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

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: Using more permission regex for windows. 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
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/platform/animation/TimingFunctionTestHelper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e2c33bebe05708b203937a652354886b817b8719 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 use in production code!
+class ChainedTimingFunctionPrinter;
+
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 ChainedTimingFunctionPrinter;
};
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 ChainedTimingFunctionPrinter;
};
} // namespace WebCore
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/platform/animation/TimingFunctionTestHelper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698