Home | History | Annotate | Download | only in workspace

Lines Matching refs:Edge

101 // Distance in pixels that the cursor must move past an edge for a window
102 // to move or resize beyond that edge.
109 // Returns true if the window should stick to the edge.
123 int CoordinateAlongSecondaryAxis(SecondaryMagnetismEdge edge,
127 switch (edge) {
143 const MatchedEdge& edge) {
145 switch (edge.primary_edge) {
159 switch (edge.primary_edge) {
163 edge.secondary_edge, attach_to.x(), attach_to.right() - src.width(),
169 edge.secondary_edge, attach_to.y(), attach_to.bottom() - src.height(),
178 // and |edge| identifies the edge to attach to.
181 const MatchedEdge& edge) {
186 gfx::Point attach_origin(OriginForMagneticAttach(src, attach_to, edge));
187 switch (edge.primary_edge) {
203 switch (edge.primary_edge) {
206 if (edge.secondary_edge == SECONDARY_MAGNETISM_EDGE_LEADING) {
209 } else if (edge.secondary_edge == SECONDARY_MAGNETISM_EDGE_TRAILING) {
215 if (edge.secondary_edge == SECONDARY_MAGNETISM_EDGE_LEADING) {
218 } else if (edge.secondary_edge == SECONDARY_MAGNETISM_EDGE_TRAILING) {
226 // Converts a window component edge to the magnetic edge to snap to.
486 // TODO: figure out how to deal with window going off the edge.
867 SnapSizer::Edge edge = (snap_type_ == SNAP_LEFT_EDGE) ?
871 edge,