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

Issue 2426103004: Specify a default display UI scale to reset the zoom to (Closed)

Created:
4 years, 2 months ago by afakhry
Modified:
4 years, 1 month ago
Reviewers:
oshima
CC:
chromium-reviews, dbeam+watch-options_chromium.org, extensions-reviews_chromium.org, michaelpg+watch-options_chromium.org, sadrul, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, kalyank
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Specify a default display UI scale to reset the zoom to For devices with 1.25 DSF, pressing Ctrl+Shift+0 used to reset zoom to a full HD scale (1.0 = 1920x1080), which is not the default scale we decided for these devices (0.8 = 1536x864). This CL marks one of the modes as the default one, and use that default mode to reset the scale to. BUG=chrome-os-partner:58181 TEST=on an elm device, pressing Ctrl+Shift+0, the scale should remain at 1536x864. TEST=ash_unittests --gtest_filter=DisplayManagerTest.ResetInternalDisplayZoomFor1_25x* Committed: https://crrev.com/8571a9c3216de20afa714851c2268edb52f43a8d Cr-Commit-Position: refs/heads/master@{#427837}

Patch Set 1 #

Patch Set 2 : Clean up, simplify #

Total comments: 6

Patch Set 3 : Oshima's comments (no new test yet) #

Patch Set 4 : Fix compile error #

Patch Set 5 : Initial test [still failing] #

Total comments: 2

Patch Set 6 : Working test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+251 lines, -95 lines) Patch
M ash/display/cursor_window_controller_unittest.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M ash/display/display_manager.h View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M ash/display/display_manager.cc View 1 2 3 chunks +15 lines, -19 lines 0 comments Download
M ash/display/display_manager_unittest.cc View 1 2 3 4 5 11 chunks +136 lines, -47 lines 0 comments Download
M ash/display/root_window_transformers_unittest.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M ash/display/window_tree_host_manager_unittest.cc View 1 2 2 chunks +10 lines, -5 lines 0 comments Download
M ash/test/display_manager_test_api.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M ash/test/display_manager_test_api.cc View 1 2 2 chunks +30 lines, -0 lines 0 comments Download
M ash/wm/ash_native_cursor_manager_unittest.cc View 1 2 3 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/display/display_preferences_unittest.cc View 1 2 3 2 chunks +6 lines, -3 lines 0 comments Download
M ui/display/manager/display_manager_utilities.cc View 1 2 2 chunks +32 lines, -13 lines 0 comments Download
M ui/display/manager/managed_display_info.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (20 generated)
afakhry
Oshima, please take a look. Thank you!
4 years, 2 months ago (2016-10-19 19:42:02 UTC) #5
oshima
can you add a unit test? (DisplayManagerTest has several that tests ui scale) https://codereview.chromium.org/2426103004/diff/20001/ash/display/display_manager.cc File ...
4 years, 2 months ago (2016-10-19 21:04:06 UTC) #8
afakhry
Working test. PTAL. https://codereview.chromium.org/2426103004/diff/20001/ash/display/display_manager.cc File ash/display/display_manager.cc (right): https://codereview.chromium.org/2426103004/diff/20001/ash/display/display_manager.cc#newcode1114 ash/display/display_manager.cc:1114: bool DisplayManager::SetDisplayUIScale(int64_t id, float ui_scale) { ...
4 years, 1 month ago (2016-10-24 20:21:46 UTC) #18
afakhry
Oshima, friendly ping.
4 years, 1 month ago (2016-10-25 20:20:11 UTC) #21
oshima
lgtm with nit. https://codereview.chromium.org/2426103004/diff/80001/ash/display/display_manager_unittest.cc File ash/display/display_manager_unittest.cc (right): https://codereview.chromium.org/2426103004/diff/80001/ash/display/display_manager_unittest.cc#newcode1352 ash/display/display_manager_unittest.cc:1352: new display::ManagedDisplayMode(gfx::Size(2400, 1350), 60.0f, you can ...
4 years, 1 month ago (2016-10-25 21:13:48 UTC) #22
afakhry
https://codereview.chromium.org/2426103004/diff/80001/ash/display/display_manager_unittest.cc File ash/display/display_manager_unittest.cc (right): https://codereview.chromium.org/2426103004/diff/80001/ash/display/display_manager_unittest.cc#newcode1352 ash/display/display_manager_unittest.cc:1352: new display::ManagedDisplayMode(gfx::Size(2400, 1350), 60.0f, On 2016/10/25 21:13:48, oshima wrote: ...
4 years, 1 month ago (2016-10-25 23:46:55 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2426103004/100001
4 years, 1 month ago (2016-10-26 21:04:22 UTC) #25
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 1 month ago (2016-10-26 22:04:04 UTC) #27
commit-bot: I haz the power
4 years, 1 month ago (2016-10-26 22:06:09 UTC) #29
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/8571a9c3216de20afa714851c2268edb52f43a8d
Cr-Commit-Position: refs/heads/master@{#427837}

Powered by Google App Engine
This is Rietveld 408576698