/external/chromium_org/ui/gfx/geometry/ |
D | vector2d_f.h | 19 class GFX_EXPORT Vector2dF { 21 Vector2dF() : x_(0), y_(0) {} in Vector2dF() function 22 Vector2dF(float x, float y) : x_(x), y_(y) {} in Vector2dF() function 34 void Add(const Vector2dF& other); 36 void Subtract(const Vector2dF& other); 38 void operator+=(const Vector2dF& other) { Add(other); } 39 void operator-=(const Vector2dF& other) { Subtract(other); } 41 void SetToMin(const Vector2dF& other) { in SetToMin() 46 void SetToMax(const Vector2dF& other) { in SetToMax() 69 inline bool operator==(const Vector2dF& lhs, const Vector2dF& rhs) { [all …]
|
D | vector2d_unittest.cc | 17 Vector2dF f = i; in TEST() 24 Vector2dF float_zero(0, 0); in TEST() 25 Vector2dF float_nonzero(0.1f, -0.1f); in TEST() 50 Vector2dF f1(3.1f, 5.1f); in TEST() 51 Vector2dF f2(4.3f, -1.3f); in TEST() 54 Vector2dF expected; in TEST() 55 Vector2dF actual; in TEST() 57 { Vector2dF(3.1F, 5.1F), f1 + Vector2d() }, in TEST() 58 { Vector2dF(3.1F, 5.1F), f1 + Vector2dF() }, in TEST() 59 { Vector2dF(3.1f + 4.3f, 5.1f - 1.3f), f1 + f2 }, in TEST() [all …]
|
D | vector2d_f.cc | 13 std::string Vector2dF::ToString() const { in ToString() 17 bool Vector2dF::IsZero() const { in IsZero() 21 void Vector2dF::Add(const Vector2dF& other) { in Add() 26 void Vector2dF::Subtract(const Vector2dF& other) { in Subtract() 31 double Vector2dF::LengthSquared() const { in LengthSquared() 35 float Vector2dF::Length() const { in Length() 39 void Vector2dF::Scale(float x_scale, float y_scale) { in Scale() 44 double CrossProduct(const Vector2dF& lhs, const Vector2dF& rhs) { in CrossProduct() 49 double DotProduct(const Vector2dF& lhs, const Vector2dF& rhs) { in DotProduct() 54 Vector2dF ScaleVector2d(const Vector2dF& v, float x_scale, float y_scale) { in ScaleVector2d() [all …]
|
D | point_f.h | 17 class GFX_EXPORT PointF : public PointBase<PointF, float, Vector2dF> { 19 PointF() : PointBase<PointF, float, Vector2dF>(0, 0) {} in PointF() 20 PointF(float x, float y) : PointBase<PointF, float, Vector2dF>(x, y) {} in PointF() 43 inline PointF operator+(const PointF& lhs, const Vector2dF& rhs) { 49 inline PointF operator-(const PointF& lhs, const Vector2dF& rhs) { 55 inline Vector2dF operator-(const PointF& lhs, const PointF& rhs) { 56 return Vector2dF(lhs.x() - rhs.x(), lhs.y() - rhs.y()); 59 inline PointF PointAtOffsetFromOrigin(const Vector2dF& offset_from_origin) { in PointAtOffsetFromOrigin() 70 extern template class PointBase<PointF, float, Vector2dF>;
|
D | rect_f.h | 21 : public RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float> { 24 : RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float> in RectF() 28 : RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float> in RectF() 32 : RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float> in RectF() 36 : RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float> in RectF() 40 : RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float> in RectF() 72 inline RectF operator+(const RectF& lhs, const Vector2dF& rhs) { 77 inline RectF operator-(const RectF& lhs, const Vector2dF& rhs) { 82 inline RectF operator+(const Vector2dF& lhs, const RectF& rhs) { 108 extern template class RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float>;
|
D | quad_f.cc | 71 Vector2dF r31 = r1 - r3; in PointIsInTriangle() 72 Vector2dF r32 = r2 - r3; in PointIsInTriangle() 73 Vector2dF r3p = point - r3; in PointIsInTriangle() 97 void QuadF::operator+=(const Vector2dF& rhs) { in operator +=() 104 void QuadF::operator-=(const Vector2dF& rhs) { in operator -=() 111 QuadF operator+(const QuadF& lhs, const Vector2dF& rhs) { in operator +() 117 QuadF operator-(const QuadF& lhs, const Vector2dF& rhs) { in operator -()
|
D | vector2d_conversions.h | 14 GFX_EXPORT Vector2d ToFlooredVector2d(const Vector2dF& vector2d); 17 GFX_EXPORT Vector2d ToCeiledVector2d(const Vector2dF& vector2d); 20 GFX_EXPORT Vector2d ToRoundedVector2d(const Vector2dF& vector2d);
|
/external/chromium_org/cc/animation/ |
D | scroll_offset_animation_curve_unittest.cc | 15 gfx::Vector2dF target_value(100.f, 200.f); in TEST() 25 curve->SetInitialValue(gfx::Vector2dF(136.f, 200.f)); in TEST() 29 curve->SetInitialValue(gfx::Vector2dF(19.f, 200.f)); in TEST() 33 curve->SetInitialValue(gfx::Vector2dF(100.f, 344.f)); in TEST() 37 curve->SetInitialValue(gfx::Vector2dF(100.f, 191.f)); in TEST() 41 curve->SetInitialValue(gfx::Vector2dF(32500.f, 500.f)); in TEST() 45 curve->SetInitialValue(gfx::Vector2dF(150.f, 119.f)); in TEST() 49 curve->SetInitialValue(gfx::Vector2dF(0.f, 14600.f)); in TEST() 53 curve->SetInitialValue(gfx::Vector2dF(95.f, 191.f)); in TEST() 58 gfx::Vector2dF initial_value(2.f, 40.f); in TEST() [all …]
|
D | scroll_offset_animation_curve.h | 20 const gfx::Vector2dF& target_value, 25 void SetInitialValue(const gfx::Vector2dF& initial_value); 26 gfx::Vector2dF GetValue(double t) const; 34 ScrollOffsetAnimationCurve(const gfx::Vector2dF& target_value, 37 gfx::Vector2dF initial_value_; 38 gfx::Vector2dF target_value_;
|
D | scroll_offset_animation_curve.cc | 19 const gfx::Vector2dF& target_value, in Create() 26 const gfx::Vector2dF& target_value, in ScrollOffsetAnimationCurve() 34 const gfx::Vector2dF& initial_value) { in SetInitialValue() 50 gfx::Vector2dF ScrollOffsetAnimationCurve::GetValue(double t) const { in GetValue() 60 return gfx::Vector2dF(gfx::Tween::FloatValueBetween( in GetValue()
|
/external/chromium_org/cc/input/ |
D | page_scale_animation.cc | 19 gfx::Vector2dF NormalizeFromViewport(const gfx::Vector2dF& denormalized, in NormalizeFromViewport() 26 gfx::Vector2dF DenormalizeToViewport(const gfx::Vector2dF& normalized, in DenormalizeToViewport() 33 gfx::Vector2dF InterpolateBetween(const gfx::Vector2dF& start, in InterpolateBetween() 34 const gfx::Vector2dF& end, in InterpolateBetween() 47 const gfx::Vector2dF& start_scroll_offset, in Create() 60 const gfx::Vector2dF& start_scroll_offset, in PageScaleAnimation() 77 void PageScaleAnimation::ZoomTo(const gfx::Vector2dF& target_scroll_offset, in ZoomTo() 97 void PageScaleAnimation::ZoomWithAnchor(const gfx::Vector2dF& anchor, in ZoomWithAnchor() 119 gfx::Vector2dF normalized = NormalizeFromViewport( in InferTargetScrollOffsetFromStartAnchor() 140 gfx::Vector2dF normalized = gfx::ScaleVector2d( in InferTargetAnchorFromScrollOffsets() [all …]
|
D | page_scale_animation.h | 30 const gfx::Vector2dF& start_scroll_offset, 42 void ZoomTo(const gfx::Vector2dF& target_scroll_offset, 50 void ZoomWithAnchor(const gfx::Vector2dF& anchor, 61 gfx::Vector2dF ScrollOffsetAtTime(base::TimeTicks time) const; 70 gfx::Vector2dF target_scroll_offset() const { return target_scroll_offset_; } in target_scroll_offset() 74 PageScaleAnimation(const gfx::Vector2dF& start_scroll_offset, 89 gfx::Vector2dF ScrollOffsetAt(float interp) const; 90 gfx::Vector2dF AnchorAt(float interp) const; 91 gfx::Vector2dF ViewportRelativeAnchorAt(float interp) const; 96 gfx::Vector2dF start_scroll_offset_; [all …]
|
D | top_controls_manager_unittest.cc | 83 manager->ScrollBy(gfx::Vector2dF(0.f, 30.f)); in TEST() 86 manager->ScrollBy(gfx::Vector2dF(0.f, 30.f)); in TEST() 89 manager->ScrollBy(gfx::Vector2dF(0.f, 100.f)); in TEST() 94 manager->ScrollBy(gfx::Vector2dF(0.f, -10.f)); in TEST() 97 manager->ScrollBy(gfx::Vector2dF(0.f, -50.f)); in TEST() 102 manager->ScrollBy(gfx::Vector2dF(0.f, -10.f)); in TEST() 105 manager->ScrollBy(gfx::Vector2dF(0.f, -50.f)); in TEST() 110 manager->ScrollBy(gfx::Vector2dF(0.f, -100.f)); in TEST() 114 manager->ScrollBy(gfx::Vector2dF(0.f, 20.f)); in TEST() 124 manager->ScrollBy(gfx::Vector2dF(0.f, 300.f)); in TEST() [all …]
|
D | layer_scroll_offset_delegate.h | 27 virtual gfx::Vector2dF GetTotalScrollOffset() = 0; 37 virtual void UpdateRootLayerState(const gfx::Vector2dF& total_scroll_offset, 38 const gfx::Vector2dF& max_scroll_offset,
|
/external/chromium_org/cc/base/ |
D | math_util_unittest.cc | 73 gfx::Vector2dF x(1, 0); in TEST() 74 gfx::Vector2dF y(0, 1); in TEST() 75 gfx::Vector2dF test_vector(0.5, 0.5); in TEST() 99 gfx::Vector2dF x(1, 0); in TEST() 100 gfx::Vector2dF y(0, 1); in TEST() 101 gfx::Vector2dF test_vector(0.3f, 0.7f); in TEST() 104 EXPECT_VECTOR_EQ(gfx::Vector2dF(0, 0), MathUtil::ProjectVector(x, y)); in TEST() 105 EXPECT_VECTOR_EQ(gfx::Vector2dF(0, 0), MathUtil::ProjectVector(y, x)); in TEST() 109 EXPECT_VECTOR_EQ(gfx::Vector2dF(test_vector.x(), 0), in TEST() 111 EXPECT_VECTOR_EQ(gfx::Vector2dF(0, test_vector.y()), in TEST() [all …]
|
/external/chromium_org/cc/layers/ |
D | layer_impl_unittest.cc | 447 EXPECT_VECTOR_EQ(gfx::Vector2dF(), layer()->TotalScrollOffset()); in TEST_F() 448 EXPECT_VECTOR_EQ(gfx::Vector2dF(), layer()->scroll_offset()); in TEST_F() 449 EXPECT_VECTOR_EQ(gfx::Vector2dF(), layer()->ScrollDelta()); in TEST_F() 451 layer()->ScrollBy(gfx::Vector2dF(-100, 100)); in TEST_F() 452 EXPECT_VECTOR_EQ(gfx::Vector2dF(0, 80), layer()->TotalScrollOffset()); in TEST_F() 455 EXPECT_VECTOR_EQ(gfx::Vector2dF(), layer()->scroll_offset()); in TEST_F() 457 layer()->ScrollBy(gfx::Vector2dF(100, -100)); in TEST_F() 458 EXPECT_VECTOR_EQ(gfx::Vector2dF(50, 0), layer()->TotalScrollOffset()); in TEST_F() 461 EXPECT_VECTOR_EQ(gfx::Vector2dF(), layer()->scroll_offset()); in TEST_F() 470 EXPECT_VECTOR_EQ(gfx::Vector2dF(), layer()->ScrollDelta()); in TEST_F() [all …]
|
D | layer_impl.h | 73 virtual void SetTotalScrollOffset(const gfx::Vector2dF& new_value) = 0; 74 virtual gfx::Vector2dF GetTotalScrollOffset() = 0; 93 virtual gfx::Vector2dF ScrollOffsetForAnimation() const OVERRIDE; 100 const gfx::Vector2dF& scroll_offset) OVERRIDE; 258 gfx::Vector2dF FixedContainerSizeDelta() const; 349 gfx::Vector2dF BoundsDelta() const { in BoundsDelta() 350 return gfx::Vector2dF(temporary_impl_bounds_.width() - bounds_.width(), in BoundsDelta() 366 const gfx::Vector2dF& scroll_delta); 370 gfx::Vector2dF ClampScrollToMaxScrollOffset(); 373 void SetScrollDelta(const gfx::Vector2dF& scroll_delta); [all …]
|
/external/chromium_org/android_webview/browser/ |
D | browser_view_renderer.h | 126 virtual gfx::Vector2dF GetTotalRootLayerScrollOffset() OVERRIDE; 128 const gfx::Vector2dF& total_scroll_offset_dip, 129 const gfx::Vector2dF& max_scroll_offset_dip, 135 virtual void DidOverscroll(gfx::Vector2dF accumulated_overscroll, 136 gfx::Vector2dF latest_overscroll_delta, 137 gfx::Vector2dF current_fling_velocity) OVERRIDE; 147 void SetTotalRootLayerScrollOffset(gfx::Vector2dF new_value_dip); 156 const gfx::Vector2dF& total_scroll_offset_dip, 225 gfx::Vector2dF scroll_offset_dip_; 228 gfx::Vector2dF max_scroll_offset_dip_; [all …]
|
/external/chromium_org/content/public/browser/android/ |
D | synchronous_compositor_client.h | 29 virtual gfx::Vector2dF GetTotalRootLayerScrollOffset() = 0; 30 virtual void UpdateRootLayerState(const gfx::Vector2dF& total_scroll_offset, 31 const gfx::Vector2dF& max_scroll_offset, 38 virtual void DidOverscroll(gfx::Vector2dF accumulated_overscroll, 39 gfx::Vector2dF latest_overscroll_delta, 40 gfx::Vector2dF current_fling_velocity) = 0;
|
/external/chromium_org/content/browser/android/ |
D | overscroll_glow.h | 51 gfx::Vector2dF accumulated_overscroll, 52 gfx::Vector2dF overscroll_delta, 53 gfx::Vector2dF velocity); 80 void Pull(base::TimeTicks current_time, gfx::Vector2dF overscroll_delta); 82 gfx::Vector2dF velocity,
|
D | overscroll_glow.cc | 78 gfx::Vector2dF ZeroSmallComponents(gfx::Vector2dF vector) { in ZeroSmallComponents() 127 gfx::Vector2dF accumulated_overscroll, in OnOverscrolled() 128 gfx::Vector2dF overscroll_delta, in OnOverscrolled() 129 gfx::Vector2dF velocity) { in OnOverscrolled() 153 gfx::Vector2dF old_overscroll = accumulated_overscroll - overscroll_delta; in OnOverscrolled() 259 gfx::Vector2dF overscroll_delta) { in Pull() 265 gfx::Vector2dF overscroll_pull = in Pull() 286 gfx::Vector2dF velocity, in Absorb()
|
/external/chromium_org/content/common/input/ |
D | did_overscroll_params.h | 13 gfx::Vector2dF accumulated_overscroll; 14 gfx::Vector2dF latest_overscroll_delta; 15 gfx::Vector2dF current_fling_velocity;
|
/external/chromium_org/cc/test/ |
D | animation_test_common.h | 82 const gfx::Vector2dF& scroll_offset) OVERRIDE; 89 gfx::Vector2dF scroll_offset() { return scroll_offset_; } in scroll_offset() 99 gfx::Vector2dF scroll_offset_; 111 virtual gfx::Vector2dF ScrollOffsetForAnimation() const OVERRIDE; 113 void set_scroll_offset(const gfx::Vector2dF& scroll_offset) { in set_scroll_offset() 118 gfx::Vector2dF scroll_offset_;
|
/external/chromium_org/cc/output/ |
D | compositor_frame_metadata.h | 27 gfx::Vector2dF root_scroll_offset; 39 gfx::Vector2dF location_bar_offset; 40 gfx::Vector2dF location_bar_content_translation;
|
/external/chromium_org/content/browser/renderer_host/input/ |
D | input_router_impl_perftest.cc | 111 gfx::Vector2dF origin, in BuildScrollSequence() 112 gfx::Vector2dF distance) { in BuildScrollSequence() 114 const gfx::Vector2dF delta = ScaleVector2d(distance, 1.f / steps); in BuildScrollSequence() 138 gfx::Vector2dF origin, in BuildTouchSequence() 139 gfx::Vector2dF distance) { in BuildTouchSequence() 141 const gfx::Vector2dF delta = ScaleVector2d(distance, 1.f / steps); in BuildTouchSequence() 303 gfx::Vector2dF origin, in SimulateTouchAndScrollEventSequence() 304 gfx::Vector2dF distance, in SimulateTouchAndScrollEventSequence() 344 const gfx::Vector2dF kDefaultOrigin(100, 100); 345 const gfx::Vector2dF kDefaultDistance(500, 500);
|