| 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 #ifndef UI_GFX_RANGE_RANGE_F_H_ | 5 #ifndef UI_GFX_RANGE_RANGE_F_H_ |
| 6 #define UI_GFX_RANGE_RANGE_F_H_ | 6 #define UI_GFX_RANGE_RANGE_F_H_ |
| 7 | 7 |
| 8 #include <ostream> | 8 #include <ostream> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | |
| 12 #include "ui/gfx/gfx_export.h" | 11 #include "ui/gfx/gfx_export.h" |
| 13 #include "ui/gfx/range/range.h" | 12 #include "ui/gfx/range/range.h" |
| 14 | 13 |
| 15 namespace gfx { | 14 namespace gfx { |
| 16 | 15 |
| 17 // A float version of Range. RangeF is made of a start and end position; when | 16 // A float version of Range. RangeF is made of a start and end position; when |
| 18 // they are the same, the range is empty. Note that |start_| can be greater | 17 // they are the same, the range is empty. Note that |start_| can be greater |
| 19 // than |end_| to respect the directionality of the range. | 18 // than |end_| to respect the directionality of the range. |
| 20 class GFX_EXPORT RangeF { | 19 class GFX_EXPORT RangeF { |
| 21 public: | 20 public: |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 private: | 79 private: |
| 81 float start_; | 80 float start_; |
| 82 float end_; | 81 float end_; |
| 83 }; | 82 }; |
| 84 | 83 |
| 85 GFX_EXPORT std::ostream& operator<<(std::ostream& os, const RangeF& range); | 84 GFX_EXPORT std::ostream& operator<<(std::ostream& os, const RangeF& range); |
| 86 | 85 |
| 87 } // namespace gfx | 86 } // namespace gfx |
| 88 | 87 |
| 89 #endif // UI_GFX_RANGE_RANGE_F_H_ | 88 #endif // UI_GFX_RANGE_RANGE_F_H_ |
| OLD | NEW |