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

Issue 2556573003: Media: lock orientation when <video> goes fullscreen. (Closed)

Created:
4 years ago by mlamouri (slow - plz ping)
Modified:
4 years ago
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, fs, gasubic, mlamouri+watch-blink_chromium.org, nessy, Srirama, vcarbune.chromium
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Media: lock orientation when <video> goes fullscreen. The orientation lock will: - match the video aspect ratio; - not apply when the Frame is attempting to lock the screen orientation. BUG=326572 Committed: https://crrev.com/f7a1a35656d44a09d2cf9e5f8bba484f7a5fb378 Cr-Commit-Position: refs/heads/master@{#438508}

Patch Set 1 #

Patch Set 2 : .. #

Patch Set 3 : rebased #

Patch Set 4 : with unit tests #

Total comments: 32

Patch Set 5 : review comments and integration tests #

Total comments: 4

Patch Set 6 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+862 lines, -1 line) Patch
M content/public/android/BUILD.gn View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
A content/public/android/javatests/src/org/chromium/content/browser/VideoFullscreenOrientationLockTest.java View 1 2 3 4 5 1 chunk +147 lines, -0 lines 0 comments Download
M content/public/test/android/javatests/src/org/chromium/content/browser/test/util/DOMUtils.java View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download
A content/test/data/media/video-player.html View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/shadow/MediaControls.h View 1 2 3 3 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/shadow/MediaControls.cpp View 1 2 3 4 4 chunks +13 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/html/shadow/MediaControlsOrientationLockDelegate.h View 1 2 3 4 1 chunk +93 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/html/shadow/MediaControlsOrientationLockDelegate.cpp View 1 2 3 4 5 1 chunk +151 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/html/shadow/MediaControlsOrientationLockDelegateTest.cpp View 1 2 3 4 1 chunk +421 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 36 (23 generated)
mlamouri (slow - plz ping)
+zqzhang@ for local reviews and tests :) +foolip@ for OWNER review I will add integration ...
4 years ago (2016-12-12 17:20:56 UTC) #6
foolip
Some nits. I didn't review the test very carefully, so more attention there would be ...
4 years ago (2016-12-12 23:16:05 UTC) #9
DaleCurtis
https://codereview.chromium.org/2556573003/diff/60001/third_party/WebKit/Source/core/html/shadow/MediaControlsOrientationLockDelegate.cpp File third_party/WebKit/Source/core/html/shadow/MediaControlsOrientationLockDelegate.cpp (right): https://codereview.chromium.org/2556573003/diff/60001/third_party/WebKit/Source/core/html/shadow/MediaControlsOrientationLockDelegate.cpp#newcode112 third_party/WebKit/Source/core/html/shadow/MediaControlsOrientationLockDelegate.cpp:112: MediaControlsOrientationLockDelegate::computeOrientationLock() const { Doesn't this need to know the ...
4 years ago (2016-12-12 23:25:14 UTC) #11
mlamouri (slow - plz ping)
https://codereview.chromium.org/2556573003/diff/60001/third_party/WebKit/Source/core/html/shadow/MediaControlsOrientationLockDelegate.cpp File third_party/WebKit/Source/core/html/shadow/MediaControlsOrientationLockDelegate.cpp (right): https://codereview.chromium.org/2556573003/diff/60001/third_party/WebKit/Source/core/html/shadow/MediaControlsOrientationLockDelegate.cpp#newcode35 third_party/WebKit/Source/core/html/shadow/MediaControlsOrientationLockDelegate.cpp:35: document().addEventListener(EventTypeNames::webkitfullscreenchange, this, On 2016/12/12 at 23:16:05, foolip wrote: > ...
4 years ago (2016-12-13 10:25:17 UTC) #12
foolip
https://codereview.chromium.org/2556573003/diff/60001/third_party/WebKit/Source/core/html/shadow/MediaControlsOrientationLockDelegate.cpp File third_party/WebKit/Source/core/html/shadow/MediaControlsOrientationLockDelegate.cpp (right): https://codereview.chromium.org/2556573003/diff/60001/third_party/WebKit/Source/core/html/shadow/MediaControlsOrientationLockDelegate.cpp#newcode35 third_party/WebKit/Source/core/html/shadow/MediaControlsOrientationLockDelegate.cpp:35: document().addEventListener(EventTypeNames::webkitfullscreenchange, this, On 2016/12/13 10:25:17, mlamouri wrote: > On ...
4 years ago (2016-12-13 10:35:40 UTC) #13
Zhiqiang Zhang (Slow)
lgtm % nits, plus sharing the concern with foolip@ about webkitenteredfullscreen. Great tests! https://codereview.chromium.org/2556573003/diff/60001/third_party/WebKit/Source/core/html/shadow/MediaControlsOrientationLockDelegate.cpp File ...
4 years ago (2016-12-13 11:53:29 UTC) #14
mlamouri (slow - plz ping)
Comments applied. PTAL. Given that I got l-g-t-m. I assume that if I don't hear ...
4 years ago (2016-12-13 21:15:17 UTC) #18
mlamouri (slow - plz ping)
+tedchoc@ for content/public/*/android/
4 years ago (2016-12-13 21:16:27 UTC) #20
Ted C
lgtm ... the button position logic scares me, but I'll assume we did this because ...
4 years ago (2016-12-13 21:34:05 UTC) #21
mlamouri (slow - plz ping)
For the click, I spent a long time trying various solutions. My canary was running ...
4 years ago (2016-12-13 21:54:19 UTC) #24
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/2556573003/100001
4 years ago (2016-12-14 13:57:09 UTC) #31
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years ago (2016-12-14 14:03:04 UTC) #34
commit-bot: I haz the power
4 years ago (2016-12-14 14:05:00 UTC) #36
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/f7a1a35656d44a09d2cf9e5f8bba484f7a5fb378
Cr-Commit-Position: refs/heads/master@{#438508}

Powered by Google App Engine
This is Rietveld 408576698