Chromium Code Reviews| 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 <algorithm> | 7 #include <algorithm> |
| 8 #include <cmath> | |
|
Mark Mentovai
2015/04/09 15:42:16
This file doesn’t use this either.
| |
| 8 #include <limits> | 9 #include <limits> |
| 9 | 10 |
| 10 #include "base/float_util.h" | |
| 11 #include "base/format_macros.h" | 11 #include "base/format_macros.h" |
| 12 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
| 13 | 13 |
| 14 namespace gfx { | 14 namespace gfx { |
| 15 | 15 |
| 16 RangeF::RangeF() | 16 RangeF::RangeF() |
| 17 : start_(0.0f), | 17 : start_(0.0f), |
| 18 end_(0.0f) { | 18 end_(0.0f) { |
| 19 } | 19 } |
| 20 | 20 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 79 | 79 |
| 80 std::string RangeF::ToString() const { | 80 std::string RangeF::ToString() const { |
| 81 return base::StringPrintf("{%f,%f}", start(), end()); | 81 return base::StringPrintf("{%f,%f}", start(), end()); |
| 82 } | 82 } |
| 83 | 83 |
| 84 std::ostream& operator<<(std::ostream& os, const RangeF& range) { | 84 std::ostream& operator<<(std::ostream& os, const RangeF& range) { |
| 85 return os << range.ToString(); | 85 return os << range.ToString(); |
| 86 } | 86 } |
| 87 | 87 |
| 88 } // namespace gfx | 88 } // namespace gfx |
| OLD | NEW |