exo: Consider default scale cancellation in all bounds-related methods
This CL fixes SetBoundsSize and SetBoundsOrigin methods to take “default scale cancellation” into account. If “default scale cancellation” is disabled, we expect a client to send bounds in pixels instead of dp, so these SetBounds* method should be sensitive to the flag. Also, this CL adds an unittest for SetBounds methods in the case of default scale cancellation-enabled and -disabled. BUG=b:167997508 TEST=SetBoundsWithAndWithoutDefaultScaleCancellation Change-Id: Icfcaf445372c5eae0425226f802b27e7d7372bf4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2398055 Commit-Queue: Toshiki Kikuchi <toshikikikuchi@chromium.org> Reviewed-by:Mitsuru Oshima (Slow: gardener) <oshima@chromium.org> Cr-Commit-Position: refs/heads/master@{#806035}
Showing
Please register or sign in to comment