Lines Matching refs:bounds
37 MagnetismEdgeMatcher(const gfx::Rect& bounds, MagnetismEdge edge);
41 const gfx::Rect& bounds() const { return bounds_; }
47 // Returns true if should attach to the specified bounds.
48 bool ShouldAttach(const gfx::Rect& bounds);
57 static int GetPrimaryCoordinate(const gfx::Rect& bounds, MagnetismEdge edge) {
60 return bounds.y();
62 return bounds.x();
64 return bounds.bottom();
66 return bounds.right();
87 Range GetPrimaryRange(const gfx::Rect& bounds) const {
91 return Range(bounds.y(), bounds.bottom());
94 return Range(bounds.x(), bounds.right());
100 Range GetSecondaryRange(const gfx::Rect& bounds) const {
104 return Range(bounds.x(), bounds.right());
107 return Range(bounds.y(), bounds.bottom());
117 // The bounds of window.
125 // obscured by other bounds.
152 // . Create it with the bounds of the window being dragged.
162 MagnetismMatcher(const gfx::Rect& bounds, uint32 edges);
165 // Returns true if |bounds| is close enough to the initial bounds that the two
168 bool ShouldAttach(const gfx::Rect& bounds, MatchedEdge* edge);
175 void AttachToSecondaryEdge(const gfx::Rect& bounds,