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

Side by Side Diff: third_party/WebKit/Source/platform/geometry/DoubleRect.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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef DoubleRect_h 5 #ifndef DoubleRect_h
6 #define DoubleRect_h 6 #define DoubleRect_h
7 7
8 #include "platform/geometry/DoublePoint.h" 8 #include "platform/geometry/DoublePoint.h"
9 #include "platform/geometry/DoubleSize.h" 9 #include "platform/geometry/DoubleSize.h"
10 #include "wtf/Allocator.h" 10 #include "wtf/Allocator.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 DoubleSize m_size; 68 DoubleSize m_size;
69 }; 69 };
70 70
71 PLATFORM_EXPORT IntRect enclosingIntRect(const DoubleRect&); 71 PLATFORM_EXPORT IntRect enclosingIntRect(const DoubleRect&);
72 72
73 // Returns a valid IntRect contained within the given DoubleRect. 73 // Returns a valid IntRect contained within the given DoubleRect.
74 PLATFORM_EXPORT IntRect enclosedIntRect(const DoubleRect&); 74 PLATFORM_EXPORT IntRect enclosedIntRect(const DoubleRect&);
75 75
76 PLATFORM_EXPORT IntRect roundedIntRect(const DoubleRect&); 76 PLATFORM_EXPORT IntRect roundedIntRect(const DoubleRect&);
77 77
78 // Redeclared here to avoid ODR issues. 78 PLATFORM_EXPORT std::ostream& operator<<(std::ostream&, const DoubleRect&);
79 // See platform/testing/GeometryPrinters.h.
80 void PrintTo(const DoubleRect&, std::ostream*);
81 79
82 } // namespace blink 80 } // namespace blink
83 81
84 #endif 82 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698