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

Unified Diff: ui/gfx/geometry/rect.h

Issue 2042073002: Centered flood fill style ink drop ripples on mouse/touch points. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved InkDropHostView::AsLocatedEvent() to event_utils.(h|cc) as ToLocatedEventOrNull(). Created 4 years, 6 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/gfx/geometry/rect.h
diff --git a/ui/gfx/geometry/rect.h b/ui/gfx/geometry/rect.h
index beb6242318e3c33f4d973f4bfa36997130d9998f..fddf07df8f2807bc3b6105c1f509082731897f41 100644
--- a/ui/gfx/geometry/rect.h
+++ b/ui/gfx/geometry/rect.h
@@ -177,6 +177,9 @@ class GFX_EXPORT Rect {
// returns the smallest non-zero value appropriate for int.
int ManhattanInternalDistance(const Rect& rect) const;
+ // Returns the largest distance from |point| to the corners of |this|.
+ float MaxDistanceToCorners(const gfx::Point& point) const;
sky 2016/06/16 16:50:02 This is very specialized and AFAICT only needed in
bruthig 2016/06/16 19:50:02 Done.
+
std::string ToString() const;
bool ApproximatelyEqual(const Rect& rect, int tolerance) const;
« ui/events/event_utils.h ('K') | « ui/events/event_utils.cc ('k') | ui/gfx/geometry/rect.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698