Index: views/touchui/touch_selection_controller_impl.h |
diff --git a/views/touchui/touch_selection_controller_impl.h b/views/touchui/touch_selection_controller_impl.h |
index 6ae33e3eb451574a968a387b3eb507558089d154..00ade4103c9f8dc752cbdc9001e3795a1f8b8473 100644 |
--- a/views/touchui/touch_selection_controller_impl.h |
+++ b/views/touchui/touch_selection_controller_impl.h |
@@ -28,6 +28,7 @@ class TouchSelectionControllerImpl : public TouchSelectionController { |
virtual void ClientViewLostFocus() OVERRIDE; |
private: |
+ friend class TouchSelectionControllerImplTest; |
class SelectionHandleView; |
// Callback to inform the client view that the selection handle has been |
@@ -38,6 +39,12 @@ class TouchSelectionControllerImpl : public TouchSelectionController { |
// system to that of the client view. |
void ConvertPointToClientView(SelectionHandleView* source, gfx::Point* point); |
+ // Convenience methods for testing. |
+ gfx::Point GetSelectionHandle1Position(); |
+ gfx::Point GetSelectionHandle2Position(); |
+ bool IsSelectionHandle1Visible(); |
+ bool IsSelectionHandle2Visible(); |
+ |
TouchSelectionClientView* client_view_; |
scoped_ptr<SelectionHandleView> selection_handle_1_; |
scoped_ptr<SelectionHandleView> selection_handle_2_; |