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

Issue 417113012: Introduce user customization of external HighDPI mode for 4K monitor. (Closed)

Created:
6 years, 5 months ago by Jun Mukai
Modified:
6 years, 4 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, sadrul, asvitkine+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, kalyank, stevenjb+watch_chromium.org, ben+ash_chromium.org
Project:
chromium
Visibility:
Public.

Description

Introduce user customization of external HighDPI mode for 4K monitor. This CL adds the options of customizing external display's device scale factor from the options page. There are two TODOs though: - the configured device scale factor should be stored - not possible to specify device scale factor and resolution at the same time; from 1600x900, it can't enter to 1920x1080(2x). Instead it enters to 3840x2160, then the user needs to select 2x again. Actually the former would solve the latter; this CL sets the new resolution and the DSF at the same time but resolution change is asynchronous, so changed DSF will be overwritten by the resolution change. I will address these issues in further CL(s). BUG=396704 R=oshima@chromium.org, stevenjb@chromium.org TBR=asvitkine@chromium.org TEST=manually Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287677

Patch Set 1 #

Total comments: 2

Patch Set 2 : refactoring #

Patch Set 3 : polish #

Total comments: 4

Patch Set 4 : quick fix #

Total comments: 13

Patch Set 5 : fix #

Patch Set 6 : fix #

Total comments: 2

Patch Set 7 : fix #

Total comments: 18

Patch Set 8 : fix #

