Chromium Code Reviews
DescriptionUpdating initial zoom level for remote connections in Android Client.
This change updates the method used for sizing the remote desktop image
to the Android device's screen. The previous method was to scale down
the remote image so that the entire image would fit. This worked great
for similarly sized displays but not so great for high resolution or
multi-monitor displays.
The method I use now is to scale up the remote image (if needed) such
that there isn't any empty space on the screen. I do this by
calculating the width and height ratios and scaling the image by the
larger of the two. This ensures that the local screen is filled with
the image of the remote display and is similar to the behavior that
existed prior to my last change. The viewport is then translated to the
upper left of the screen for the default starting position.
Once the image is resized and positioned, I update starting coordinates
for the cursor so it is placed in the center of the viewport area.
BUG=618385
Committed: https://crrev.com/b144cbc55799ed4e4105ea21f030d51e9897a715
Cr-Commit-Position: refs/heads/master@{#399103}
Patch Set 1 #Patch Set 2 : Cleaning up some logic in the handler class. #
Total comments: 2
Patch Set 3 : Addressing CR Feedback #
Depends on Patchset: Messages
Total messages: 10 (4 generated)
|
||||||||||||||||||||||||||||