| OLD | NEW |
| 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 "ui/gfx/range/range_f.h" | 5 #include "ui/gfx/range/range_f.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <algorithm> | 9 #include <algorithm> |
| 8 #include <cmath> | 10 #include <cmath> |
| 9 #include <limits> | 11 #include <limits> |
| 10 | 12 |
| 11 #include "base/format_macros.h" | 13 #include "base/format_macros.h" |
| 12 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
| 13 | 15 |
| 14 namespace gfx { | 16 namespace gfx { |
| 15 | 17 |
| 16 RangeF::RangeF() | 18 RangeF::RangeF() |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 105 |
| 104 std::string RangeF::ToString() const { | 106 std::string RangeF::ToString() const { |
| 105 return base::StringPrintf("{%f,%f}", start(), end()); | 107 return base::StringPrintf("{%f,%f}", start(), end()); |
| 106 } | 108 } |
| 107 | 109 |
| 108 std::ostream& operator<<(std::ostream& os, const RangeF& range) { | 110 std::ostream& operator<<(std::ostream& os, const RangeF& range) { |
| 109 return os << range.ToString(); | 111 return os << range.ToString(); |
| 110 } | 112 } |
| 111 | 113 |
| 112 } // namespace gfx | 114 } // namespace gfx |
| OLD | NEW |