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

Unified Diff: ui/touch_selection/touch_handle.h

Issue 481683003: Support for Adaptive Handle Orientation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Initial patchset Created 5 years, 9 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: ui/touch_selection/touch_handle.h
diff --git a/ui/touch_selection/touch_handle.h b/ui/touch_selection/touch_handle.h
index 12c66d09983626db3c3f9b4a356aa80a2a9d9178..d6c5cb1a9398e88065b6f1b17d4994c51c562f5c 100644
--- a/ui/touch_selection/touch_handle.h
+++ b/ui/touch_selection/touch_handle.h
@@ -84,6 +84,9 @@ class UI_TOUCH_SELECTION_EXPORT TouchHandle {
// Returns true if an animation is active and requires further ticking.
bool Animate(base::TimeTicks frame_time);
+ // Returns the visible bounds of the handle
+ gfx::RectF GetHandleBounds();
+
bool is_dragging() const { return is_dragging_; }
const gfx::PointF& position() const { return position_; }
TouchHandleOrientation orientation() const { return orientation_; }

Powered by Google App Engine
This is Rietveld 408576698