Home | History | Annotate | Download | only in workspace

Lines Matching refs:edge

30 // MagnetismEdgeMatcher is used for matching a particular edge of a window. You
34 // edge. As ShouldAttach() is invoked the visible range is updated.
37 MagnetismEdgeMatcher(const gfx::Rect& bounds, MagnetismEdge edge);
40 MagnetismEdge edge() const { return edge_; }
43 // Returns true if the edge is completely obscured. If true ShouldAttach()
57 static int GetPrimaryCoordinate(const gfx::Rect& bounds, MagnetismEdge edge) {
58 switch (edge) {
72 static MagnetismEdge FlipEdge(MagnetismEdge edge) {
73 switch (edge) {
120 // The edge this matcher checks.
123 // Visible ranges of the edge. Initialized with GetSecondaryRange() and
124 // updated as ShouldAttach() is invoked. When empty the edge is completely
137 // Used to identify a matched edge. |primary_edge| is relative to the source and
138 // indicates the edge the two are to share. For example, if |primary_edge| is
139 // MAGNETISM_EDGE_RIGHT then the right edge of the source should snap to to the
140 // left edge of the target. |secondary_edge| indicates one of the edges along
166 // should be attached. If true is returned |edge| is set to indicates how the
168 bool ShouldAttach(const gfx::Rect& bounds, MatchedEdge* edge);
176 MagnetismEdge edge,