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

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: Moving test helper code into cpp file to fix linking issue. Created 7 years, 2 months 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..cc9db512250d142bee9dc3ac1c9370bed1915aef 100644
--- a/Source/core/platform/animation/TimingFunction.h
+++ b/Source/core/platform/animation/TimingFunction.h
@@ -34,6 +34,8 @@
#include "wtf/RefCounted.h"
#include "wtf/Vector.h"
#include <algorithm>
+#include <iosfwd>
+
namespace WebCore {
@@ -311,6 +313,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 void PrintTo(const ChainedTimingFunction&, ::std::ostream*, bool);
shans 2013/10/31 20:22:54 I think it would be cleaner to put these methods o
mithro-old 2013/11/03 09:58:24 The way PrintTo methods are defined is not control
};
ChainedTimingFunction()
@@ -320,6 +326,10 @@ private:
}
Vector<Segment> m_segments;
+
+ // Allow printing of our segments. Can be removed once
+ // ChainedTimingFunction has a public API for segments.
+ friend void PrintTo(const ChainedTimingFunction&, ::std::ostream*, bool);
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698