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

Side by Side Diff: third_party/WebKit/Source/core/animation/animatable/AnimatableValueTestHelper.cpp

Issue 1746283002: Rename enums/functions that collide in chromium style in platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: get-names-13-platform: . Created 4 years, 9 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 unified diff | Download patch
OLDNEW
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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 *os << "AnimatableShapeValue@" << &animValue; 83 *os << "AnimatableShapeValue@" << &animValue;
84 } 84 }
85 85
86 void PrintTo(const AnimatableStrokeDasharrayList& animValue, ::std::ostream* os) 86 void PrintTo(const AnimatableStrokeDasharrayList& animValue, ::std::ostream* os)
87 { 87 {
88 *os << "AnimatableStrokeDasharrayList("; 88 *os << "AnimatableStrokeDasharrayList(";
89 RefPtr<SVGDashArray> list = animValue.toSVGDashArray(1); 89 RefPtr<SVGDashArray> list = animValue.toSVGDashArray(1);
90 size_t length = list->size(); 90 size_t length = list->size();
91 for (size_t i = 0; i < length; ++i) { 91 for (size_t i = 0; i < length; ++i) {
92 const Length& dashLength = list->at(i); 92 const Length& dashLength = list->at(i);
93 PixelsAndPercent pixelsAndPercent = dashLength.pixelsAndPercent(); 93 PixelsAndPercent pixelsAndPercent = dashLength.getPixelsAndPercent();
94 *os << pixelsAndPercent.pixels << '+'; 94 *os << pixelsAndPercent.pixels << '+';
95 *os << pixelsAndPercent.percent << '%'; 95 *os << pixelsAndPercent.percent << '%';
96 96
97 if (i != length-1) 97 if (i != length-1)
98 *os << ", "; 98 *os << ", ";
99 } 99 }
100 *os << ")"; 100 *os << ")";
101 } 101 }
102 102
103 void PrintTo(const AnimatableTransform& animTransform, ::std::ostream* os) 103 void PrintTo(const AnimatableTransform& animTransform, ::std::ostream* os)
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 PrintTo(toAnimatableTransform(animValue), os); 196 PrintTo(toAnimatableTransform(animValue), os);
197 else if (animValue.isUnknown()) 197 else if (animValue.isUnknown())
198 PrintTo(toAnimatableUnknown(animValue), os); 198 PrintTo(toAnimatableUnknown(animValue), os);
199 else if (animValue.isVisibility()) 199 else if (animValue.isVisibility())
200 PrintTo(toAnimatableVisibility(animValue), os); 200 PrintTo(toAnimatableVisibility(animValue), os);
201 else 201 else
202 *os << "Unknown AnimatableValue - update ifelse chain in AnimatableValue TestHelper.h"; 202 *os << "Unknown AnimatableValue - update ifelse chain in AnimatableValue TestHelper.h";
203 } 203 }
204 204
205 } // namespace blink 205 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698