Lines Matching defs:new_pos
180 gfx::Rect new_pos = view_location;
186 avoid_overlapping_rect.Intersects(new_pos)) {
188 new_pos.set_x(avoid_overlapping_rect.x() +
193 if (new_pos.x() + new_pos.width() > dialog_bounds.width())
194 new_pos = view_location; // Reset.
196 new_pos.set_x(avoid_overlapping_rect.x() - new_pos.width() -
200 if (new_pos.x() < 0)
201 new_pos = view_location; // Reset.
205 return new_pos;