Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Unified Diff: ui/touch_selection/touch_selection_controller_unittest.cc

Issue 2034863002: Move SelectionBound from ui/base/touch to ui/gfx to be used by cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated views_unittests Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/touch_selection/touch_selection_controller.cc ('k') | ui/touch_selection/ui_touch_selection.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/touch_selection/touch_selection_controller_unittest.cc
diff --git a/ui/touch_selection/touch_selection_controller_unittest.cc b/ui/touch_selection/touch_selection_controller_unittest.cc
index a5fe6ad50a31062502d300dda3480d203cf4d476..15bde06f9b9996e725c4b4d9a6c9a519835c493e 100644
--- a/ui/touch_selection/touch_selection_controller_unittest.cc
+++ b/ui/touch_selection/touch_selection_controller_unittest.cc
@@ -122,15 +122,15 @@ class TouchSelectionControllerTest : public testing::Test,
void SetDraggingEnabled(bool enabled) { dragging_enabled_ = enabled; }
void ClearSelection() {
- controller_->OnSelectionBoundsChanged(SelectionBound(),
- SelectionBound());
+ controller_->OnSelectionBoundsChanged(gfx::SelectionBound(),
+ gfx::SelectionBound());
}
void ClearInsertion() { ClearSelection(); }
void ChangeInsertion(const gfx::RectF& rect, bool visible) {
- SelectionBound bound;
- bound.set_type(SelectionBound::CENTER);
+ gfx::SelectionBound bound;
+ bound.set_type(gfx::SelectionBound::CENTER);
bound.SetEdge(rect.origin(), rect.bottom_left());
bound.set_visible(visible);
controller_->OnSelectionBoundsChanged(bound, bound);
@@ -140,9 +140,9 @@ class TouchSelectionControllerTest : public testing::Test,
bool start_visible,
const gfx::RectF& end_rect,
bool end_visible) {
- SelectionBound start_bound, end_bound;
- start_bound.set_type(SelectionBound::LEFT);
- end_bound.set_type(SelectionBound::RIGHT);
+ gfx::SelectionBound start_bound, end_bound;
+ start_bound.set_type(gfx::SelectionBound::LEFT);
+ end_bound.set_type(gfx::SelectionBound::RIGHT);
start_bound.SetEdge(start_rect.origin(), start_rect.bottom_left());
end_bound.SetEdge(end_rect.origin(), end_rect.bottom_left());
start_bound.set_visible(start_visible);
« no previous file with comments | « ui/touch_selection/touch_selection_controller.cc ('k') | ui/touch_selection/ui_touch_selection.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698