Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(275)

Issue 761673008: Add a per-host desktopScale option, available via the JS console. (Closed)

Created:
6 years ago by Wez
Modified:
6 years ago
Reviewers:
Jamie
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -16 lines) Patch
M remoting/webapp/crd/js/client_session.js View 1 2 3 10 chunks +49 lines, -16 lines 0 comments Download

Messages

Total messages: 14 (2 generated)
Wez
PTAL
6 years ago (2014-12-14 06:51:40 UTC) #2
Jamie
Please also add bug 406100, since I think this is implementing what's described there. https://codereview.chromium.org/761673008/diff/20001/remoting/webapp/crd/js/client_session.js ...
6 years ago (2014-12-15 18:39:06 UTC) #3
Wez
https://codereview.chromium.org/761673008/diff/20001/remoting/webapp/crd/js/client_session.js File remoting/webapp/crd/js/client_session.js (right): https://codereview.chromium.org/761673008/diff/20001/remoting/webapp/crd/js/client_session.js#newcode790 remoting/webapp/crd/js/client_session.js:790: // Apply the new desktop zoom, if resize to ...
6 years ago (2014-12-15 21:49:42 UTC) #4
Jamie
LGTM. If this CL fixes bug 406100, could you assign it to yourself and close ...
6 years ago (2014-12-15 23:18:55 UTC) #5
Wez
On 2014/12/15 23:18:55, Jamie wrote: > LGTM. If this CL fixes bug 406100, could you ...
6 years ago (2014-12-15 23:57:43 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/761673008/60001
6 years ago (2014-12-15 23:59:01 UTC) #8
Jamie
On 2014/12/15 23:57:43, Wez wrote: > On 2014/12/15 23:18:55, Jamie wrote: > > LGTM. If ...
6 years ago (2014-12-15 23:59:33 UTC) #9
Wez
On 2014/12/15 23:59:33, Jamie wrote: > On 2014/12/15 23:57:43, Wez wrote: > > On 2014/12/15 ...
6 years ago (2014-12-16 00:07:04 UTC) #10
Jamie
On 2014/12/16 00:07:04, Wez wrote: > On 2014/12/15 23:59:33, Jamie wrote: > > On 2014/12/15 ...
6 years ago (2014-12-16 00:14:37 UTC) #11
Wez
You're right - we actually want to test both the size of the plugin *and* ...
6 years ago (2014-12-16 00:40:05 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
6 years ago (2014-12-16 01:18:36 UTC) #13
commit-bot: I haz the power
6 years ago (2014-12-16 01:19:17 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/2553f80061f805ea47ac23b6978af7bcadee3265
Cr-Commit-Position: refs/heads/master@{#308490}

Powered by Google App Engine
This is Rietveld 408576698