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

Side by Side Diff: third_party/WebKit/Source/platform/geometry/IntSize.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, 2004, 2005, 2006 Apple Computer, Inc. All rights reserve d. 2 * Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc. All rights reserve d.
3 * Copyright (C) 2013 Google Inc. All rights reserved. 3 * Copyright (C) 2013 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 inline bool operator==(const IntSize& a, const IntSize& b) 171 inline bool operator==(const IntSize& a, const IntSize& b)
172 { 172 {
173 return a.width() == b.width() && a.height() == b.height(); 173 return a.width() == b.width() && a.height() == b.height();
174 } 174 }
175 175
176 inline bool operator!=(const IntSize& a, const IntSize& b) 176 inline bool operator!=(const IntSize& a, const IntSize& b)
177 { 177 {
178 return a.width() != b.width() || a.height() != b.height(); 178 return a.width() != b.width() || a.height() != b.height();
179 } 179 }
180 180
181 // Redeclared here to avoid ODR issues. 181 PLATFORM_EXPORT std::ostream& operator<<(std::ostream&, const IntSize&);
182 // See platform/testing/GeometryPrinters.h.
183 void PrintTo(const IntSize&, std::ostream*);
184 182
185 } // namespace blink 183 } // namespace blink
186 184
187 #endif // IntSize_h 185 #endif // IntSize_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/geometry/IntRect.cpp ('k') | third_party/WebKit/Source/platform/geometry/IntSize.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698