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

Issue 648733003: Implement ScreenOrientationDelegate on ChromeOS (Closed)

Created:
6 years, 2 months ago by jonross
Modified:
6 years, 1 month ago
CC:
chromium-reviews, sadrul, jam, darin-cc_chromium.org, oshima+watch_chromium.org, kalyank, stevenjb+watch_chromium.org, ben+ash_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Implement ScreenOrientationDelegate on ChromeOS Extend content::ScreenOrientationDelegate within ash to provide functionality on ChromeOS. Also provides a fix for a bug in ScreenOrientationProvider that was found during development. TEST=Manual testing on TouchView device with an HTML page that performs ScreenOrientation requests. BUG=396760 Committed: https://crrev.com/4f3952e7d0172a50d26a6eb57660623db70000db Cr-Commit-Position: refs/heads/master@{#303898}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Generalize rotation locking #

Total comments: 25

Patch Set 3 : Rebase #

Patch Set 4 : Move ScreenOrientationDelegate #

Total comments: 2

Patch Set 5 : #

Total comments: 4

Patch Set 6 : Restrict Rotation Locking to a single window #

Total comments: 3

Patch Set 7 : #

Patch Set 8 : Tests #

Total comments: 7

Patch Set 9 : #

Total comments: 10

Patch Set 10 : Rebase #

Patch Set 11 : Shift experimental feature to ash #

Total comments: 6

Patch Set 12 : #

Total comments: 1

Patch Set 13 : Move ash code into ash/content #

Total comments: 4

