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

Issue 2353063005: Refactor ContentViewClient (1/6) (Closed)

Created:
4 years, 3 months ago by Jinsuk Kim
Modified:
4 years, 2 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, Peter Beverloo, posciak+watch_chromium.org, avayvod+watch_chromium.org, mdjones+watch_chromium.org, donnd+watch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org, jochen+watch_chromium.org, halliwell+watch_chromium.org, lcwu+watch_chromium.org, alokp+watch_chromium.org, android-webview-reviews_chromium.org, mlamouri+watch-media_chromium.org, no sievers
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor ContentViewClient (1/6) This aims to break down the interface ContentViewClient and move its methods to more specific ones according to their functionalities. Please see the bug description for more details. Moves following methods to WebContentsDelegateAndroid: - getContentVideoViewEmbedder - shouldBlockMediaRequest Passes through ContentViewCore contstructor: - getProductVersion BUG=620172 NOTRY=true NOPRESUBMIT=true Committed: https://crrev.com/517f915d980c42abe234e5614fd8a7d284d5f890 Cr-Commit-Position: refs/heads/master@{#421750}

Patch Set 1 #

Patch Set 2 : fix tests #

Total comments: 25

Patch Set 3 : rebased #

Total comments: 14

Patch Set 4 : addressed comments #

Total comments: 1

Patch Set 5 : cast to activity #

