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

Issue 13669003: Refactoring ContentVideoViewContextDelegate.java (Closed)

Created:
7 years, 8 months ago by michaelbai
Modified:
7 years, 6 months ago
Reviewers:
joth, qinmin, Yaron
CC:
chromium-reviews, jam, android-webview-reviews_chromium.org, joi+watch-content_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, darin-cc_chromium.org, klundberg+watch_chromium.org, ilevy+watch_chromium.org, jochen+watch_chromium.org, frankf+watch_chromium.org
Visibility:
Public.

Description

Main changes are - Rename ContentVideoViewContextDelegate to ContentVideoViewClient, instead of having the getContext() method, passing the context to ContentVideoView when it is created. - Add getContentVideoViewClient method in ContentViewClient, so it will be created when it actually used. BUG=http://b/8315237 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=204353

Patch Set 1 #

Patch Set 2 : #

Total comments: 11

Patch Set 3 : address comments #

Patch Set 4 : #

Total comments: 8

Patch Set 5 : using weak reference in native side #

Total comments: 34

Patch Set 6 : More change #

Patch Set 7 : #

Total comments: 23

Patch Set 8 : Addressed comments #

Total comments: 4

Patch Set 9 : Sync #

Patch Set 10 : fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+433 lines, -316 lines) Patch
D android_webview/java/src/org/chromium/android_webview/AwContentVideoViewDelegate.java View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -56 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -3 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContentsClient.java View 1 2 3 4 5 6 7 8 4 chunks +36 lines, -1 line 0 comments Download
M build/android/findbugs_filter/findbugs_known_bugs.txt View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java View 1 2 3 4 5 6 7 8 9 3 chunks +9 lines, -4 lines 0 comments Download
M content/browser/android/content_video_view.h View 1 2 3 4 5 6 7 8 4 chunks +18 lines, -7 lines 0 comments Download
M content/browser/android/content_video_view.cc View 1 2 3 4 5 6 7 8 5 chunks +74 lines, -40 lines 0 comments Download
M content/browser/android/content_view_core_impl.h View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +20 lines, -0 lines 0 comments Download
A content/browser/android/media_player_manager_android.h View 1 2 3 4 5 6 7 1 chunk +103 lines, -0 lines 0 comments Download
M content/browser/android/media_player_manager_impl.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/android/media_player_manager_impl.cc View 1 2 3 4 5 6 7 8 12 chunks +28 lines, -12 lines 0 comments Download
A + content/public/android/java/src/org/chromium/content/browser/ActivityContentVideoViewClient.java View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -10 lines 0 comments Download
D content/public/android/java/src/org/chromium/content/browser/ActivityContentVideoViewDelegate.java View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -63 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java View 1 2 3 4 5 6 7 8 21 chunks +83 lines, -93 lines 0 comments Download
A content/public/android/java/src/org/chromium/content/browser/ContentVideoViewClient.java View 1 2 3 4 5 6 7 8 1 chunk +25 lines, -0 lines 0 comments Download
D content/public/android/java/src/org/chromium/content/browser/ContentVideoViewContextDelegate.java View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -21 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewClient.java View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download
M content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellActivity.java View 1 2 3 4 5 6 7 3 chunks +9 lines, -3 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
michaelbai
7 years, 8 months ago (2013-04-04 23:15:30 UTC) #1
joth
https://codereview.chromium.org/13669003/diff/2001/android_webview/java/src/org/chromium/android_webview/AwContentsClient.java File android_webview/java/src/org/chromium/android_webview/AwContentsClient.java (right): https://codereview.chromium.org/13669003/diff/2001/android_webview/java/src/org/chromium/android_webview/AwContentsClient.java#newcode25 android_webview/java/src/org/chromium/android_webview/AwContentsClient.java:25: import android.webkit.WebChromeClient.CustomViewCallback; rather than import, could you use 'WebChromeClient.CustomViewCallback' ...
7 years, 8 months ago (2013-04-05 01:56:40 UTC) #2
michaelbai
https://codereview.chromium.org/13669003/diff/2001/android_webview/java/src/org/chromium/android_webview/AwContentsClient.java File android_webview/java/src/org/chromium/android_webview/AwContentsClient.java (right): https://codereview.chromium.org/13669003/diff/2001/android_webview/java/src/org/chromium/android_webview/AwContentsClient.java#newcode25 android_webview/java/src/org/chromium/android_webview/AwContentsClient.java:25: import android.webkit.WebChromeClient.CustomViewCallback; On 2013/04/05 01:56:40, joth wrote: > rather ...
7 years, 8 months ago (2013-04-05 21:06:56 UTC) #3
joth
https://codereview.chromium.org/13669003/diff/2001/content/browser/android/content_video_view.cc File content/browser/android/content_video_view.cc (right): https://codereview.chromium.org/13669003/diff/2001/content/browser/android/content_video_view.cc#newcode34 content/browser/android/content_video_view.cc:34: void ContentVideoView::CreateContentVideoView( On 2013/04/05 21:06:56, michaelbai wrote: > On ...
7 years, 8 months ago (2013-04-08 18:47:34 UTC) #4
michaelbai
PTAL https://codereview.chromium.org/13669003/diff/13001/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/13669003/diff/13001/content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java#newcode71 content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java:71: private static ContentVideoView sContentVideoView; On 2013/04/08 18:47:34, joth ...
7 years, 8 months ago (2013-04-10 18:27:03 UTC) #5
michaelbai
PTAL, when you have time.
7 years, 8 months ago (2013-04-12 16:09:38 UTC) #6
qinmin
contentVideoView lgtm https://codereview.chromium.org/13669003/diff/33001/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/13669003/diff/33001/content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java#newcode552 content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java:552: private static ContentVideoView createContentVideoView(Context context, move context ...
7 years, 8 months ago (2013-04-12 16:41:09 UTC) #7
joth
Sorry we seem to be circling a bit here, but the 'maybe create video view' ...
7 years, 8 months ago (2013-04-12 17:56:24 UTC) #8
joth
https://codereview.chromium.org/13669003/diff/33001/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/13669003/diff/33001/content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java#newcode555 content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java:555: if (client == null) return null; On 2013/04/12 17:56:24, ...
7 years, 8 months ago (2013-04-13 01:18:35 UTC) #9
michaelbai
Made a lot of changes, PTAL Main changes 1. Make the native ContentVideoView and Weak ...
7 years, 8 months ago (2013-04-18 18:21:58 UTC) #10
joth
Looking good. Sorry this took so long, it fell out of my working set. And ...
7 years, 7 months ago (2013-05-15 22:38:57 UTC) #11
michaelbai
PTAL, sync-ed, but it seemed WebRTC change was reverted. https://codereview.chromium.org/13669003/diff/49001/android_webview/java/src/org/chromium/android_webview/AwContentsClient.java File android_webview/java/src/org/chromium/android_webview/AwContentsClient.java (right): https://codereview.chromium.org/13669003/diff/49001/android_webview/java/src/org/chromium/android_webview/AwContentsClient.java#newcode368 android_webview/java/src/org/chromium/android_webview/AwContentsClient.java:368: ...
7 years, 7 months ago (2013-05-22 18:08:39 UTC) #12
joth
lgtm https://codereview.chromium.org/13669003/diff/49001/content/browser/android/content_video_view.cc File content/browser/android/content_video_view.cc (right): https://codereview.chromium.org/13669003/diff/49001/content/browser/android/content_video_view.cc#newcode48 content/browser/android/content_video_view.cc:48: g_content_video_view = this; On 2013/05/22 18:08:39, michaelbai wrote: ...
7 years, 6 months ago (2013-06-03 21:22:04 UTC) #13
michaelbai
Hi Yaron, Need owner approval for content/shell/android and chrome/android. https://codereview.chromium.org/13669003/diff/62001/android_webview/java/src/org/chromium/android_webview/AwContentsClient.java File android_webview/java/src/org/chromium/android_webview/AwContentsClient.java (right): https://codereview.chromium.org/13669003/diff/62001/android_webview/java/src/org/chromium/android_webview/AwContentsClient.java#newcode9 android_webview/java/src/org/chromium/android_webview/AwContentsClient.java:9: ...
7 years, 6 months ago (2013-06-04 21:55:00 UTC) #14
Yaron
lgtm
7 years, 6 months ago (2013-06-04 22:19:39 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/michaelbai@chromium.org/13669003/69001
7 years, 6 months ago (2013-06-04 22:25:20 UTC) #16
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test on builder ...
7 years, 6 months ago (2013-06-05 14:17:12 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/michaelbai@chromium.org/13669003/90002
7 years, 6 months ago (2013-06-05 17:00:54 UTC) #18
commit-bot: I haz the power
7 years, 6 months ago (2013-06-05 23:26:36 UTC) #19
Message was sent while issue was closed.
Change committed as 204353

Powered by Google App Engine
This is Rietveld 408576698