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

Issue 12505005: Store rotation/ui scale to local state. (Closed)

Created:
7 years, 9 months ago by oshima
Modified:
7 years, 9 months ago
Reviewers:
James Cook, Jun Mukai
CC:
chromium-reviews, dbeam+watch-options_chromium.org, sadrul, nkostylev+watch_chromium.org, ben+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

- Store rotation/ui scale to local state. - Reset the overscan to the default value if the display has overscan. - Move overscan data into kDisplayProperties dictionary value. - Remove Rotate/Scale shortcut from login screen as we can't store the state in login screen. BUG=196818 TEST=covered by unit test. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=189910

Patch Set 1 : #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Total comments: 2

Patch Set 5 : updated test #

Patch Set 6 : #

Total comments: 8

Patch Set 7 : #

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -53 lines) Patch
M ash/display/display_change_observer_x11.h View 1 2 3 4 5 6 7 1 chunk +6 lines, -1 line 0 comments Download
M ash/display/display_change_observer_x11.cc View 1 2 3 4 5 6 7 2 chunks +12 lines, -0 lines 0 comments Download
M ash/display/display_controller.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -2 lines 0 comments Download
M ash/display/display_controller.cc View 1 2 3 4 5 6 7 6 chunks +22 lines, -6 lines 0 comments Download
M ash/display/display_manager.cc View 1 2 3 4 5 6 7 1 chunk +11 lines, -0 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M ash/shell/shell_delegate_impl.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M ash/shell/shell_delegate_impl.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M ash/shell_delegate.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 4 5 6 7 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/display/display_preferences.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/display/display_preferences_unittest.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate_chromeos.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate_views.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/display_options_handler.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chromeos/display/output_configurator.h View 1 2 3 4 5 6 7 3 chunks +19 lines, -0 lines 0 comments Download
M chromeos/display/output_configurator.cc View 1 2 3 4 5 6 7 3 chunks +46 lines, -38 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
oshima
I'm working on more tests but change itself is ready for review. PTL.
7 years, 9 months ago (2013-03-21 22:42:21 UTC) #1
Jun Mukai
https://codereview.chromium.org/12505005/diff/14047/ash/display/display_change_observer_x11.cc File ash/display/display_change_observer_x11.cc (right): https://codereview.chromium.org/12505005/diff/14047/ash/display/display_change_observer_x11.cc#newcode201 ash/display/display_change_observer_x11.cc:201: displays.back().set_ui_scale(0.0f); setting a scale to '0' sounds awful to ...
7 years, 9 months ago (2013-03-22 00:53:06 UTC) #2
oshima
https://codereview.chromium.org/12505005/diff/14047/ash/display/display_change_observer_x11.cc File ash/display/display_change_observer_x11.cc (right): https://codereview.chromium.org/12505005/diff/14047/ash/display/display_change_observer_x11.cc#newcode201 ash/display/display_change_observer_x11.cc:201: displays.back().set_ui_scale(0.0f); On 2013/03/22 00:53:07, Jun Mukai wrote: > setting ...
7 years, 9 months ago (2013-03-22 02:06:51 UTC) #3
Jun Mukai
lgtm https://codereview.chromium.org/12505005/diff/8023/chrome/browser/chromeos/display/overscan_calibrator.cc File chrome/browser/chromeos/display/overscan_calibrator.cc (right): https://codereview.chromium.org/12505005/diff/8023/chrome/browser/chromeos/display/overscan_calibrator.cc#newcode117 chrome/browser/chromeos/display/overscan_calibrator.cc:117: if (!native_insets_.empty()) { braces are unnecessary
7 years, 9 months ago (2013-03-22 02:57:17 UTC) #4
oshima
https://codereview.chromium.org/12505005/diff/8023/chrome/browser/chromeos/display/overscan_calibrator.cc File chrome/browser/chromeos/display/overscan_calibrator.cc (right): https://codereview.chromium.org/12505005/diff/8023/chrome/browser/chromeos/display/overscan_calibrator.cc#newcode117 chrome/browser/chromeos/display/overscan_calibrator.cc:117: if (!native_insets_.empty()) { On 2013/03/22 02:57:17, Jun Mukai wrote: ...
7 years, 9 months ago (2013-03-22 11:36:56 UTC) #5
oshima
updated test. jamescook -> ash
7 years, 9 months ago (2013-03-22 12:28:37 UTC) #6
oshima
jamescook -> ash
7 years, 9 months ago (2013-03-22 13:05:43 UTC) #7
James Cook
LGTM if comments addressed https://codereview.chromium.org/12505005/diff/19003/ash/display/display_controller.cc File ash/display/display_controller.cc (right): https://codereview.chromium.org/12505005/diff/19003/ash/display/display_controller.cc#newcode51 ash/display/display_controller.cc:51: DEFINE_WINDOW_PROPERTY_KEY(gfx::Display::Rotation, kRotationPropKey, kRotationPropertyKey please https://codereview.chromium.org/12505005/diff/19003/ash/display/display_controller.h ...
7 years, 9 months ago (2013-03-22 16:53:14 UTC) #8
oshima
https://codereview.chromium.org/12505005/diff/19003/ash/display/display_controller.cc File ash/display/display_controller.cc (right): https://codereview.chromium.org/12505005/diff/19003/ash/display/display_controller.cc#newcode51 ash/display/display_controller.cc:51: DEFINE_WINDOW_PROPERTY_KEY(gfx::Display::Rotation, kRotationPropKey, On 2013/03/22 16:53:14, James Cook (Chromium) wrote: ...
7 years, 9 months ago (2013-03-22 18:20:42 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/12505005/21002
7 years, 9 months ago (2013-03-22 19:45:21 UTC) #10
oshima
On 2013/03/22 19:45:21, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
7 years, 9 months ago (2013-03-22 21:12:31 UTC) #11
oshima
7 years, 9 months ago (2013-03-22 21:14:04 UTC) #12
Message was sent while issue was closed.
Committed patchset #7 manually as r189910 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698