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

Unified Diff: views/touchui/touch_selection_controller_impl.h

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
« no previous file with comments | « views/controls/textfield/native_textfield_views.h ('k') | views/touchui/touch_selection_controller_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « views/controls/textfield/native_textfield_views.h ('k') | views/touchui/touch_selection_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698