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

Side by Side Diff: third_party/WebKit/Source/platform/testing/GeometryPrinters.cpp

Issue 1774943003: blink: Rename platform/ methods to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-platform: rebase-yayyyyyyyy Created 4 years, 9 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 #include "platform/testing/GeometryPrinters.h" 5 #include "platform/testing/GeometryPrinters.h"
6 6
7 #include "platform/geometry/FloatBox.h" 7 #include "platform/geometry/FloatBox.h"
8 #include "platform/geometry/FloatPoint.h" 8 #include "platform/geometry/FloatPoint.h"
9 #include "platform/geometry/FloatPoint3D.h" 9 #include "platform/geometry/FloatPoint3D.h"
10 #include "platform/geometry/FloatQuad.h" 10 #include "platform/geometry/FloatQuad.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 << rect.y() << ", " 86 << rect.y() << ", "
87 << rect.width() << ", " 87 << rect.width() << ", "
88 << rect.height() << ")"; 88 << rect.height() << ")";
89 } 89 }
90 90
91 void PrintTo(const FloatRoundedRect& roundedRect, std::ostream* os) 91 void PrintTo(const FloatRoundedRect& roundedRect, std::ostream* os)
92 { 92 {
93 *os << "FloatRoundedRect("; 93 *os << "FloatRoundedRect(";
94 PrintTo(roundedRect.rect(), os); 94 PrintTo(roundedRect.rect(), os);
95 *os << ", "; 95 *os << ", ";
96 PrintTo(roundedRect.radii(), os); 96 PrintTo(roundedRect.getRadii(), os);
97 *os << ")"; 97 *os << ")";
98 } 98 }
99 99
100 void PrintTo(const FloatRoundedRect::Radii& radii, std::ostream* os) 100 void PrintTo(const FloatRoundedRect::Radii& radii, std::ostream* os)
101 { 101 {
102 *os << "FloatRoundedRect::Radii("; 102 *os << "FloatRoundedRect::Radii(";
103 PrintTo(radii.topLeft(), os); 103 PrintTo(radii.topLeft(), os);
104 *os << ", "; 104 *os << ", ";
105 PrintTo(radii.topRight(), os); 105 PrintTo(radii.topRight(), os);
106 *os << ", "; 106 *os << ", ";
(...skipping 15 matching lines...) Expand all
122 { 122 {
123 ScopedFloatFlags scope(*os); 123 ScopedFloatFlags scope(*os);
124 *os << "LayoutRect(" 124 *os << "LayoutRect("
125 << rect.x().toFloat() << ", " 125 << rect.x().toFloat() << ", "
126 << rect.y().toFloat() << ", " 126 << rect.y().toFloat() << ", "
127 << rect.width().toFloat() << ", " 127 << rect.width().toFloat() << ", "
128 << rect.height().toFloat() << ")"; 128 << rect.height().toFloat() << ")";
129 } 129 }
130 130
131 } // namespace blink 131 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698