Patch Set 14 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+486 lines, -10 lines) Patch
M ash/ash.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +4 lines, -0 lines 0 comments Download
A ash/content/display/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +13 lines, -0 lines 0 comments Download
A ash/content/display/screen_orientation_delegate_chromeos.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +64 lines, -0 lines 0 comments Download
A ash/content/display/screen_orientation_delegate_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +179 lines, -0 lines 0 comments Download
A ash/content/display/screen_orientation_delegate_chromeos_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +194 lines, -0 lines 0 comments Download
M ash/shell.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +8 lines, -0 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -0 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_controller.h View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_controller.cc View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/screen_orientation/screen_orientation_delegate_android.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -5 lines 0 comments Download
M content/browser/screen_orientation/screen_orientation_delegate_android.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -1 line 0 comments Download
M content/public/browser/screen_orientation_delegate.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -2 lines 0 comments Download
M content/public/browser/screen_orientation_provider.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 64 (12 generated)
jonross
Hey Rob, Could you review the ash implementation of ScreenOrientationDelegate?
6 years, 2 months ago (2014-10-10 18:05:15 UTC) #2
jonross
Hey Mounir, This review is an ash implementation of ScreenOrientationDelegate, to provide ChromeOS functionality. There ...
6 years, 2 months ago (2014-10-10 18:11:35 UTC) #4
mlamouri (slow - plz ping)
In addition of the comments below, shouldn't you call ScreenOrientationDispatcherHost::OnOrientationChange()? https://codereview.chromium.org/648733003/diff/1/ash/system/chromeos/screen_orientation/screen_orientation_delegate_ash.cc File ash/system/chromeos/screen_orientation/screen_orientation_delegate_ash.cc (right): https://codereview.chromium.org/648733003/diff/1/ash/system/chromeos/screen_orientation/screen_orientation_delegate_ash.cc#newcode33 ...
6 years, 2 months ago (2014-10-13 09:45:44 UTC) #5
jonross
https://codereview.chromium.org/648733003/diff/1/ash/system/chromeos/screen_orientation/screen_orientation_delegate_ash.cc File ash/system/chromeos/screen_orientation/screen_orientation_delegate_ash.cc (right): https://codereview.chromium.org/648733003/diff/1/ash/system/chromeos/screen_orientation/screen_orientation_delegate_ash.cc#newcode37 ash/system/chromeos/screen_orientation/screen_orientation_delegate_ash.cc:37: controller->LockRotation(gfx::Display::ROTATE_90); On 2014/10/13 09:45:44, Mounir Lamouri wrote: > Two ...
6 years, 2 months ago (2014-10-14 14:46:57 UTC) #6
mlamouri (slow - plz ping)
On 2014/10/14 14:46:57, jonross wrote: > 2) Yes these are some assumptions for natural orientation. ...
6 years, 2 months ago (2014-10-14 15:18:07 UTC) #7
jonross
I made the applying of rotation lock more generic. It now verifies the initial display ...
6 years, 2 months ago (2014-10-14 19:38:04 UTC) #8
flackr
It's fairly confusing that the rotation lock state is managed by maximize controller. Can we ...
6 years, 2 months ago (2014-10-14 20:08:18 UTC) #9
mlamouri (slow - plz ping)
It would be great if you could update us with the UX decision regarding 'portrait' ...
6 years, 2 months ago (2014-10-15 15:39:33 UTC) #10
mlamouri (slow - plz ping)
https://codereview.chromium.org/648733003/diff/170001/content/public/browser/screen_orientation_provider.cc File content/public/browser/screen_orientation_provider.cc (right): https://codereview.chromium.org/648733003/diff/170001/content/public/browser/screen_orientation_provider.cc#newcode61 content/public/browser/screen_orientation_provider.cc:61: return; I moved this fix in https://codereview.chromium.org/655273003/ given that ...
6 years, 2 months ago (2014-10-15 15:51:27 UTC) #11
jonross
https://codereview.chromium.org/648733003/diff/170001/ash/ash.gyp File ash/ash.gyp (right): https://codereview.chromium.org/648733003/diff/170001/ash/ash.gyp#newcode324 ash/ash.gyp:324: 'system/chromeos/screen_orientation/screen_orientation_delegate_ash.h', On 2014/10/14 20:08:17, flackr wrote: > Need to ...
6 years, 2 months ago (2014-10-22 18:45:30 UTC) #12
flackr
https://codereview.chromium.org/648733003/diff/210001/ash/display/screen_orientation_delegate_chromeos.cc File ash/display/screen_orientation_delegate_chromeos.cc (right): https://codereview.chromium.org/648733003/diff/210001/ash/display/screen_orientation_delegate_chromeos.cc#newcode58 ash/display/screen_orientation_delegate_chromeos.cc:58: Shell::GetInstance()->maximize_mode_controller(); Copying my previous comment inline to help it ...
6 years, 2 months ago (2014-10-22 21:28:04 UTC) #13
jonross
I have added a TODO to move the control of the rotation lock to ScreenOrientationDelegate. ...
6 years, 2 months ago (2014-10-23 16:38:08 UTC) #14
flackr
https://codereview.chromium.org/648733003/diff/230001/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): https://codereview.chromium.org/648733003/diff/230001/ash/wm/maximize_mode/maximize_mode_controller.cc#newcode157 ash/wm/maximize_mode/maximize_mode_controller.cc:157: SetDisplayRotation(Shell::GetInstance()->display_manager(), rotation); So if multiple consumers try to lock ...
6 years, 1 month ago (2014-10-27 15:12:06 UTC) #15
jonross
https://codereview.chromium.org/648733003/diff/230001/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): https://codereview.chromium.org/648733003/diff/230001/ash/wm/maximize_mode/maximize_mode_controller.cc#newcode157 ash/wm/maximize_mode/maximize_mode_controller.cc:157: SetDisplayRotation(Shell::GetInstance()->display_manager(), rotation); On 2014/10/27 15:12:06, flackr wrote: > So ...
6 years, 1 month ago (2014-10-27 18:18:49 UTC) #16
flackr
https://codereview.chromium.org/648733003/diff/230001/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): https://codereview.chromium.org/648733003/diff/230001/ash/wm/maximize_mode/maximize_mode_controller.cc#newcode157 ash/wm/maximize_mode/maximize_mode_controller.cc:157: SetDisplayRotation(Shell::GetInstance()->display_manager(), rotation); On 2014/10/27 18:18:48, jonross wrote: > On ...
6 years, 1 month ago (2014-10-27 18:45:19 UTC) #17
jonross
https://codereview.chromium.org/648733003/diff/230001/ash/wm/maximize_mode/maximize_mode_controller.cc File ash/wm/maximize_mode/maximize_mode_controller.cc (right): https://codereview.chromium.org/648733003/diff/230001/ash/wm/maximize_mode/maximize_mode_controller.cc#newcode157 ash/wm/maximize_mode/maximize_mode_controller.cc:157: SetDisplayRotation(Shell::GetInstance()->display_manager(), rotation); On 2014/10/27 18:45:19, flackr wrote: > On ...
6 years, 1 month ago (2014-10-27 21:36:01 UTC) #18
jonross
Updated so the ScreenOrientationDelegate is provided the WebContents requesting a lock/unlock. This way platforms where ...
6 years, 1 month ago (2014-10-28 18:59:02 UTC) #19
jonross
We had a discussion with stevet@ regarding how ChromeOS will handle rotation locks. Locking to ...
6 years, 1 month ago (2014-10-29 15:28:11 UTC) #20
flackr
https://codereview.chromium.org/648733003/diff/250001/ash/display/screen_orientation_delegate_chromeos.cc File ash/display/screen_orientation_delegate_chromeos.cc (right): https://codereview.chromium.org/648733003/diff/250001/ash/display/screen_orientation_delegate_chromeos.cc#newcode67 ash/display/screen_orientation_delegate_chromeos.cc:67: return false; Until we get the more complex model ...
6 years, 1 month ago (2014-10-29 16:50:47 UTC) #21
jonross
https://codereview.chromium.org/648733003/diff/250001/ash/display/screen_orientation_delegate_chromeos.cc File ash/display/screen_orientation_delegate_chromeos.cc (right): https://codereview.chromium.org/648733003/diff/250001/ash/display/screen_orientation_delegate_chromeos.cc#newcode67 ash/display/screen_orientation_delegate_chromeos.cc:67: return false; On 2014/10/29 16:50:47, flackr wrote: > Until ...
6 years, 1 month ago (2014-10-29 18:34:02 UTC) #22
flackr
Some tests? Otherwise looks good. https://codereview.chromium.org/648733003/diff/250001/ash/display/screen_orientation_delegate_chromeos.cc File ash/display/screen_orientation_delegate_chromeos.cc (right): https://codereview.chromium.org/648733003/diff/250001/ash/display/screen_orientation_delegate_chromeos.cc#newcode67 ash/display/screen_orientation_delegate_chromeos.cc:67: return false; On 2014/10/29 ...
6 years, 1 month ago (2014-10-29 18:52:48 UTC) #23
jonross
Now with unittests
6 years, 1 month ago (2014-10-30 17:35:24 UTC) #24
flackr
LGTM with some nits https://codereview.chromium.org/648733003/diff/290001/ash/display/screen_orientation_delegate_chromeos_unittest.cc File ash/display/screen_orientation_delegate_chromeos_unittest.cc (right): https://codereview.chromium.org/648733003/diff/290001/ash/display/screen_orientation_delegate_chromeos_unittest.cc#newcode1 ash/display/screen_orientation_delegate_chromeos_unittest.cc:1: // Copyright (c) 2012 The ...
6 years, 1 month ago (2014-10-30 18:11:21 UTC) #25
jonross
Hi Mounir, Would you be able to take another look that this change? https://codereview.chromium.org/648733003/diff/290001/ash/display/screen_orientation_delegate_chromeos_unittest.cc File ...
6 years, 1 month ago (2014-10-30 18:23:54 UTC) #26
mlamouri (slow - plz ping)
https://codereview.chromium.org/648733003/diff/310001/ash/display/screen_orientation_delegate_chromeos.cc File ash/display/screen_orientation_delegate_chromeos.cc (right): https://codereview.chromium.org/648733003/diff/310001/ash/display/screen_orientation_delegate_chromeos.cc#newcode22 ash/display/screen_orientation_delegate_chromeos.cc:22: if (display_manager->HasInternalDisplay()) { nit: I think it would be ...
6 years, 1 month ago (2014-11-01 00:30:40 UTC) #27
jonross
I've removed the changes made to content that handled the incomplete ash implementation. The ash ...
6 years, 1 month ago (2014-11-03 18:22:04 UTC) #28
jonross
Hi Mounir, Would you be able to take another look that this change?
6 years, 1 month ago (2014-11-06 14:36:46 UTC) #29
mlamouri (slow - plz ping)
lgtm with nits. Feel free to address the user lock vs application lock later. Sorry ...
6 years, 1 month ago (2014-11-06 22:56:53 UTC) #30
jonross
https://codereview.chromium.org/648733003/diff/350001/ash/display/screen_orientation_delegate_chromeos.cc File ash/display/screen_orientation_delegate_chromeos.cc (right): https://codereview.chromium.org/648733003/diff/350001/ash/display/screen_orientation_delegate_chromeos.cc#newcode42 ash/display/screen_orientation_delegate_chromeos.cc:42: NOTREACHED(); On 2014/11/06 22:56:52, Mounir Lamouri wrote: > nit: ...
6 years, 1 month ago (2014-11-07 18:47:38 UTC) #31
jonross
oshima@chromium.org: Please review changes in ash/display* ash/shell.(h,cc) In this review I am implementing the first ...
6 years, 1 month ago (2014-11-07 18:49:34 UTC) #33
jonross
avi@chromium.org: Please review changes in content/public/browser/* In this review I am implementing the first stage ...
6 years, 1 month ago (2014-11-07 18:56:38 UTC) #35
oshima
I have high level question about the design of the API. I think the API ...
6 years, 1 month ago (2014-11-11 01:06:27 UTC) #36
mlamouri (slow - plz ping)
On 2014/11/11 01:06:27, oshima wrote: > I have high level question about the design of ...
6 years, 1 month ago (2014-11-11 10:10:15 UTC) #37
jonross
On 2014/11/11 10:10:15, Mounir Lamouri wrote: > On 2014/11/11 01:06:27, oshima wrote: > > I ...
6 years, 1 month ago (2014-11-11 22:46:52 UTC) #38
oshima
On 2014/11/11 22:46:52, jonross wrote: > On 2014/11/11 10:10:15, Mounir Lamouri wrote: > > On ...
6 years, 1 month ago (2014-11-11 23:14:14 UTC) #39
jonross
The ash dependencies upon content have been moved into ash/content/
6 years, 1 month ago (2014-11-11 23:59:37 UTC) #41
oshima
lgtm with nits https://codereview.chromium.org/648733003/diff/410001/ash/content/display/DEPS File ash/content/display/DEPS (right): https://codereview.chromium.org/648733003/diff/410001/ash/content/display/DEPS#newcode5 ash/content/display/DEPS:5: "+content/public/browser/web_contents.h", nit: you can just add ...
6 years, 1 month ago (2014-11-12 00:17:32 UTC) #42
jonross
https://codereview.chromium.org/648733003/diff/410001/ash/content/display/DEPS File ash/content/display/DEPS (right): https://codereview.chromium.org/648733003/diff/410001/ash/content/display/DEPS#newcode5 ash/content/display/DEPS:5: "+content/public/browser/web_contents.h", On 2014/11/12 00:17:31, oshima wrote: > nit: you ...
6 years, 1 month ago (2014-11-12 00:56:32 UTC) #43
jonross
Hello Avi, Would you be able to provide an owners review to the changes in ...
6 years, 1 month ago (2014-11-12 17:29:17 UTC) #44
Avi (use Gerrit)
lgtm content/public/browser/* looks fine.
6 years, 1 month ago (2014-11-12 17:38:29 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/648733003/430001
6 years, 1 month ago (2014-11-12 18:39:45 UTC) #47
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/23743)
6 years, 1 month ago (2014-11-12 18:46:24 UTC) #49
jonross
Hi Rick, Could you provide a DEPS review as an owner of third_party/WebKit/public/* In this ...
6 years, 1 month ago (2014-11-12 18:59:01 UTC) #52
Rick Byers
On 2014/11/12 18:59:01, jonross wrote: > Hi Rick, > > Could you provide a DEPS ...
6 years, 1 month ago (2014-11-12 20:37:51 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/648733003/430001
6 years, 1 month ago (2014-11-12 20:44:08 UTC) #55
commit-bot: I haz the power
Committed patchset #14 (id:430001)
6 years, 1 month ago (2014-11-12 21:42:40 UTC) #56
commit-bot: I haz the power
Patchset 14 (id:??) landed as https://crrev.com/4f3952e7d0172a50d26a6eb57660623db70000db Cr-Commit-Position: refs/heads/master@{#303898}
6 years, 1 month ago (2014-11-12 21:43:16 UTC) #57
achuithb
https://uberchromegw.corp.google.com/i/chromiumos.chromium/builders/X86%20%28chromium%29/builds/2437 https://uberchromegw.corp.google.com/i/chromiumos.chromium/builders/X86%20%28chromium%29/builds/2437/steps/BuildPackages/logs/stdio chromeos-chrome-41.0.2219.0_alpha-r1: FAILED: i686-pc-linux-gnu-g++ -B/usr/x86_64-pc-linux-gnu/i686-pc-linux-gnu/binutils-bin/2.24-gold -MMD -MF obj/ash/content/display/ash.screen_orientation_delegate_chromeos.o.d -DV8_DEPRECATION_WARNINGS -D_FILE_OFFSET_BITS=64 -DCHROMIUM_BUILD -DTOOLKIT_VIEWS=1 -DUI_COMPOSITOR_IMAGE_TRANSPORT -DUSE_AURA=1 ...
6 years, 1 month ago (2014-11-13 01:15:19 UTC) #59
achuithb
Adding Toni as cros gardener. I believe this has caused the x86-bot to go red ...
6 years, 1 month ago (2014-11-13 01:17:07 UTC) #61
tbarzic
On 2014/11/13 01:17:07, achuithb wrote: > Adding Toni as cros gardener. I believe this has ...
6 years, 1 month ago (2014-11-13 01:20:17 UTC) #62
jonross
On 2014/11/13 01:20:17, tbarzic wrote: > On 2014/11/13 01:17:07, achuithb wrote: > > Adding Toni ...
6 years, 1 month ago (2014-11-13 01:28:50 UTC) #63
achuithb
6 years, 1 month ago (2014-11-13 01:31:56 UTC) #64
Message was sent while issue was closed.
On 2014/11/13 01:28:50, jonross wrote:
> On 2014/11/13 01:20:17, tbarzic wrote:
> > On 2014/11/13 01:17:07, achuithb wrote:
> > > Adding Toni as cros gardener. I believe this has caused the x86-bot to go
> red
> > > and should probably be reverted.
> > 
> > already reverted: https://crrev.com/61aaa96a45aaa556a96ee19b87f0e512129a27d7
> 
> I have also landed a patch that addresses the error seen on daisy:
> https://codereview.chromium.org/723633003/

Ah thanks! The bot hasn't gone green yet so I thought this was still an
outstanding issue, but looks like there's something else wrong with it now

Powered by Google App Engine
This is Rietveld 408576698