Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_BASE_TOUCH_SELECTION_BOUND_H_ | 5 #ifndef UI_BASE_TOUCH_SELECTION_BOUND_H_ |
| 6 #define UI_BASE_TOUCH_SELECTION_BOUND_H_ | 6 #define UI_BASE_TOUCH_SELECTION_BOUND_H_ |
| 7 | 7 |
| 8 #include "ui/base/ui_base_export.h" | 8 #include "ui/base/ui_base_export.h" |
| 9 #include "ui/gfx/geometry/point.h" | 9 #include "ui/gfx/geometry/point.h" |
| 10 #include "ui/gfx/geometry/point_f.h" | 10 #include "ui/gfx/geometry/point_f.h" |
| 11 | 11 |
| 12 namespace gfx { | 12 namespace gfx { |
| 13 class Rect; | 13 class Rect; |
| 14 class RectF; | |
| 14 } | 15 } |
| 15 | 16 |
| 16 namespace ui { | 17 namespace ui { |
| 17 | 18 |
| 18 // Bound of a selection end-point. | 19 // Bound of a selection end-point. |
| 19 class UI_BASE_EXPORT SelectionBound { | 20 class UI_BASE_EXPORT SelectionBound { |
| 20 public: | 21 public: |
| 21 enum Type { | 22 enum Type { |
| 22 LEFT, | 23 LEFT, |
| 23 RIGHT, | 24 RIGHT, |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 59 }; | 60 }; |
| 60 | 61 |
| 61 UI_BASE_EXPORT bool operator==(const SelectionBound& lhs, | 62 UI_BASE_EXPORT bool operator==(const SelectionBound& lhs, |
| 62 const SelectionBound& rhs); | 63 const SelectionBound& rhs); |
| 63 UI_BASE_EXPORT bool operator!=(const SelectionBound& lhs, | 64 UI_BASE_EXPORT bool operator!=(const SelectionBound& lhs, |
| 64 const SelectionBound& rhs); | 65 const SelectionBound& rhs); |
| 65 | 66 |
| 66 UI_BASE_EXPORT gfx::Rect RectBetweenSelectionBounds(const SelectionBound& b1, | 67 UI_BASE_EXPORT gfx::Rect RectBetweenSelectionBounds(const SelectionBound& b1, |
| 67 const SelectionBound& b2); | 68 const SelectionBound& b2); |
| 68 | 69 |
| 70 UI_BASE_EXPORT gfx::RectF RectFBetweenSelectionBounds(const SelectionBound& b1, | |
| 71 const SelectionBound& b2); | |
| 72 | |
|
sadrul
2015/04/14 19:38:43
mfomitchev@ Can you look into replacing the uses o
| |
| 69 } // namespace ui | 73 } // namespace ui |
| 70 | 74 |
| 71 #endif // UI_BASE_TOUCH_SELECTION_BOUND_H_ | 75 #endif // UI_BASE_TOUCH_SELECTION_BOUND_H_ |
| OLD | NEW |