Patch Set 9 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+612 lines, -207 lines) Patch
M ash/display/display_change_observer_chromeos.h View 1 2 3 4 5 6 7 2 chunks +7 lines, -1 line 0 comments Download
M ash/display/display_change_observer_chromeos.cc View 1 2 3 4 5 6 7 5 chunks +61 lines, -9 lines 0 comments Download
M ash/display/display_change_observer_chromeos_unittest.cc View 1 2 3 4 5 6 7 2 chunks +148 lines, -17 lines 0 comments Download
M ash/display/display_info.h View 1 2 3 4 5 6 7 1 chunk +8 lines, -0 lines 0 comments Download
M ash/display/display_info.cc View 1 2 3 4 5 6 7 2 chunks +22 lines, -2 lines 0 comments Download
M ash/display/display_manager.h View 1 2 3 4 2 chunks +13 lines, -1 line 0 comments Download
M ash/display/display_manager.cc View 1 2 3 4 5 6 7 8 9 chunks +90 lines, -6 lines 0 comments Download
M ash/display/display_manager_unittest.cc View 1 2 3 4 5 6 7 4 chunks +94 lines, -0 lines 0 comments Download
M ash/display/resolution_notification_controller.h View 1 2 3 4 2 chunks +14 lines, -7 lines 0 comments Download
M ash/display/resolution_notification_controller.cc View 1 2 3 4 5 8 chunks +23 lines, -27 lines 0 comments Download
M ash/display/resolution_notification_controller_unittest.cc View 1 2 3 4 1 chunk +16 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/display/display_preferences_unittest.cc View 1 2 3 4 5 6 7 1 chunk +9 lines, -3 lines 0 comments Download
M chrome/browser/resources/options/chromeos/display_options.js View 1 2 3 4 5 6 7 8 5 chunks +20 lines, -18 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/display_options_handler.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/display_options_handler.cc View 1 2 3 4 5 6 7 5 chunks +82 lines, -107 lines 0 comments Download
M tools/metrics/actions/actions.xml View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 26 (0 generated)
Jun Mukai
6 years, 5 months ago (2014-07-25 23:26:05 UTC) #1
Jun Mukai
ping?
6 years, 4 months ago (2014-07-28 18:38:49 UTC) #2
oshima
discussed offline: We agreed that it'd be better for DisplayManager to return the list of ...
6 years, 4 months ago (2014-07-28 21:37:35 UTC) #3
stevenjb
https://codereview.chromium.org/417113012/diff/1/chrome/browser/resources/options/chromeos/display_options.js File chrome/browser/resources/options/chromeos/display_options.js (right): https://codereview.chromium.org/417113012/diff/1/chrome/browser/resources/options/chromeos/display_options.js#newcode182 chrome/browser/resources/options/chromeos/display_options.js:182: } I'm not sure if this is what oshima ...
6 years, 4 months ago (2014-07-28 21:44:37 UTC) #4
Jun Mukai
https://codereview.chromium.org/417113012/diff/1/chrome/browser/resources/options/chromeos/display_options.js File chrome/browser/resources/options/chromeos/display_options.js (right): https://codereview.chromium.org/417113012/diff/1/chrome/browser/resources/options/chromeos/display_options.js#newcode182 chrome/browser/resources/options/chromeos/display_options.js:182: } On 2014/07/28 21:44:37, stevenjb wrote: > I'm not ...
6 years, 4 months ago (2014-07-28 21:51:00 UTC) #5
Jun Mukai
I think I've done the refactoring. PTAL.
6 years, 4 months ago (2014-07-30 01:17:23 UTC) #6
oshima
Just looked at first a few files. I'll review the rest later today. https://codereview.chromium.org/417113012/diff/40001/ash/display/resolution_notification_controller.cc File ...
6 years, 4 months ago (2014-07-30 02:09:45 UTC) #7
Jun Mukai
https://codereview.chromium.org/417113012/diff/40001/ash/display/resolution_notification_controller.cc File ash/display/resolution_notification_controller.cc (right): https://codereview.chromium.org/417113012/diff/40001/ash/display/resolution_notification_controller.cc#newcode115 ash/display/resolution_notification_controller.cc:115: ash::DisplayMode old_resolution; On 2014/07/30 02:09:45, oshima wrote: > remove ...
6 years, 4 months ago (2014-07-30 02:18:31 UTC) #8
stevenjb
I definitely like this better. A couple of suggestions. https://codereview.chromium.org/417113012/diff/60001/ash/display/display_change_observer_chromeos.cc File ash/display/display_change_observer_chromeos.cc (right): https://codereview.chromium.org/417113012/diff/60001/ash/display/display_change_observer_chromeos.cc#newcode143 ash/display/display_change_observer_chromeos.cc:143: ...
6 years, 4 months ago (2014-07-30 17:49:59 UTC) #9
Jun Mukai
https://codereview.chromium.org/417113012/diff/60001/ash/display/display_change_observer_chromeos.cc File ash/display/display_change_observer_chromeos.cc (right): https://codereview.chromium.org/417113012/diff/60001/ash/display/display_change_observer_chromeos.cc#newcode143 ash/display/display_change_observer_chromeos.cc:143: if (native_mode.size.width() >= 3840.0f) { On 2014/07/30 17:49:59, stevenjb ...
6 years, 4 months ago (2014-07-30 23:50:51 UTC) #10
stevenjb
lgtm https://codereview.chromium.org/417113012/diff/60001/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc File chrome/browser/ui/webui/options/chromeos/display_options_handler.cc (right): https://codereview.chromium.org/417113012/diff/60001/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc#newcode409 chrome/browser/ui/webui/options/chromeos/display_options_handler.cc:409: } On 2014/07/30 23:50:51, Jun Mukai wrote: > ...
6 years, 4 months ago (2014-07-31 00:03:58 UTC) #11
Jun Mukai
thanks. Then, I'd like to get reviewed by oshima... https://codereview.chromium.org/417113012/diff/100001/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc File chrome/browser/ui/webui/options/chromeos/display_options_handler.cc (right): https://codereview.chromium.org/417113012/diff/100001/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc#newcode125 chrome/browser/ui/webui/options/chromeos/display_options_handler.cc:125: ...
6 years, 4 months ago (2014-07-31 00:31:35 UTC) #12
oshima
https://codereview.chromium.org/417113012/diff/120001/ash/display/display_change_observer_chromeos.cc File ash/display/display_change_observer_chromeos.cc (right): https://codereview.chromium.org/417113012/diff/120001/ash/display/display_change_observer_chromeos.cc#newcode87 ash/display/display_change_observer_chromeos.cc:87: true); why you're iterating the most list? Can't you ...
6 years, 4 months ago (2014-07-31 02:16:52 UTC) #13
Jun Mukai
https://codereview.chromium.org/417113012/diff/120001/ash/display/display_change_observer_chromeos.cc File ash/display/display_change_observer_chromeos.cc (right): https://codereview.chromium.org/417113012/diff/120001/ash/display/display_change_observer_chromeos.cc#newcode87 ash/display/display_change_observer_chromeos.cc:87: true); On 2014/07/31 02:16:52, oshima wrote: > why you're ...
6 years, 4 months ago (2014-07-31 04:57:52 UTC) #14
oshima
lgtm https://codereview.chromium.org/417113012/diff/120001/ash/display/display_info.h File ash/display/display_info.h (right): https://codereview.chromium.org/417113012/diff/120001/ash/display/display_info.h#newcode30 ash/display/display_info.h:30: bool operator==(const DisplayMode& other) const; On 2014/07/31 04:57:52, ...
6 years, 4 months ago (2014-07-31 18:52:38 UTC) #15
Jun Mukai
https://codereview.chromium.org/417113012/diff/120001/ash/display/display_manager.cc File ash/display/display_manager.cc (right): https://codereview.chromium.org/417113012/diff/120001/ash/display/display_manager.cc#newcode551 ash/display/display_manager.cc:551: if (info.configured_ui_scale() == display_modes[i].ui_scale) On 2014/07/31 18:52:37, oshima wrote: ...
6 years, 4 months ago (2014-07-31 20:32:50 UTC) #16
Jun Mukai
TBR=asvitkine for the description change in actions.xml (approved by the item owner, stevenjb)
6 years, 4 months ago (2014-07-31 20:33:38 UTC) #17
Jun Mukai
The CQ bit was checked by mukai@chromium.org
6 years, 4 months ago (2014-07-31 20:33:42 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/417113012/160001
6 years, 4 months ago (2014-07-31 20:36:51 UTC) #19
Alexei Svitkine (slow)
actions.xml lgtm
6 years, 4 months ago (2014-07-31 20:45:33 UTC) #20
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium.win ...
6 years, 4 months ago (2014-08-01 00:52:17 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-01 14:33:00 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel/builds/2369)
6 years, 4 months ago (2014-08-01 14:33:01 UTC) #23
Jun Mukai
The CQ bit was checked by mukai@chromium.org
6 years, 4 months ago (2014-08-05 22:42:41 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/417113012/160001
6 years, 4 months ago (2014-08-05 22:44:53 UTC) #25
commit-bot: I haz the power
6 years, 4 months ago (2014-08-06 04:38:34 UTC) #26
Message was sent while issue was closed.
Change committed as 287677

Powered by Google App Engine
This is Rietveld 408576698