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

Side by Side Diff: third_party/WebKit/Source/platform/geometry/FloatRoundedRect.h

Issue 2267183003: Switch from PrintTo to operator<< for platform printers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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 Adobe Systems Incorporated. All rights reserved. 2 * Copyright (C) 2013 Adobe Systems Incorporated. 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above 8 * 1. Redistributions of source code must retain the above
9 * copyright notice, this list of conditions and the following 9 * copyright notice, this list of conditions and the following
10 * disclaimer. 10 * disclaimer.
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 { 194 {
195 return !(a == b); 195 return !(a == b);
196 } 196 }
197 197
198 198
199 inline bool operator==(const FloatRoundedRect& a, const FloatRoundedRect& b) 199 inline bool operator==(const FloatRoundedRect& a, const FloatRoundedRect& b)
200 { 200 {
201 return a.rect() == b.rect() && a.getRadii() == b.getRadii(); 201 return a.rect() == b.rect() && a.getRadii() == b.getRadii();
202 } 202 }
203 203
204 // Redeclared here to avoid ODR issues. 204 PLATFORM_EXPORT std::ostream& operator<<(std::ostream&, const FloatRoundedRect&) ;
205 // See platform/testing/GeometryPrinters.h. 205 PLATFORM_EXPORT std::ostream& operator<<(std::ostream&, const FloatRoundedRect:: Radii&);
206 void PrintTo(const FloatRoundedRect&, std::ostream*);
207 void PrintTo(const FloatRoundedRect::Radii&, std::ostream*);
208 206
209 } // namespace blink 207 } // namespace blink
210 208
211 #endif // FloatRoundedRect_h 209 #endif // FloatRoundedRect_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698