Home | History | Annotate | Download | only in wm

Lines Matching defs:delta_x

126   int delta_x = location.x() - details().initial_location_in_parent.x();
129 AdjustDeltaForTouchResize(&delta_x, &delta_y);
134 gfx::Size size = GetSizeForDrag(&delta_x, &delta_y);
135 gfx::Point origin = GetOriginForDrag(delta_x, delta_y);
247 void WindowResizer::AdjustDeltaForTouchResize(int* delta_x, int* delta_y) {
254 *delta_x += details().initial_location_in_parent.x() -
257 *delta_x += details().initial_location_in_parent.x() -
272 gfx::Point WindowResizer::GetOriginForDrag(int delta_x, int delta_y) {
278 origin.Offset(delta_x, 0);
285 gfx::Size WindowResizer::GetSizeForDrag(int* delta_x, int* delta_y) {
289 size.SetSize(GetWidthForDrag(min_size.width(), delta_x),
297 int WindowResizer::GetWidthForDrag(int min_width, int* delta_x) {
300 // Along the right edge, positive delta_x increases the window size.
302 width += x_multiplier * (*delta_x);
304 // Ensure we don't shrink past the minimum width and clamp delta_x
308 *delta_x = -x_multiplier * (details().initial_bounds_in_parent.width() -
320 *delta_x = -x_multiplier * (details().initial_bounds_in_parent.width() -