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

Issue 2530883002: Refactor overlay fullscreen video handling into a single callback (Closed)

Created:
4 years ago by foolip
Modified:
4 years ago
Reviewers:
watk, esprehn, Mike West, eae
CC:
blink-reviews, blink-reviews-dom_chromium.org, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, eric.carlson_apple.com, feature-media-reviews_chromium.org, fs, gasubic, kinuko+watch, mlamouri+watch-blink_chromium.org, rwlbuis, sof, nessy, Srirama, vcarbune.chromium
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor overlay fullscreen video handling into a single callback The motivation is twofold. First, the timing of modifying the fullscreen element stack (later top layer) will change, so that it doesn't happen synchronously with the enter/exit callbacks, but in an animation frame task following it. That means that it has to be the code that changes the fullscreen element that notifies FullscreenController. Second, FullscreenController itself doesn't strictly need m_provisionalFullscreenElement or m_fullscreenFrame, but in the current structure they're needed for the overlay fullscreen video handling. Changing this is a prerequisite for further refactoring: https://codereview.chromium.org/2495423004/ TEST=https://codereview.chromium.org/2527093003/ BUG=402376 Committed: https://crrev.com/527a3270a1a0da47cc48dbd3c9e76c614435b7c6 Cr-Commit-Position: refs/heads/master@{#435223}

Patch Set 1 #

Patch Set 2 : set dependency patchset. #

Patch Set 3 : documentation #

Total comments: 5

Patch Set 4 : test and fix failing DCHECK #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -38 lines) Patch
A third_party/WebKit/LayoutTests/fullscreen/api/document-exit-fullscreen-vs-request.html View 1 2 3 1 chunk +43 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.h View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Fullscreen.cpp View 1 2 3 4 chunks +16 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.cpp View 1 3 chunks +4 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/page/ChromeClient.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/ChromeClientImpl.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/ChromeClientImpl.cpp View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/FullscreenController.h View 1 2 1 chunk +11 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/FullscreenController.cpp View 1 4 chunks +36 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (16 generated)
foolip
eae@, esprehn@, PTAL. If one (or none) of you would like to handle all Fullscreen ...
4 years ago (2016-11-24 21:03:39 UTC) #7
eae
LGTM
4 years ago (2016-11-24 21:47:22 UTC) #8
foolip
https://codereview.chromium.org/2530883002/diff/40001/third_party/WebKit/Source/web/FullscreenController.cpp File third_party/WebKit/Source/web/FullscreenController.cpp (right): https://codereview.chromium.org/2530883002/diff/40001/third_party/WebKit/Source/web/FullscreenController.cpp#newcode170 third_party/WebKit/Source/web/FullscreenController.cpp:170: DCHECK_NE(fromElement, toElement); Turns out this assert can actually fail ...
4 years ago (2016-11-28 16:20:10 UTC) #9
foolip
https://codereview.chromium.org/2530883002/diff/40001/third_party/WebKit/Source/web/FullscreenController.cpp File third_party/WebKit/Source/web/FullscreenController.cpp (right): https://codereview.chromium.org/2530883002/diff/40001/third_party/WebKit/Source/web/FullscreenController.cpp#newcode170 third_party/WebKit/Source/web/FullscreenController.cpp:170: DCHECK_NE(fromElement, toElement); On 2016/11/28 16:20:10, foolip wrote: > Turns ...
4 years ago (2016-11-29 15:21:30 UTC) #14
watk
https://codereview.chromium.org/2530883002/diff/40001/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp File third_party/WebKit/Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/2530883002/diff/40001/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp#newcode1198 third_party/WebKit/Source/core/html/HTMLMediaElement.cpp:1198: m_webMediaPlayer->enteredFullscreen(); On 2016/11/24 21:03:39, foolip wrote: > This change ...
4 years ago (2016-11-29 21:11:01 UTC) #15
foolip
https://codereview.chromium.org/2530883002/diff/40001/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp File third_party/WebKit/Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/2530883002/diff/40001/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp#newcode1198 third_party/WebKit/Source/core/html/HTMLMediaElement.cpp:1198: m_webMediaPlayer->enteredFullscreen(); On 2016/11/29 21:11:00, watk wrote: > On 2016/11/24 ...
4 years ago (2016-11-29 21:52:28 UTC) #16
watk
On 2016/11/29 21:52:28, foolip wrote: > https://codereview.chromium.org/2530883002/diff/40001/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp > File third_party/WebKit/Source/core/html/HTMLMediaElement.cpp (right): > > https://codereview.chromium.org/2530883002/diff/40001/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp#newcode1198 > ...
4 years ago (2016-11-29 22:05:55 UTC) #17
foolip
On 2016/11/29 22:05:55, watk wrote: > On 2016/11/29 21:52:28, foolip wrote: > > > https://codereview.chromium.org/2530883002/diff/40001/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp ...
4 years ago (2016-11-29 23:04:32 UTC) #18
foolip
mkwst@ has reviewed the added test, so I'm going to land this now.
4 years ago (2016-11-30 09:27:10 UTC) #20
Mike West
Yup. LGTM.
4 years ago (2016-11-30 09:37:51 UTC) #21
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/2530883002/80001
4 years ago (2016-11-30 10:14:58 UTC) #24
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-11-30 11:51:34 UTC) #27
commit-bot: I haz the power
4 years ago (2016-11-30 11:55:37 UTC) #29
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/527a3270a1a0da47cc48dbd3c9e76c614435b7c6
Cr-Commit-Position: refs/heads/master@{#435223}

Powered by Google App Engine
This is Rietveld 408576698