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

Issue 2756553002: Force the video to go fullscreen when setting persistent video (Closed)

Created:
3 years, 9 months ago by Zhiqiang Zhang (Slow)
Modified:
3 years, 9 months ago
CC:
apacible+watch_chromium.org, blink-reviews, blink-reviews-api_chromium.org, blink-reviews-html_chromium.org, chfremer+watch_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, eric.carlson_apple.com, erickung+watch_chromium.org, feature-media-reviews_chromium.org, fs, gasubic, jam, miu+watch_chromium.org, mlamouri+watch-blink_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, posciak+watch_chromium.org, nessy, Srirama, xjz+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Force the video to go fullscreen when setting persistent video This CL exposes a content API that allows chrome/ to take the take the video element out for fullscreen when the video in fullscreen with custom controls (in which case the video is not the fullscreen element). BUG=698001 Review-Url: https://codereview.chromium.org/2756553002 Cr-Commit-Position: refs/heads/master@{#457573} Committed: https://chromium.googlesource.com/chromium/src/+/8ac49009bba02f67c1ff5382a8caae70f14fec2f

Patch Set 1 #

Patch Set 2 : added tests #

Patch Set 3 : fixed build #

Total comments: 6

Patch Set 4 : fixed tests and build #

Patch Set 5 : fixed tests and build, now only pending review for web_contents_impl.cc #

Total comments: 2

Patch Set 6 : addressed nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+255 lines, -5 lines) Patch
M content/browser/media/media_web_contents_observer.h View 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/media/media_web_contents_observer.cc View 1 chunk +11 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download
M content/common/media/media_player_delegate_messages.h View 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/media/renderer_webmediaplayer_delegate.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/media/renderer_webmediaplayer_delegate.cc View 2 chunks +10 lines, -0 lines 0 comments Download
M content/renderer/media/renderer_webmediaplayer_delegate_browsertest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/media/webmediaplayer_ms.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/media/webmediaplayer_ms.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/media/webmediaplayer_ms_unittest.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M media/blink/webmediaplayer_delegate.h View 1 chunk +4 lines, -0 lines 0 comments Download
M media/blink/webmediaplayer_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M media/blink/webmediaplayer_impl.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M media/blink/webmediaplayer_impl_unittest.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.h View 1 3 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.cpp View 1 3 chunks +25 lines, -1 line 0 comments Download
A third_party/WebKit/Source/core/html/HTMLMediaElementPersistentVideoTest.cpp View 1 2 3 1 chunk +167 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebMediaPlayerClient.h View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (18 generated)
Zhiqiang Zhang (Slow)
+nasko: third_party/WebKit/public/ web_contents_impl.cc media_player_delegate_messages.h For previous discussions, please look at https://codereview.chromium.org/2727153003. This CL is a ...
3 years, 9 months ago (2017-03-15 19:37:19 UTC) #2
liberato (no reviews please)
On 2017/03/15 19:37:19, Zhiqiang Zhang wrote: > +nasko: > third_party/WebKit/public/ > web_contents_impl.cc > media_player_delegate_messages.h > ...
3 years, 9 months ago (2017-03-15 19:39:00 UTC) #3
mlamouri (slow - plz ping)
lgtm
3 years, 9 months ago (2017-03-16 11:52:28 UTC) #4
Zhiqiang Zhang (Slow)
+jochen: any chance you have time to rubber-stamp third_party/Webkit/public and web_contents_impl.cc? For previous discussions, see ...
3 years, 9 months ago (2017-03-16 12:55:41 UTC) #6
Zhiqiang Zhang (Slow)
3 years, 9 months ago (2017-03-16 14:32:30 UTC) #8
Mike West
Is it possible to write tests for this functionality?
3 years, 9 months ago (2017-03-16 15:05:06 UTC) #9
Zhiqiang Zhang (Slow)
On 2017/03/16 at 15:05:06, mkwst wrote: > Is it possible to write tests for this ...
3 years, 9 months ago (2017-03-16 15:08:07 UTC) #10
Zhiqiang Zhang (Slow)
On 2017/03/16 at 15:05:06, mkwst wrote: > Is it possible to write tests for this ...
3 years, 9 months ago (2017-03-16 16:40:57 UTC) #11
Mike West
If mlamouri@ is happy with the tests (and you fix the compilation error :) ), ...
3 years, 9 months ago (2017-03-16 17:38:29 UTC) #20
mlamouri (slow - plz ping)
still lgtm -- thanks for adding tests! :) https://codereview.chromium.org/2756553002/diff/40001/third_party/WebKit/Source/core/html/HTMLMediaElementPersistentVideoTest.cpp File third_party/WebKit/Source/core/html/HTMLMediaElementPersistentVideoTest.cpp (right): https://codereview.chromium.org/2756553002/diff/40001/third_party/WebKit/Source/core/html/HTMLMediaElementPersistentVideoTest.cpp#newcode95 third_party/WebKit/Source/core/html/HTMLMediaElementPersistentVideoTest.cpp:95: simulateBecamePersistentVideo(true); ...
3 years, 9 months ago (2017-03-16 17:44:49 UTC) #21
Zhiqiang Zhang (Slow)
Only pending a review for web_contents_impl.cc now :) https://codereview.chromium.org/2756553002/diff/40001/third_party/WebKit/Source/core/html/HTMLMediaElementPersistentVideoTest.cpp File third_party/WebKit/Source/core/html/HTMLMediaElementPersistentVideoTest.cpp (right): https://codereview.chromium.org/2756553002/diff/40001/third_party/WebKit/Source/core/html/HTMLMediaElementPersistentVideoTest.cpp#newcode95 third_party/WebKit/Source/core/html/HTMLMediaElementPersistentVideoTest.cpp:95: simulateBecamePersistentVideo(true); ...
3 years, 9 months ago (2017-03-16 18:08:26 UTC) #22
jochen (gone - plz use gerrit)
lgtm with comment https://codereview.chromium.org/2756553002/diff/80001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/2756553002/diff/80001/content/browser/web_contents/web_contents_impl.cc#newcode5256 content/browser/web_contents/web_contents_impl.cc:5256: media_web_contents_observer()->RequestPersistentVideo(value); would you mind renaming value ...
3 years, 9 months ago (2017-03-16 19:17:47 UTC) #25
Zhiqiang Zhang (Slow)
-nasko -haraken as we got all needed l-g-t-m's
3 years, 9 months ago (2017-03-16 19:34:32 UTC) #27
Zhiqiang Zhang (Slow)
https://codereview.chromium.org/2756553002/diff/80001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/2756553002/diff/80001/content/browser/web_contents/web_contents_impl.cc#newcode5256 content/browser/web_contents/web_contents_impl.cc:5256: media_web_contents_observer()->RequestPersistentVideo(value); On 2017/03/16 at 19:17:47, jochen wrote: > would ...
3 years, 9 months ago (2017-03-16 19:44:10 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/2756553002/100001
3 years, 9 months ago (2017-03-16 19:44:10 UTC) #31
commit-bot: I haz the power
3 years, 9 months ago (2017-03-16 21:52:27 UTC) #34
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/8ac49009bba02f67c1ff5382a8ca...

Powered by Google App Engine
This is Rietveld 408576698