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

Issue 292573004: Don't use webmediaplayer to FullscreenController about fullscreen change (Closed)

Created:
6 years, 7 months ago by qinmin
Modified:
6 years, 5 months ago
Reviewers:
michaeln, jam, trchen, boliu
CC:
chromium-reviews, fischman+watch_chromium.org, avayvod+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org, android-webview-reviews_chromium.org
Visibility:
Public.

Description

Don't use webmediaplayer to FullscreenController about fullscreen change This is cloned from https://codereview.chromium.org/275163002/ The previous change will break webview because AwWebContentsDelegate::ToggleFullscreenModeForTab is not implemented. This change passes a runtime switch to blink to disable fullscreen for non-media elements for android webview. when AwWebContentsDelegate::ToggleFullscreenModeForTab is called, android webview will send a FullscreenChanged IPC to finish the will/DidEnterFullscreen event for the media element. blink side CL: https://codereview.chromium.org/290643005/ This CL only impacts android webview BUG=367346 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=281781

Patch Set 1 #

Patch Set 2 : removing content switch #

Total comments: 6

Patch Set 3 : default is_fullscreen_ to false #

Patch Set 4 : addressing boliu's comments #

Total comments: 2

Patch Set 5 : removing the fullscreenchanged IPC #

Total comments: 4

Patch Set 6 : use WasResized() instead of FullscreenChanged() #

