Searched refs:RangeF (Results 1 – 8 of 8) sorted by relevance
/external/libchrome/ui/gfx/range/ |
D | range_f.h | 20 class GFX_RANGE_EXPORT RangeF { 23 constexpr RangeF() : RangeF(0.f) {} in RangeF() function 26 constexpr RangeF(float start, float end) : start_(start), end_(end) {} in RangeF() function 29 constexpr explicit RangeF(float position) : RangeF(position, position) {} in RangeF() function 32 static constexpr RangeF InvalidRange() { in InvalidRange() 33 return RangeF(std::numeric_limits<float>::max()); in InvalidRange() 56 constexpr bool operator==(const RangeF& other) const { 59 constexpr bool operator!=(const RangeF& other) const { 62 constexpr bool EqualsIgnoringDirection(const RangeF& other) const { in EqualsIgnoringDirection() 67 constexpr bool Intersects(const RangeF& range) const { in Intersects() [all …]
|
D | range_f.cc | 17 RangeF RangeF::Intersect(const RangeF& range) const { in Intersect() 24 return RangeF(min, max); in Intersect() 27 RangeF RangeF::Intersect(const Range& range) const { in Intersect() 28 RangeF range_f(range.start(), range.end()); in Intersect() 32 Range RangeF::Floor() const { in Floor() 38 Range RangeF::Ceil() const { in Ceil() 44 Range RangeF::Round() const { in Round() 50 std::string RangeF::ToString() const { in ToString() 54 std::ostream& operator<<(std::ostream& os, const RangeF& range) { in operator <<()
|
D | range_unittest.cc | 17 typedef testing::Types<gfx::Range, gfx::RangeF> RangeTypes; 229 gfx::RangeF range_f(1.2f, 3.9f); in TEST()
|
/external/libchrome/ui/gfx/range/mojo/ |
D | range_struct_traits.h | 26 struct StructTraits<gfx::mojom::RangeFDataView, gfx::RangeF> { 27 static float start(const gfx::RangeF& r) { return r.start(); } 28 static float end(const gfx::RangeF& r) { return r.end(); } 29 static bool Read(gfx::mojom::RangeFDataView data, gfx::RangeF* out) {
|
D | range_struct_traits_unittest.cc | 34 void EchoRangeF(const RangeF& p, EchoRangeFCallback callback) override { in EchoRangeF() 57 TEST_F(RangeStructTraitsTest, RangeF) { in TEST_F() argument 60 gfx::RangeF input(start, end); in TEST_F() 62 gfx::RangeF output; in TEST_F()
|
D | range_traits_test_service.mojom | 16 EchoRangeF(RangeF p) => (RangeF pass);
|
D | range.typemap | 16 "gfx.mojom.RangeF=gfx::RangeF",
|
D | range.mojom | 12 struct RangeF {
|