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

Unified Diff: views/touchui/touch_selection_controller_impl.h

Issue 7696013: Minor fix to touch selection logic. (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.h
diff --git a/views/touchui/touch_selection_controller_impl.h b/views/touchui/touch_selection_controller_impl.h
index 00ade4103c9f8dc752cbdc9001e3795a1f8b8473..bd2816456ce6b834148d9c29160d0b174cf6e162 100644
--- a/views/touchui/touch_selection_controller_impl.h
+++ b/views/touchui/touch_selection_controller_impl.h
@@ -39,6 +39,10 @@ class TouchSelectionControllerImpl : public TouchSelectionController {
// system to that of the client view.
void ConvertPointToClientView(SelectionHandleView* source, gfx::Point* point);
+ // Convenience method to check if a point lies inside or on the boundary of
+ // client_view_.
+ bool isPointInClientView(const gfx::Point& p);
+
// Convenience methods for testing.
gfx::Point GetSelectionHandle1Position();
gfx::Point GetSelectionHandle2Position();
« no previous file with comments | « no previous file | views/touchui/touch_selection_controller_impl.cc » ('j') | views/touchui/touch_selection_controller_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698