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

Issue 2635563002: Fix for fullscreen layout timing on Galaxy devices. (Closed)

Created:
3 years, 11 months ago by bokan
Modified:
3 years, 11 months ago
Reviewers:
Ted C
CC:
chromium-reviews, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix for fullscreen layout timing on Galaxy devices. Remove the requestLayout call in enterFullscreen BUG=676634 Review-Url: https://codereview.chromium.org/2635563002 Cr-Original-Commit-Position: refs/heads/master@{#444352} Committed: https://chromium.googlesource.com/chromium/src/+/8e1c144ac1b517fb8406a3a3d17e9b3ed3aeb911 Review-Url: https://codereview.chromium.org/2635563002 Cr-Commit-Position: refs/heads/master@{#445070} Committed: https://chromium.googlesource.com/chromium/src/+/6432d4b76477d8587270c0bc75689ae0f13aa989

Patch Set 1 #

Total comments: 4

Patch Set 2 : Remove the requestLayout #

Patch Set 3 : Attempt 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M chrome/android/java/src/org/chromium/chrome/browser/fullscreen/FullscreenHtmlApiHandler.java View 1 2 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 37 (18 generated)
bokan
Ted, how does this look? It fixes the issue on my S7 and still works ...
3 years, 11 months ago (2017-01-13 22:07:17 UTC) #3
Ted C
lgtm w/ adding back the other one to (especially for the 56 merge) The reason ...
3 years, 11 months ago (2017-01-17 19:30:10 UTC) #8
bokan
https://codereview.chromium.org/2635563002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/fullscreen/FullscreenHtmlApiHandler.java File chrome/android/java/src/org/chromium/chrome/browser/fullscreen/FullscreenHtmlApiHandler.java (right): https://codereview.chromium.org/2635563002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/fullscreen/FullscreenHtmlApiHandler.java#newcode143 chrome/android/java/src/org/chromium/chrome/browser/fullscreen/FullscreenHtmlApiHandler.java:143: contentView.getRootView().requestLayout(); On 2017/01/17 19:30:10, Ted C wrote: > Hmm...I ...
3 years, 11 months ago (2017-01-17 21:43:11 UTC) #9
Ted C
https://codereview.chromium.org/2635563002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/fullscreen/FullscreenHtmlApiHandler.java File chrome/android/java/src/org/chromium/chrome/browser/fullscreen/FullscreenHtmlApiHandler.java (right): https://codereview.chromium.org/2635563002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/fullscreen/FullscreenHtmlApiHandler.java#newcode143 chrome/android/java/src/org/chromium/chrome/browser/fullscreen/FullscreenHtmlApiHandler.java:143: contentView.getRootView().requestLayout(); On 2017/01/17 21:43:11, bokan wrote: > On 2017/01/17 ...
3 years, 11 months ago (2017-01-17 22:09:45 UTC) #10
bokan
https://codereview.chromium.org/2635563002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/fullscreen/FullscreenHtmlApiHandler.java File chrome/android/java/src/org/chromium/chrome/browser/fullscreen/FullscreenHtmlApiHandler.java (right): https://codereview.chromium.org/2635563002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/fullscreen/FullscreenHtmlApiHandler.java#newcode143 chrome/android/java/src/org/chromium/chrome/browser/fullscreen/FullscreenHtmlApiHandler.java:143: contentView.getRootView().requestLayout(); On 2017/01/17 22:09:45, Ted C wrote: > On ...
3 years, 11 months ago (2017-01-17 23:35:24 UTC) #11
Ted C
On 2017/01/17 23:35:24, bokan wrote: > https://codereview.chromium.org/2635563002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/fullscreen/FullscreenHtmlApiHandler.java > File > chrome/android/java/src/org/chromium/chrome/browser/fullscreen/FullscreenHtmlApiHandler.java > (right): > > ...
3 years, 11 months ago (2017-01-18 05:29:54 UTC) #12
bokan
On 2017/01/18 05:29:54, Ted C wrote: > On 2017/01/17 23:35:24, bokan wrote: > > > ...
3 years, 11 months ago (2017-01-18 14:43:41 UTC) #17
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/2635563002/20001
3 years, 11 months ago (2017-01-18 14:44:25 UTC) #20
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/8e1c144ac1b517fb8406a3a3d17e9b3ed3aeb911
3 years, 11 months ago (2017-01-18 14:48:45 UTC) #23
Ted C
On 2017/01/18 14:48:45, commit-bot: I haz the power wrote: > Committed patchset #2 (id:20001) as ...
3 years, 11 months ago (2017-01-18 19:27:50 UTC) #25
bokan
On 2017/01/18 19:27:50, Ted C wrote: > On 2017/01/18 14:48:45, commit-bot: I haz the power ...
3 years, 11 months ago (2017-01-18 19:29:11 UTC) #26
Ted C
On 2017/01/18 19:29:11, bokan wrote: > On 2017/01/18 19:27:50, Ted C wrote: > > On ...
3 years, 11 months ago (2017-01-18 19:38:14 UTC) #27
bokan
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/2645793002/ by bokan@chromium.org. ...
3 years, 11 months ago (2017-01-19 03:27:58 UTC) #28
bokan
Ok, this passes all gtest_filter=*Fullscreen* tests and works manually on the S7, N5 and N6. ...
3 years, 11 months ago (2017-01-20 00:17:29 UTC) #29
Ted C
On 2017/01/20 00:17:29, bokan wrote: > Ok, this passes all gtest_filter=*Fullscreen* tests and works manually ...
3 years, 11 months ago (2017-01-20 05:39:21 UTC) #30
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/2635563002/40001
3 years, 11 months ago (2017-01-20 15:14:44 UTC) #32
bokan
On 2017/01/20 05:39:21, Ted C wrote: > On 2017/01/20 00:17:29, bokan wrote: > > Ok, ...
3 years, 11 months ago (2017-01-20 15:42:57 UTC) #33
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/6432d4b76477d8587270c0bc75689ae0f13aa989
3 years, 11 months ago (2017-01-20 16:29:12 UTC) #36
Ted C
3 years, 11 months ago (2017-01-20 16:42:20 UTC) #37
Message was sent while issue was closed.
On 2017/01/20 15:42:57, bokan wrote:
> On 2017/01/20 05:39:21, Ted C wrote:
> > On 2017/01/20 00:17:29, bokan wrote:
> > > Ok, this passes all gtest_filter=*Fullscreen* tests and works manually on
> the
> > > S7, N5 and N6. Strangely, the test failure on N5 didn't translate into any
> > > issues when using fullscreen manually (I tried with both hidden and shown
> top
> > > controls).
> > > 
> > > It seems that calling requestLayout on the root view in enterFullscreen
> > prevents
> > > the requestLayout after *really* going fullscreen from effecting any kind
of
> > > change on the S7. Doing a layout on the content view itself seems to do
the
> > > trick but I'm not really sure what's going on. WDYT?
> > > 
> > > Incidentally, if I just comment out the handleMessage handler that goes to
> > > UI_FULLSCREEN (so that we layout to UI_LAYOUT_FULLSCREEN), the content
> appears
> > > behind the status bar - as expected - but the height doesn't reflect the
> full
> > > screen height. It's shorter than the screen by the navigation bar and
status
> > > bar. Adding the LAYOUT_HIDE_NAVIGATION increases the height by the
> navigation
> > > bar but we still have a status bar sized gap. It seems LAYOUT_FULLSCREEN
> isn't
> > > doing what we expect it to.
> > 
> > lgtm
> > 
> > Yeah, that is surprising that LAYOUT_FULLSCEEN is not telling us the height
> > increased
> > as that is definitely what the API implies (you're given the full viewport
but
> > overdrawn
> > by the android UI controls).
> > 
> > Also, I thought I tried request layout on the contentview itself, but I
again
> > maybe not.
> > 
> > Something indeed is acting very strange here.  I wouldn't be surprised if we
> do
> > need to make these layout listeners but also timeout based for unreliable
> > Android
> > APIs/versions.
> 
> I think we could just ditch the FULLSCREEN_LAYOUT intermediate step - I can't
> see a difference on any devices back to Lollipop and I think that's what's
> causing all the headache. If nothing else, we could do it just on Lollipop+.

Yeah, that code predates lollipop by a lot, but if we see that it gains us
nothing on L+ then dropping it sgtm

Powered by Google App Engine
This is Rietveld 408576698