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

Side by Side Diff: third_party/WebKit/Source/platform/geometry/IntRect.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, 4 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) 2003, 2006, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2006, 2009 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 return a.location() != b.location() || a.size() != b.size(); 221 return a.location() != b.location() || a.size() != b.size();
222 } 222 }
223 223
224 #if OS(MACOSX) 224 #if OS(MACOSX)
225 PLATFORM_EXPORT IntRect enclosingIntRect(const CGRect&); 225 PLATFORM_EXPORT IntRect enclosingIntRect(const CGRect&);
226 #if defined(__OBJC__) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES) 226 #if defined(__OBJC__) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)
227 PLATFORM_EXPORT IntRect enclosingIntRect(const NSRect&); 227 PLATFORM_EXPORT IntRect enclosingIntRect(const NSRect&);
228 #endif 228 #endif
229 #endif 229 #endif
230 230
231 // Redeclared here to avoid ODR issues. 231 PLATFORM_EXPORT std::ostream& operator<<(std::ostream&, const IntRect&);
232 // See platform/testing/GeometryPrinters.h.
233 void PrintTo(const IntRect&, std::ostream*);
234 232
235 } // namespace blink 233 } // namespace blink
236 234
237 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::IntRect); 235 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::IntRect);
238 236
239 #endif // IntRect_h 237 #endif // IntRect_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/geometry/IntPoint.cpp ('k') | third_party/WebKit/Source/platform/geometry/IntRect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698