Home
last modified time | relevance | path

Searched refs:ScrollOffset (Results 1 – 5 of 5) sorted by relevance

/external/libchrome/ui/gfx/geometry/
Dscroll_offset.h21 class GFX_EXPORT ScrollOffset {
23 ScrollOffset() : x_(0), y_(0) {} in ScrollOffset() function
24 ScrollOffset(float x, float y) : x_(x), y_(y) {} in ScrollOffset() function
25 explicit ScrollOffset(const Vector2dF& v) : x_(v.x()), y_(v.y()) {} in ScrollOffset() function
26 explicit ScrollOffset(const Vector2d& v) : x_(v.x()), y_(v.y()) {} in ScrollOffset() function
40 void Add(const ScrollOffset& other) { in Add()
47 void Subtract(const ScrollOffset& other) { in Subtract()
52 Vector2dF DeltaFrom(const ScrollOffset& v) const { in DeltaFrom()
56 void operator+=(const ScrollOffset& other) { Add(other); }
57 void operator-=(const ScrollOffset& other) { Subtract(other); }
[all …]
Dscroll_offset.cc11 std::string ScrollOffset::ToString() const { in ToString()
/external/libchrome/ui/gfx/geometry/mojo/
Dgeometry_struct_traits.h146 struct StructTraits<gfx::mojom::ScrollOffsetDataView, gfx::ScrollOffset> {
147 static float x(const gfx::ScrollOffset& v) { return v.x(); }
148 static float y(const gfx::ScrollOffset& v) { return v.y(); }
150 gfx::ScrollOffset* out) {
Dgeometry.typemap33 "gfx.mojom.ScrollOffset=gfx::ScrollOffset",
Dgeometry.mojom72 struct ScrollOffset {