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

Unified Diff: views/touchui/touch_selection_controller_impl.cc

Issue 7491090: Tests for TouchSelectoinControllerImpl. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 4 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
Index: views/touchui/touch_selection_controller_impl.cc
diff --git a/views/touchui/touch_selection_controller_impl.cc b/views/touchui/touch_selection_controller_impl.cc
index 2a2801417f953c4c34877015d2c65ee21a6fb3b3..273f30bd96ac0dd2820734fadfc0b647076ed76b 100644
--- a/views/touchui/touch_selection_controller_impl.cc
+++ b/views/touchui/touch_selection_controller_impl.cc
@@ -233,6 +233,22 @@ void TouchSelectionControllerImpl::ConvertPointToClientView(
View::ConvertPointFromWidget(client_view_, point);
}
+gfx::Point TouchSelectionControllerImpl::GetSelectionHandle1Position() {
+ return selection_handle_1_->GetScreenPosition();
+}
+
+gfx::Point TouchSelectionControllerImpl::GetSelectionHandle2Position() {
+ return selection_handle_2_->GetScreenPosition();
+}
+
+bool TouchSelectionControllerImpl::IsSelectionHandle1Visible() {
+ return selection_handle_1_->IsVisible();
+}
+
+bool TouchSelectionControllerImpl::IsSelectionHandle2Visible() {
+ return selection_handle_2_->IsVisible();
+}
+
TouchSelectionController* TouchSelectionController::create(
TouchSelectionClientView* client_view) {
return new TouchSelectionControllerImpl(client_view);
« no previous file with comments | « views/touchui/touch_selection_controller_impl.h ('k') | views/touchui/touch_selection_controller_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698