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

Issue 21297003: Add ability to set resolution on external display (Closed)

Created:
7 years, 4 months ago by oshima
Modified:
7 years, 4 months ago
Reviewers:
Jun Mukai, Daniel Erat
CC:
chromium-reviews, cbentzel+watch_chromium.org, sadrul, nkostylev+watch_chromium.org, ben+watch_chromium.org, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Add ability to set resolution on external display * OutputConfigurator gets selected resolution via StateController::GetResolutionForDisplay * It only shows one selection per one resolution. Non interlaced takes precedence and best refresh rate is chosen. * Resolution list is added to DisplayInfo. UI can use this to present options to users. * Created separate display_util_x11 for utility functions that depends on xrandr. BUG=230733 TEST=covered by tests. more to come. manual test should be possible after UI is added. (crbug.com/266097) Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=214997

Patch Set 1 : #

Total comments: 35

Patch Set 2 : addressed comments #

Total comments: 6

Patch Set 3 : #

Patch Set 4 : updated DisplayPreferenceTest #

Total comments: 6

Patch Set 5 : adraddressed comment, adjusted test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+691 lines, -121 lines) Patch
M ash/ash.gyp View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M ash/display/display_change_observer_x11.h View 1 2 chunks +3 lines, -6 lines 0 comments Download
M ash/display/display_change_observer_x11.cc View 1 7 chunks +24 lines, -45 lines 0 comments Download
D ash/display/display_change_observer_x11_unittest.cc View 1 chunk +0 lines, -31 lines 0 comments Download
M ash/display/display_info.h View 1 4 chunks +26 lines, -1 line 0 comments Download
M ash/display/display_info.cc View 1 2 3 chunks +19 lines, -0 lines 0 comments Download
M ash/display/display_manager.h View 1 2 chunks +12 lines, -1 line 0 comments Download
M ash/display/display_manager.cc View 1 2 chunks +27 lines, -1 line 0 comments Download
A ash/display/display_util_x11.h View 1 1 chunk +36 lines, -0 lines 0 comments Download
A ash/display/display_util_x11.cc View 1 1 chunk +97 lines, -0 lines 0 comments Download
A ash/display/display_util_x11_unittest.cc View 1 1 chunk +104 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/display/display_preferences.cc View 1 4 3 chunks +17 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/display/display_preferences_unittest.cc View 1 2 3 4 5 chunks +51 lines, -2 lines 0 comments Download
M chromeos/display/output_configurator.h View 1 4 chunks +13 lines, -5 lines 0 comments Download
M chromeos/display/output_configurator.cc View 1 8 chunks +27 lines, -21 lines 0 comments Download
M chromeos/display/output_configurator_unittest.cc View 1 2 3 4 5 chunks +11 lines, -2 lines 0 comments Download
M chromeos/display/output_util.h View 1 2 chunks +33 lines, -0 lines 0 comments Download
M chromeos/display/output_util.cc View 1 2 chunks +81 lines, -0 lines 0 comments Download
M chromeos/display/output_util_unittest.cc View 2 chunks +90 lines, -0 lines 0 comments Download
M chromeos/display/real_output_configurator_delegate.h View 1 chunk +2 lines, -1 line 0 comments Download
M chromeos/display/real_output_configurator_delegate.cc View 1 2 chunks +15 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
oshima
I'm adding a few more tests, but the rest is ready for review. derat -> ...
7 years, 4 months ago (2013-07-31 16:39:11 UTC) #1
Daniel Erat
https://codereview.chromium.org/21297003/diff/17001/ash/accelerators/accelerator_controller.cc File ash/accelerators/accelerator_controller.cc (right): https://codereview.chromium.org/21297003/diff/17001/ash/accelerators/accelerator_controller.cc#newcode74 ash/accelerators/accelerator_controller.cc:74: #include "ash/display/display_info.h" On 2013/07/31 16:39:11, oshima wrote: > Changes ...
7 years, 4 months ago (2013-07-31 17:34:04 UTC) #2
oshima
I'm still working on test for display_preference. https://codereview.chromium.org/21297003/diff/17001/ash/accelerators/accelerator_controller.cc File ash/accelerators/accelerator_controller.cc (right): https://codereview.chromium.org/21297003/diff/17001/ash/accelerators/accelerator_controller.cc#newcode74 ash/accelerators/accelerator_controller.cc:74: #include "ash/display/display_info.h" ...
7 years, 4 months ago (2013-07-31 21:59:48 UTC) #3
Daniel Erat
LGTM with a comment https://codereview.chromium.org/21297003/diff/17001/ash/display/display_util_x11.cc File ash/display/display_util_x11.cc (right): https://codereview.chromium.org/21297003/diff/17001/ash/display/display_util_x11.cc#newcode76 ash/display/display_util_x11.cc:76: resolution_map.insert(ResolutionMap::value_type( On 2013/07/31 21:59:49, oshima ...
7 years, 4 months ago (2013-07-31 22:10:17 UTC) #4
Jun Mukai
https://codereview.chromium.org/21297003/diff/29001/ash/display/display_info.cc File ash/display/display_info.cc (right): https://codereview.chromium.org/21297003/diff/29001/ash/display/display_info.cc#newcode106 ash/display/display_info.cc:106: display_info.SetBounds(bounds_in_pixel); should we add the specified display's size to ...
7 years, 4 months ago (2013-07-31 23:09:59 UTC) #5
oshima
https://codereview.chromium.org/21297003/diff/29001/ash/display/display_info.cc File ash/display/display_info.cc (right): https://codereview.chromium.org/21297003/diff/29001/ash/display/display_info.cc#newcode106 ash/display/display_info.cc:106: display_info.SetBounds(bounds_in_pixel); On 2013/07/31 23:10:00, Jun Mukai wrote: > should ...
7 years, 4 months ago (2013-07-31 23:29:26 UTC) #6
Jun Mukai
lgtm
7 years, 4 months ago (2013-07-31 23:38:06 UTC) #7
oshima
added test scenarios to DisplayPreferenceTest::BasicStores mukai-san, can you take another look?
7 years, 4 months ago (2013-08-01 00:05:31 UTC) #8
Jun Mukai
lgtm please fix a few typo but code looks good to me. https://codereview.chromium.org/21297003/diff/35002/chrome/browser/chromeos/display/display_preferences.cc File chrome/browser/chromeos/display/display_preferences.cc ...
7 years, 4 months ago (2013-08-01 02:41:00 UTC) #9
oshima
https://codereview.chromium.org/21297003/diff/35002/chrome/browser/chromeos/display/display_preferences.cc File chrome/browser/chromeos/display/display_preferences.cc (right): https://codereview.chromium.org/21297003/diff/35002/chrome/browser/chromeos/display/display_preferences.cc#newcode202 chrome/browser/chromeos/display/display_preferences.cc:202: LOG(ERROR) << "Store Resolution for:" << display.ToString(); On 2013/08/01 ...
7 years, 4 months ago (2013-08-01 06:02:50 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/21297003/72001
7 years, 4 months ago (2013-08-01 06:03:13 UTC) #11
commit-bot: I haz the power
7 years, 4 months ago (2013-08-01 11:18:25 UTC) #12
Message was sent while issue was closed.
Change committed as 214997

Powered by Google App Engine
This is Rietveld 408576698