| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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.h" | 5 #include "ui/gfx/range/range.h" |
| 6 | 6 |
| 7 #include <algorithm> |
| 7 #include <limits> | 8 #include <limits> |
| 8 | 9 |
| 9 #include "base/format_macros.h" | 10 #include "base/format_macros.h" |
| 10 #include "base/logging.h" | 11 #include "base/logging.h" |
| 11 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
| 12 | 13 |
| 13 namespace gfx { | 14 namespace gfx { |
| 14 | 15 |
| 15 Range::Range() | 16 Range::Range() |
| 16 : start_(0), | 17 : start_(0), |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 | 79 |
| 79 std::string Range::ToString() const { | 80 std::string Range::ToString() const { |
| 80 return base::StringPrintf("{%" PRIuS ",%" PRIuS "}", start(), end()); | 81 return base::StringPrintf("{%" PRIuS ",%" PRIuS "}", start(), end()); |
| 81 } | 82 } |
| 82 | 83 |
| 83 std::ostream& operator<<(std::ostream& os, const Range& range) { | 84 std::ostream& operator<<(std::ostream& os, const Range& range) { |
| 84 return os << range.ToString(); | 85 return os << range.ToString(); |
| 85 } | 86 } |
| 86 | 87 |
| 87 } // namespace gfx | 88 } // namespace gfx |
| OLD | NEW |