Home
last modified time | relevance | path

Searched refs:SizeF (Results 1 – 25 of 84) sorted by relevance

1234

/external/chromium_org/ui/gfx/geometry/
Dsize_unittest.cc15 int TestSizeF(const SizeF& s) { in TestSizeF()
27 SizeF b(10, 20); in TEST()
34 EXPECT_EQ(Size(0, 0), ToFlooredSize(SizeF(0, 0))); in TEST()
35 EXPECT_EQ(Size(0, 0), ToFlooredSize(SizeF(0.0001f, 0.0001f))); in TEST()
36 EXPECT_EQ(Size(0, 0), ToFlooredSize(SizeF(0.4999f, 0.4999f))); in TEST()
37 EXPECT_EQ(Size(0, 0), ToFlooredSize(SizeF(0.5f, 0.5f))); in TEST()
38 EXPECT_EQ(Size(0, 0), ToFlooredSize(SizeF(0.9999f, 0.9999f))); in TEST()
40 EXPECT_EQ(Size(10, 10), ToFlooredSize(SizeF(10, 10))); in TEST()
41 EXPECT_EQ(Size(10, 10), ToFlooredSize(SizeF(10.0001f, 10.0001f))); in TEST()
42 EXPECT_EQ(Size(10, 10), ToFlooredSize(SizeF(10.4999f, 10.4999f))); in TEST()
[all …]
Dsize_f.h18 class GFX_EXPORT SizeF : public SizeBase<SizeF, float> {
20 SizeF() : SizeBase<SizeF, float>(0, 0) {} in SizeF() function
21 SizeF(float width, float height) : SizeBase<SizeF, float>(width, height) {} in SizeF() function
22 ~SizeF() {} in ~SizeF()
35 inline bool operator==(const SizeF& lhs, const SizeF& rhs) {
39 inline bool operator!=(const SizeF& lhs, const SizeF& rhs) {
43 GFX_EXPORT SizeF ScaleSize(const SizeF& p, float x_scale, float y_scale);
45 inline SizeF ScaleSize(const SizeF& p, float scale) { in ScaleSize()
50 extern template class SizeBase<SizeF, float>;
56 void PrintTo(const SizeF& size, ::std::ostream* os);
Drect_f.h22 : public RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float> {
25 : RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float> in RectF()
26 (SizeF()) {} in RectF()
29 : RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float> in RectF()
30 (SizeF(width, height)) {} in RectF()
33 : RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float> in RectF()
34 (PointF(x, y), SizeF(width, height)) {} in RectF()
36 explicit RectF(const SizeF& size) in RectF()
37 : RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float> in RectF()
40 RectF(const PointF& origin, const SizeF& size) in RectF()
[all …]
Dsize_f.cc11 template class SizeBase<SizeF, float>;
13 std::string SizeF::ToString() const { in ToString()
17 SizeF ScaleSize(const SizeF& s, float x_scale, float y_scale) { in ScaleSize()
18 SizeF scaled_s(s); in ScaleSize()
Dsize_conversions.h14 GFX_EXPORT Size ToFlooredSize(const SizeF& size);
17 GFX_EXPORT Size ToCeiledSize(const SizeF& size);
20 GFX_EXPORT Size ToRoundedSize(const SizeF& size);
Dsize_conversions.cc11 Size ToFlooredSize(const SizeF& size) { in ToFlooredSize()
17 Size ToCeiledSize(const SizeF& size) { in ToCeiledSize()
23 Size ToRoundedSize(const SizeF& size) { in ToRoundedSize()
Dsize.h47 operator SizeF() const { in SizeF() function
48 return SizeF(width(), height()); in SizeF()
Drect_f.cc17 template class RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float>;
19 typedef class RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF,
/external/chromium_org/cc/input/
Dpage_scale_animation.h33 const gfx::SizeF& viewport_size,
34 const gfx::SizeF& root_layer_size,
77 const gfx::SizeF& viewport_size,
78 const gfx::SizeF& root_layer_size,
86 gfx::SizeF StartViewportSize() const;
87 gfx::SizeF TargetViewportSize() const;
89 gfx::SizeF ViewportSizeAt(float interp) const;
103 gfx::SizeF viewport_size_;
104 gfx::SizeF root_layer_size_;
Dpage_scale_animation.cc20 const gfx::SizeF& viewport_size) { in NormalizeFromViewport()
27 const gfx::SizeF& viewport_size) { in DenormalizeToViewport()
49 const gfx::SizeF& viewport_size, in Create()
50 const gfx::SizeF& root_layer_size, in Create()
62 const gfx::SizeF& viewport_size, in PageScaleAnimation()
63 const gfx::SizeF& root_layer_size, in PageScaleAnimation()
155 gfx::SizeF PageScaleAnimation::StartViewportSize() const { in StartViewportSize()
159 gfx::SizeF PageScaleAnimation::TargetViewportSize() const { in TargetViewportSize()
163 gfx::SizeF PageScaleAnimation::ViewportSizeAt(float interp) const { in ViewportSizeAt()
Dlayer_scroll_offset_delegate.h39 const gfx::SizeF& scrollable_size,
/external/pdfium/core/src/fxge/Microsoft SDK/include/
DGdiPlusTypes.h89 class SizeF; variable
134 class SizeF
139 SizeF() in SizeF() function
144 SizeF(IN const SizeF& size) in SizeF() function
150 SizeF(IN REAL width, in SizeF() function
157 SizeF operator+(IN const SizeF& sz) const
159 return SizeF(Width + sz.Width,
163 SizeF operator-(IN const SizeF& sz) const
165 return SizeF(Width - sz.Width,
169 BOOL Equals(IN const SizeF& sz) const in Equals()
[all …]
/external/chromium_org/third_party/WebKit/public/platform/
DWebFloatSize.h85 WebFloatSize(const gfx::SizeF& s) in WebFloatSize()
97 WebFloatSize& operator=(const gfx::SizeF& s)
111 operator gfx::SizeF() const in SizeF() function
113 return gfx::SizeF(std::max(0.f, width), std::max(0.f, height)); in SizeF()
/external/chromium_org/chrome/browser/android/thumbnail/
Dthumbnail.h51 const gfx::SizeF& scaled_content_size() const { return scaled_content_size_; } in scaled_content_size()
52 const gfx::SizeF& scaled_data_size() const { return scaled_data_size_; } in scaled_data_size()
79 gfx::SizeF scaled_content_size_;
80 gfx::SizeF scaled_data_size_;
/external/chromium_org/cc/output/
Drender_surface_filters.h18 class SizeF; variable
29 const gfx::SizeF& size,
35 const gfx::SizeF& size);
Dcompositor_frame_metadata.h33 gfx::SizeF scrollable_viewport_size;
34 gfx::SizeF root_layer_size;
/external/chromium_org/ui/gfx/ipc/
Dgfx_param_traits.cc120 void ParamTraits<gfx::SizeF>::Write(Message* m, const gfx::SizeF& p) { in Write()
125 bool ParamTraits<gfx::SizeF>::Read(const Message* m, in Read()
127 gfx::SizeF* r) { in Read()
137 void ParamTraits<gfx::SizeF>::Log(const gfx::SizeF& p, std::string* l) { in Log()
Dgfx_param_traits.h22 class SizeF; variable
54 struct GFX_IPC_EXPORT ParamTraits<gfx::SizeF> {
55 typedef gfx::SizeF param_type;
/external/chromium_org/content/browser/android/
Doverscroll_glow.cc32 const gfx::SizeF& window_size, in ComputeTransform()
61 gfx::SizeF ComputeSize(OverscrollGlow::Edge edge, in ComputeSize()
62 const gfx::SizeF& window_size) { in ComputeSize()
69 return gfx::SizeF(window_size.height(), window_size.width()); in ComputeSize()
72 return gfx::SizeF(); in ComputeSize()
/external/chromium_org/content/public/browser/android/
Dcontent_view_core.h25 class SizeF; variable
66 const gfx::SizeF& content_size,
/external/chromium_org/content/browser/renderer_host/input/
Dtouch_emulator.h51 gfx::SizeF InitCursorFromResource(
83 gfx::SizeF cursor_size_;
/external/chromium_org/ui/gfx/
Drender_text_mac.h30 virtual SizeF GetStringSizeF() OVERRIDE;
85 SizeF string_size_;
/external/chromium_org/ui/snapshot/
Dsnapshot_aura_unittest.cc230 gfx::SizeF snapshot_size(test_bounds.size()); in TEST_F()
246 gfx::SizeF snapshot_size(test_bounds.size()); in TEST_F()
265 gfx::SizeF snapshot_size(test_bounds.size()); in TEST_F()
284 gfx::SizeF snapshot_size(test_bounds.size()); in TEST_F()
/external/chromium_org/android_webview/browser/
Dbrowser_view_renderer.h130 const gfx::SizeF& scrollable_size_dip,
164 const gfx::SizeF& scrollable_size_dip);
Dbrowser_view_renderer_client.h52 gfx::SizeF contents_size_dip,

1234