DescriptionAdd a per-host desktopScale option, available via the JS console.
This CL adds a setDesktopScale() method to ClientSession, allowing the JS console to be used to easily apply a new desktop scale factor, to be applied to the current session and all subsequent sessions to the current host from this client. If the connected host supports dynamic resize then desktopZoom changes will take effect immediately.
For example, a user with a Chromebook Pixel can set desktopScale to 2.0 to have a low-DPI host set to match the Pixel's physical resolution 1:1, rather than being set to match the logical resolution and up-scaled.
BUG=135089, 406100
TEST=Connect to Linux host w/ resize-to-client on & scale-to-fit *off*. Open Dev Console for app's main.html and run e.g. remoting.clientSession.setDesktopScale(scale) for different values of |scale|, and verify that: (1) |scale==0.5| gives a low-res desktop that is up-scaled to fill the client area. (2) on low-DPI devices, |scale==2.0| gives a normal-res desktop that is bigger than the client area. (3) on Pixel |scale==2.0| gives a desktop sized 1:1 to the device's native display resolution. (4) on Pixel |scale==3.0| gives a desktop scaled 1:1 to the device's native display resolution, and sized to be larger than the client area.
Committed: https://crrev.com/2553f80061f805ea47ac23b6978af7bcadee3265
Cr-Commit-Position: refs/heads/master@{#308490}
Patch Set 1 #Patch Set 2 : Add setDesktopZoom helper #
Total comments: 4
Patch Set 3 : Fix typo #
Total comments: 1
Patch Set 4 : Un-wrap line #Messages
Total messages: 14 (2 generated)
|