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

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

Issue 2614883007: Change computed style enums to be prefixed with 'k'. (Closed)
Patch Set: Rebase on ToT. Created 3 years, 11 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 *os << ")"; 140 *os << ")";
141 } 141 }
142 142
143 void PrintTo(const AnimatableUnknown& animUnknown, ::std::ostream* os) { 143 void PrintTo(const AnimatableUnknown& animUnknown, ::std::ostream* os) {
144 PrintTo(*(animUnknown.toCSSValue()), os, "AnimatableUnknown"); 144 PrintTo(*(animUnknown.toCSSValue()), os, "AnimatableUnknown");
145 } 145 }
146 146
147 void PrintTo(const AnimatableVisibility& animVisibility, ::std::ostream* os) { 147 void PrintTo(const AnimatableVisibility& animVisibility, ::std::ostream* os) {
148 *os << "AnimatableVisibility("; 148 *os << "AnimatableVisibility(";
149 switch (animVisibility.visibility()) { 149 switch (animVisibility.visibility()) {
150 case EVisibility::Visible: 150 case EVisibility::kVisible:
151 *os << "EVisibility::Visible"; 151 *os << "EVisibility::kVisible";
152 break; 152 break;
153 case EVisibility::Hidden: 153 case EVisibility::kHidden:
154 *os << "EVisibility::Hidden"; 154 *os << "EVisibility::kHidden";
155 break; 155 break;
156 case EVisibility::Collapse: 156 case EVisibility::kCollapse:
157 *os << "EVisibility::Collapse"; 157 *os << "EVisibility::kCollapse";
Łukasz Anforowicz 2017/01/06 17:28:07 AFAICT the changes in this file are the only place
158 break; 158 break;
159 default: 159 default:
160 *os << "Unknown Visibility - update switch in " 160 *os << "Unknown Visibility - update switch in "
161 "AnimatableValueTestHelper.h"; 161 "AnimatableValueTestHelper.h";
162 } 162 }
163 *os << ")"; 163 *os << ")";
164 } 164 }
165 165
166 void PrintTo(const AnimatableValue& animValue, ::std::ostream* os) { 166 void PrintTo(const AnimatableValue& animValue, ::std::ostream* os) {
167 if (animValue.isClipPathOperation()) 167 if (animValue.isClipPathOperation())
(...skipping 17 matching lines...) Expand all
185 else if (animValue.isUnknown()) 185 else if (animValue.isUnknown())
186 PrintTo(toAnimatableUnknown(animValue), os); 186 PrintTo(toAnimatableUnknown(animValue), os);
187 else if (animValue.isVisibility()) 187 else if (animValue.isVisibility())
188 PrintTo(toAnimatableVisibility(animValue), os); 188 PrintTo(toAnimatableVisibility(animValue), os);
189 else 189 else
190 *os << "Unknown AnimatableValue - update ifelse chain in " 190 *os << "Unknown AnimatableValue - update ifelse chain in "
191 "AnimatableValueTestHelper.h"; 191 "AnimatableValueTestHelper.h";
192 } 192 }
193 193
194 } // namespace blink 194 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698