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

Unified Diff: ui/touch_selection/touch_selection_controller_test_api.cc

Issue 1404163004: Swap touch selection handles when they are interchanged (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: linux build error Created 5 years 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
Index: ui/touch_selection/touch_selection_controller_test_api.cc
diff --git a/ui/touch_selection/touch_selection_controller_test_api.cc b/ui/touch_selection/touch_selection_controller_test_api.cc
index abe89de528791d52ddc76e340fb6b62cf2f66111..17bdfa6691c0669076da0fd26879f88abbc17dda 100644
--- a/ui/touch_selection/touch_selection_controller_test_api.cc
+++ b/ui/touch_selection/touch_selection_controller_test_api.cc
@@ -20,4 +20,18 @@ bool TouchSelectionControllerTestApi::GetEndVisible() const {
return controller_->GetEndVisible();
}
+TouchHandleOrientation
+TouchSelectionControllerTestApi::GetStartHandleOrientation() const {
+ if (controller_->active_status_ != TouchSelectionController::SELECTION_ACTIVE)
+ return TouchHandleOrientation::UNDEFINED;
+ return controller_->start_selection_handle_->orientation();
+}
+
+TouchHandleOrientation
+TouchSelectionControllerTestApi::GetEndHandleOrientation() const {
+ if (controller_->active_status_ != TouchSelectionController::SELECTION_ACTIVE)
+ return TouchHandleOrientation::UNDEFINED;
+ return controller_->end_selection_handle_->orientation();
+}
+
} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698