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

Issue 2792973002: Resolve current orientation after applying the previous orientation request. (Closed)

Created:
3 years, 8 months ago by oshima
Modified:
3 years, 8 months ago
Reviewers:
jonross
CC:
chromium-reviews, mlamouri+watch-screen-orientation_chromium.org, jam, darin-cc_chromium.org, sadrul, kalyank
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Resolve current orientation after applying the previous orientation request. An application may request to lock to portrait (primary/secondary), the lock to specific orientation by sending CURRENT (no sensor/lock). Current implement does not support this scenario because it looks to the current device's orientation even if that orientation was for other apps. This CL addresses this issue by waiting until the window is activated. BUG=708202 TEST=covered by unit test, plus manual tests using sample app. Review-Url: https://codereview.chromium.org/2792973002 Cr-Commit-Position: refs/heads/master@{#462206} Committed: https://chromium.googlesource.com/chromium/src/+/4f5b7f72da4ca1534233252c673f9c162bdb25f9

Patch Set 1 : . #

Patch Set 2 : LockToCurrent #

Total comments: 5

Patch Set 3 : . #

Patch Set 4 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+214 lines, -128 lines) Patch
M ash/content/screen_orientation_delegate_chromeos.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M ash/display/display_manager_unittest.cc View 1 2 3 9 chunks +105 lines, -20 lines 0 comments Download
M ash/display/screen_orientation_controller_chromeos.h View 1 2 3 6 chunks +31 lines, -3 lines 0 comments Download
M ash/display/screen_orientation_controller_chromeos.cc View 1 2 3 5 chunks +25 lines, -12 lines 0 comments Download
M ash/test/screen_orientation_controller_test_api.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ash/test/screen_orientation_controller_test_api.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc View 1 2 3 7 chunks +42 lines, -30 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc View 1 2 3 2 chunks +1 line, -61 lines 0 comments Download

Messages

Total messages: 36 (26 generated)
oshima
3 years, 8 months ago (2017-04-04 16:48:07 UTC) #13
jonross
A few questions about the api we're presenting for this split. There also appears to ...
3 years, 8 months ago (2017-04-04 21:51:32 UTC) #20
oshima
https://codereview.chromium.org/2792973002/diff/90001/ash/display/screen_orientation_controller_chromeos.h File ash/display/screen_orientation_controller_chromeos.h (right): https://codereview.chromium.org/2792973002/diff/90001/ash/display/screen_orientation_controller_chromeos.h#newcode63 ash/display/screen_orientation_controller_chromeos.h:63: bool lock_to_current); On 2017/04/04 21:51:32, jonross wrote: > So ...
3 years, 8 months ago (2017-04-04 23:00:25 UTC) #21
oshima
On 2017/04/04 21:51:32, jonross wrote: > There also appears to be a test failing as ...
3 years, 8 months ago (2017-04-04 23:04:02 UTC) #22
jonross
https://codereview.chromium.org/2792973002/diff/90001/ash/display/screen_orientation_controller_chromeos.h File ash/display/screen_orientation_controller_chromeos.h (right): https://codereview.chromium.org/2792973002/diff/90001/ash/display/screen_orientation_controller_chromeos.h#newcode63 ash/display/screen_orientation_controller_chromeos.h:63: bool lock_to_current); On 2017/04/04 23:00:25, oshima wrote: > Well, ...
3 years, 8 months ago (2017-04-04 23:49:25 UTC) #23
oshima
On 2017/04/04 23:49:25, jonross wrote: > https://codereview.chromium.org/2792973002/diff/90001/ash/display/screen_orientation_controller_chromeos.h > File ash/display/screen_orientation_controller_chromeos.h (right): > > https://codereview.chromium.org/2792973002/diff/90001/ash/display/screen_orientation_controller_chromeos.h#newcode63 > ...
3 years, 8 months ago (2017-04-05 00:53:29 UTC) #24
oshima
PTAL I removed the ChromeLauncherControllerOrientationTest.CurrentWithLandscapeDisplay because it doesn't make sense to test there any longer. ...
3 years, 8 months ago (2017-04-05 18:19:30 UTC) #30
jonross
On 2017/04/05 18:19:30, oshima wrote: > PTAL > > I removed the > ChromeLauncherControllerOrientationTest.CurrentWithLandscapeDisplay because ...
3 years, 8 months ago (2017-04-05 20:22:48 UTC) #31
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/2792973002/150001
3 years, 8 months ago (2017-04-05 20:33:37 UTC) #33
commit-bot: I haz the power
3 years, 8 months ago (2017-04-05 20:43:17 UTC) #36
Message was sent while issue was closed.
Committed patchset #4 (id:150001) as
https://chromium.googlesource.com/chromium/src/+/4f5b7f72da4ca1534233252c673f...

Powered by Google App Engine
This is Rietveld 408576698