Unified diffs Side-by-side diffs Delta from patch set Stats (+396 lines, -309 lines) Patch
M android_webview/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A android_webview/java/src/org/chromium/android_webview/AwContentVideoViewEmbedder.java View 1 1 chunk +102 lines, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java View 1 3 chunks +1 line, -132 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 2 3 chunks +3 lines, -2 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java View 1 2 4 chunks +64 lines, -5 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanel.java View 1 3 chunks +0 lines, -22 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelContent.java View 1 2 3 4 chunks +8 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java View 1 2 5 chunks +4 lines, -40 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tab/TabWebContentsDelegateAndroid.java View 1 2 3 4 3 chunks +37 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShell.java View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelEventFilterTest.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchFakeServer.java View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManagerTest.java View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchTapEventTest.java View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/input/SelectPopupOtherContentViewTest.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chromecast/browser/android/apk/src/org/chromium/chromecast/shell/CastShellActivity.java View 1 2 3 2 chunks +0 lines, -10 lines 0 comments Download
M chromecast/browser/android/apk/src/org/chromium/chromecast/shell/CastWindowAndroid.java View 1 2 3 4 4 chunks +13 lines, -2 lines 0 comments Download
M chromecast/browser/android/cast_window_android.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chromecast/browser/android/cast_window_android.cc View 1 2 3 3 chunks +10 lines, -2 lines 0 comments Download
M components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/WebContentsDelegateAndroid.java View 1 2 2 chunks +16 lines, -0 lines 0 comments Download
M components/web_contents_delegate_android/web_contents_delegate_android.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M components/web_contents_delegate_android/web_contents_delegate_android.cc View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
M content/browser/android/content_video_view.h View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M content/browser/android/content_video_view.cc View 1 2 3 3 chunks +7 lines, -2 lines 0 comments Download
M content/browser/android/content_view_core_impl.h View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 1 chunk +0 lines, -10 lines 0 comments Download
M content/browser/media/android/browser_media_player_manager.cc View 1 2 2 chunks +13 lines, -8 lines 0 comments Download
M content/browser/media/android/browser_surface_view_manager.cc View 1 2 2 chunks +9 lines, -3 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java View 1 2 3 chunks +18 lines, -3 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewClient.java View 2 chunks +0 lines, -20 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 4 chunks +4 lines, -11 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/PopupZoomerTest.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/public/browser/web_contents_delegate.h View 1 2 3 4 2 chunks +11 lines, -0 lines 0 comments Download
M content/public/browser/web_contents_delegate.cc View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M content/shell/android/java/src/org/chromium/content_shell/Shell.java View 1 2 4 chunks +21 lines, -1 line 0 comments Download
M content/shell/android/java/src/org/chromium/content_shell/ShellManager.java View 3 chunks +1 line, -23 lines 0 comments Download
M content/shell/browser/shell.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/shell/browser/shell_android.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 77 (47 generated)
Jinsuk Kim
4 years, 2 months ago (2016-09-26 10:47:01 UTC) #25
boliu
reviewed android_webview, content, components mostly minor things https://codereview.chromium.org/2353063005/diff/140001/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java File android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java (right): https://codereview.chromium.org/2353063005/diff/140001/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java#newcode292 android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java:292: public void ...
4 years, 2 months ago (2016-09-26 21:25:25 UTC) #26
Jinsuk Kim
https://codereview.chromium.org/2353063005/diff/140001/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java File android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java (right): https://codereview.chromium.org/2353063005/diff/140001/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java#newcode292 android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java:292: public void enterFullscreen() { On 2016/09/26 21:25:24, boliu wrote: ...
4 years, 2 months ago (2016-09-27 10:08:59 UTC) #28
boliu
https://codereview.chromium.org/2353063005/diff/140001/content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java File content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java (right): https://codereview.chromium.org/2353063005/diff/140001/content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java#newcode116 content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java:116: private static final ContentVideoViewEmbedder NULL_VIDEO_EMBEDDER = On 2016/09/27 10:08:59, ...
4 years, 2 months ago (2016-09-27 17:24:44 UTC) #29
Jinsuk Kim
On 2016/09/27 17:24:44, boliu wrote: > https://codereview.chromium.org/2353063005/diff/140001/content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java > File > content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java > (right): > > ...
4 years, 2 months ago (2016-09-27 22:17:44 UTC) #30
boliu
On 2016/09/27 22:17:44, Jinsuk wrote: > On 2016/09/27 17:24:44, boliu wrote: > > > https://codereview.chromium.org/2353063005/diff/140001/content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java ...
4 years, 2 months ago (2016-09-27 22:19:00 UTC) #31
Jinsuk Kim
nyquist@: Please review changes in chrome/
4 years, 2 months ago (2016-09-27 22:20:26 UTC) #32
Jinsuk Kim
creis@chromium.org: Please review changes in content/public (2 new interface in WebContentsDelegate) and content/shell halliwell@chromium.org: Please ...
4 years, 2 months ago (2016-09-27 22:33:58 UTC) #35
boliu
scanned through chrome and chromecast too, I probably shoulda done that in the first place. ...
4 years, 2 months ago (2016-09-27 23:28:45 UTC) #36
Simeon
I was summoned by halliwell@ to help look at the Java stuff in chromecast/ https://codereview.chromium.org/2353063005/diff/180001/chromecast/browser/android/apk/src/org/chromium/chromecast/shell/CastShellActivity.java ...
4 years, 2 months ago (2016-09-28 00:24:52 UTC) #38
Jinsuk Kim
On 2016/09/28 00:24:52, Simeon wrote: > I was summoned by halliwell@ to help look at ...
4 years, 2 months ago (2016-09-28 00:49:00 UTC) #39
Jinsuk Kim
> > > > And of course, create a private member for j_content_video_view_embedder_ in > ...
4 years, 2 months ago (2016-09-28 01:09:11 UTC) #40
boliu
On 2016/09/28 01:09:11, Jinsuk wrote: > > > > > > And of course, create ...
4 years, 2 months ago (2016-09-28 01:14:31 UTC) #41
Jinsuk Kim
On 2016/09/28 01:14:31, boliu wrote: > On 2016/09/28 01:09:11, Jinsuk wrote: > > > > ...
4 years, 2 months ago (2016-09-28 01:32:35 UTC) #42
Jinsuk Kim
https://codereview.chromium.org/2353063005/diff/180001/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelContent.java File chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelContent.java (right): https://codereview.chromium.org/2353063005/diff/180001/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelContent.java#newcode213 chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelContent.java:213: return new ContentViewCore(activity, ""); On 2016/09/27 23:28:45, boliu wrote: ...
4 years, 2 months ago (2016-09-28 03:58:52 UTC) #43
Simeon
On 2016/09/28 03:58:52, Jinsuk wrote: > https://codereview.chromium.org/2353063005/diff/180001/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelContent.java > File > chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelContent.java > (right): > > ...
4 years, 2 months ago (2016-09-28 16:12:22 UTC) #44
Simeon
https://codereview.chromium.org/2353063005/diff/200001/chromecast/browser/android/apk/src/org/chromium/chromecast/shell/CastWindowAndroid.java File chromecast/browser/android/apk/src/org/chromium/chromecast/shell/CastWindowAndroid.java (right): https://codereview.chromium.org/2353063005/diff/200001/chromecast/browser/android/apk/src/org/chromium/chromecast/shell/CastWindowAndroid.java#newcode166 chromecast/browser/android/apk/src/org/chromium/chromecast/shell/CastWindowAndroid.java:166: return new ActivityContentVideoViewEmbedder((CastShellActivity) getContext()); I think you should only ...
4 years, 2 months ago (2016-09-28 16:12:36 UTC) #45
nyquist
chrome lgtm
4 years, 2 months ago (2016-09-28 17:36:41 UTC) #46
Charlie Reis
RS LGTM for content/public, based on boliu's review.
4 years, 2 months ago (2016-09-28 21:13:45 UTC) #47
halliwell
On 2016/09/28 21:13:45, Charlie Reis wrote: > RS LGTM for content/public, based on boliu's review. ...
4 years, 2 months ago (2016-09-28 21:37:24 UTC) #48
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/2353063005/240001
4 years, 2 months ago (2016-09-29 04:44:13 UTC) #60
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/269311)
4 years, 2 months ago (2016-09-29 04:49:58 UTC) #62
boliu
On 2016/09/29 04:49:58, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 2 months ago (2016-09-29 04:53:08 UTC) #63
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/2353063005/240001
4 years, 2 months ago (2016-09-29 04:55:48 UTC) #66
boliu
err.... oops, should be NOPRESUBMIT=true
4 years, 2 months ago (2016-09-29 05:04:39 UTC) #67
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/269320)
4 years, 2 months ago (2016-09-29 05:05:26 UTC) #69
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/2353063005/240001
4 years, 2 months ago (2016-09-29 05:07:59 UTC) #72
commit-bot: I haz the power
Committed patchset #5 (id:240001)
4 years, 2 months ago (2016-09-29 05:10:15 UTC) #74
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/517f915d980c42abe234e5614fd8a7d284d5f890 Cr-Commit-Position: refs/heads/master@{#421750}
4 years, 2 months ago (2016-09-29 05:15:04 UTC) #76
Jinsuk Kim
4 years, 2 months ago (2016-09-29 05:15:48 UTC) #77
Message was sent while issue was closed.
On 2016/09/29 05:04:39, boliu wrote:
> err.... oops, should be NOPRESUBMIT=true

Thanks for the tip!

Powered by Google App Engine
This is Rietveld 408576698