Patch Set 7 : Fix testOnShowAndHideCustomViewWithJavascript #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -11 lines) Patch
M android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegate.java View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java View 1 2 3 4 5 6 2 chunks +9 lines, -0 lines 0 comments Download
M android_webview/native/aw_settings.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M android_webview/native/aw_web_contents_delegate.h View 1 chunk +7 lines, -0 lines 0 comments Download
M android_webview/native/aw_web_contents_delegate.cc View 1 2 3 4 5 6 2 chunks +21 lines, -1 line 0 comments Download
M content/browser/media/android/browser_media_player_manager.cc View 1 2 3 4 5 6 2 chunks +2 lines, -4 lines 0 comments Download
M content/renderer/media/android/webmediaplayer_android.cc View 1 2 3 4 5 6 7 2 chunks +1 line, -6 lines 0 comments Download
M content/renderer/web_preferences.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/common/webpreferences.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M webkit/common/webpreferences.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 36 (0 generated)
qinmin
PTAL
6 years, 7 months ago (2014-05-16 20:41:35 UTC) #1
boliu
No need for switches and whatnot. Just modify aw_settings.cc
6 years, 7 months ago (2014-05-16 20:43:18 UTC) #2
boliu
Oh wait, I'm mixing up RuntimeFeatures with WebSettings. But I think you can still just ...
6 years, 7 months ago (2014-05-16 21:16:20 UTC) #3
trchen
On 2014/05/16 21:16:20, boliu wrote: > Oh wait, I'm mixing up RuntimeFeatures with WebSettings. But ...
6 years, 7 months ago (2014-05-16 21:19:33 UTC) #4
boliu
On 2014/05/16 21:19:33, trchen wrote: > On 2014/05/16 21:16:20, boliu wrote: > > Oh wait, ...
6 years, 7 months ago (2014-05-16 21:21:44 UTC) #5
trchen
On 2014/05/16 21:21:44, boliu wrote: > On 2014/05/16 21:19:33, trchen wrote: > > On 2014/05/16 ...
6 years, 7 months ago (2014-05-16 21:25:03 UTC) #6
qinmin
OK, switched to websettings from content switch. Since webview has its own test suites, so ...
6 years, 7 months ago (2014-05-17 01:28:28 UTC) #7
boliu
https://codereview.chromium.org/292573004/diff/20001/android_webview/native/aw_web_contents_delegate.cc File android_webview/native/aw_web_contents_delegate.cc (right): https://codereview.chromium.org/292573004/diff/20001/android_webview/native/aw_web_contents_delegate.cc#newcode50 android_webview/native/aw_web_contents_delegate.cc:50: : WebContentsDelegateAndroid(env, obj) { initialize is_fullscreen_ https://codereview.chromium.org/292573004/diff/20001/android_webview/native/aw_web_contents_delegate.cc#newcode213 android_webview/native/aw_web_contents_delegate.cc:213: web_contents->GetRenderViewHost()->WasResized(); ...
6 years, 7 months ago (2014-05-27 21:45:50 UTC) #8
qinmin
https://codereview.chromium.org/292573004/diff/20001/android_webview/native/aw_web_contents_delegate.cc File android_webview/native/aw_web_contents_delegate.cc (right): https://codereview.chromium.org/292573004/diff/20001/android_webview/native/aw_web_contents_delegate.cc#newcode50 android_webview/native/aw_web_contents_delegate.cc:50: : WebContentsDelegateAndroid(env, obj) { On 2014/05/27 21:45:50, boliu (OOO_back_June_10) ...
6 years, 6 months ago (2014-05-28 17:53:38 UTC) #9
boliu
https://codereview.chromium.org/292573004/diff/20001/android_webview/native/aw_web_contents_delegate.cc File android_webview/native/aw_web_contents_delegate.cc (right): https://codereview.chromium.org/292573004/diff/20001/android_webview/native/aw_web_contents_delegate.cc#newcode213 android_webview/native/aw_web_contents_delegate.cc:213: web_contents->GetRenderViewHost()->WasResized(); On 2014/05/28 17:53:39, qinmin wrote: > Android webview ...
6 years, 6 months ago (2014-06-11 16:16:28 UTC) #10
qinmin
https://codereview.chromium.org/292573004/diff/20001/android_webview/native/aw_web_contents_delegate.cc File android_webview/native/aw_web_contents_delegate.cc (right): https://codereview.chromium.org/292573004/diff/20001/android_webview/native/aw_web_contents_delegate.cc#newcode213 android_webview/native/aw_web_contents_delegate.cc:213: web_contents->GetRenderViewHost()->WasResized(); Ok, changed to use a separate IPC to ...
6 years, 6 months ago (2014-06-13 01:47:31 UTC) #11
boliu
https://codereview.chromium.org/292573004/diff/80001/content/browser/renderer_host/render_view_host_impl.h File content/browser/renderer_host/render_view_host_impl.h (right): https://codereview.chromium.org/292573004/diff/80001/content/browser/renderer_host/render_view_host_impl.h#newcode221 content/browser/renderer_host/render_view_host_impl.h:221: virtual void FullscreenChanged(bool is_fullscreen) OVERRIDE; If you pass is_fullscreen ...
6 years, 6 months ago (2014-06-13 15:50:58 UTC) #12
qinmin
https://codereview.chromium.org/292573004/diff/80001/content/browser/renderer_host/render_view_host_impl.h File content/browser/renderer_host/render_view_host_impl.h (right): https://codereview.chromium.org/292573004/diff/80001/content/browser/renderer_host/render_view_host_impl.h#newcode221 content/browser/renderer_host/render_view_host_impl.h:221: virtual void FullscreenChanged(bool is_fullscreen) OVERRIDE; ok, removed the fullscreen ...
6 years, 6 months ago (2014-06-13 16:40:17 UTC) #13
boliu
lgtm
6 years, 6 months ago (2014-06-13 16:44:02 UTC) #14
qinmin
+jochen for content/ OWNER +michaeln for webkit/ OWNER ptal
6 years, 6 months ago (2014-06-13 16:50:25 UTC) #15
michaeln
> +michaeln for webkit/ OWNER lgtm
6 years, 6 months ago (2014-06-13 17:58:53 UTC) #16
qinmin
+jam@ for content/ OWNERs, jochen is OOO
6 years, 6 months ago (2014-06-16 16:20:04 UTC) #17
jam
https://codereview.chromium.org/292573004/diff/100001/content/public/browser/render_view_host.h File content/public/browser/render_view_host.h (right): https://codereview.chromium.org/292573004/diff/100001/content/public/browser/render_view_host.h#newcode228 content/public/browser/render_view_host.h:228: virtual void FullscreenChanged() = 0; why add this method ...
6 years, 6 months ago (2014-06-16 20:09:06 UTC) #18
boliu
https://codereview.chromium.org/292573004/diff/100001/content/public/browser/render_view_host.h File content/public/browser/render_view_host.h (right): https://codereview.chromium.org/292573004/diff/100001/content/public/browser/render_view_host.h#newcode228 content/public/browser/render_view_host.h:228: virtual void FullscreenChanged() = 0; On 2014/06/16 20:09:06, jam ...
6 years, 6 months ago (2014-06-16 20:12:45 UTC) #19
jam
https://codereview.chromium.org/292573004/diff/100001/content/public/browser/render_view_host.h File content/public/browser/render_view_host.h (right): https://codereview.chromium.org/292573004/diff/100001/content/public/browser/render_view_host.h#newcode228 content/public/browser/render_view_host.h:228: virtual void FullscreenChanged() = 0; On 2014/06/16 20:12:45, boliu ...
6 years, 6 months ago (2014-06-16 22:44:16 UTC) #20
boliu
On 2014/06/16 22:44:16, jam wrote: > https://codereview.chromium.org/292573004/diff/100001/content/public/browser/render_view_host.h > File content/public/browser/render_view_host.h (right): > > https://codereview.chromium.org/292573004/diff/100001/content/public/browser/render_view_host.h#newcode228 > ...
6 years, 6 months ago (2014-06-16 22:49:31 UTC) #21
qinmin
https://codereview.chromium.org/292573004/diff/100001/content/public/browser/render_view_host.h File content/public/browser/render_view_host.h (right): https://codereview.chromium.org/292573004/diff/100001/content/public/browser/render_view_host.h#newcode228 content/public/browser/render_view_host.h:228: virtual void FullscreenChanged() = 0; Done. Reverting back to ...
6 years, 6 months ago (2014-06-16 23:16:18 UTC) #22
jam
lgtm
6 years, 6 months ago (2014-06-17 16:47:01 UTC) #23
qinmin
The CQ bit was checked by qinmin@chromium.org
6 years, 5 months ago (2014-07-03 20:24:26 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/292573004/140001
6 years, 5 months ago (2014-07-03 20:25:17 UTC) #25
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium ...
6 years, 5 months ago (2014-07-03 23:35:33 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-03 23:41:23 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg/builds/202745)
6 years, 5 months ago (2014-07-03 23:41:24 UTC) #28
qinmin
The CQ bit was checked by qinmin@chromium.org
6 years, 5 months ago (2014-07-04 01:43:16 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/292573004/160001
6 years, 5 months ago (2014-07-04 01:44:21 UTC) #30
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium ...
6 years, 5 months ago (2014-07-04 05:29:15 UTC) #31
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-04 05:34:44 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg/builds/202791)
6 years, 5 months ago (2014-07-04 05:34:45 UTC) #33
qinmin
The CQ bit was checked by qinmin@chromium.org
6 years, 5 months ago (2014-07-08 16:39:57 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/292573004/160001
6 years, 5 months ago (2014-07-08 16:40:48 UTC) #35
commit-bot: I haz the power
6 years, 5 months ago (2014-07-08 19:01:19 UTC) #36
Message was sent while issue was closed.
Change committed as 281781

Powered by Google App Engine
This is Rietveld 408576698