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

Issue 414423002: Removing ContentViewCore dependencies from few functions which acts as direct wrapper to WebContents (Closed)

Created:
6 years, 5 months ago by AKVT
Modified:
6 years, 4 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, shatch
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

In the current Android code structure, ContentViewCore is just acting as a wrapper to many WebContents functions. In this patch we are trying to position the WebContents functionalities to web_contents_android file from ContentViewCoreImpl to make it functionally readable. Ensuring there is a one-to-one mapping between WebContents Java and native counterparts. BUG=398263 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289261

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fixed review comments and ignored RWHVA functions from this patch #

Total comments: 4

Patch Set 3 : Removed RVHI functions from this patch. #

Patch Set 4 : Fixed few nits and new line issues. #

Total comments: 2

Patch Set 5 : Restructured WillHandleDeferAfterResponseStarted and DidDeferAfterResponseStarted APIs. #

Total comments: 13

Patch Set 6 : Removed NavigationTransitionDelegate interface from ContentViewCore. #

Total comments: 4

Patch Set 7 : Added helper function for redundant codes. #

Patch Set 8 : Formatted native file changes to correct inclusion order. #

Total comments: 6

Patch Set 9 : Fixed review comments and added forward declaration of Class. #

Patch Set 10 : Fixed include order under flag and removed unwanted headers. #

Total comments: 3

Patch Set 11 : Removed unnecessary virtual function. #

Patch Set 12 : Removed unwanted forward class declarations. #

Patch Set 13 : Rebased the patch. #

Total comments: 2

Patch Set 14 : Removed setHasPendingNavigationTransitionForTesting from CVC. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+337 lines, -250 lines) Patch
M content/browser/android/content_view_core_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +0 lines, -23 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +2 lines, -109 lines 0 comments Download
M content/browser/web_contents/web_contents_android.h View 1 2 3 4 5 6 7 8 2 chunks +21 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_android.cc View 1 2 3 4 5 6 7 8 9 3 chunks +106 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +8 lines, -7 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 15 chunks +20 lines, -99 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java View 1 2 3 4 5 6 7 8 4 chunks +81 lines, -0 lines 0 comments Download
A content/public/android/java/src/org/chromium/content_public/browser/NavigationTransitionDelegate.java View 1 2 3 4 5 6 7 8 1 chunk +42 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content_public/browser/WebContents.java View 1 2 3 4 5 6 7 8 1 chunk +40 lines, -0 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/TransitionTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +12 lines, -12 lines 0 comments Download

Messages

Total messages: 41 (0 generated)
AKVT
@Yaron & Ted C PTAL
6 years, 5 months ago (2014-07-26 17:38:05 UTC) #1
Yaron
https://codereview.chromium.org/414423002/diff/1/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (left): https://codereview.chromium.org/414423002/diff/1/content/browser/android/content_view_core_impl.cc#oldcode1166 content/browser/android/content_view_core_impl.cc:1166: RenderWidgetHostViewAndroid* rwhv = GetRenderWidgetHostViewAndroid(); Ted, feel free to disagree ...
6 years, 4 months ago (2014-07-29 00:05:58 UTC) #2
AKVT
https://codereview.chromium.org/414423002/diff/1/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (left): https://codereview.chromium.org/414423002/diff/1/content/browser/android/content_view_core_impl.cc#oldcode1166 content/browser/android/content_view_core_impl.cc:1166: RenderWidgetHostViewAndroid* rwhv = GetRenderWidgetHostViewAndroid(); On 2014/07/29 00:05:58, Yaron wrote: ...
6 years, 4 months ago (2014-07-29 04:01:31 UTC) #3
Ted C
https://codereview.chromium.org/414423002/diff/1/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (left): https://codereview.chromium.org/414423002/diff/1/content/browser/android/content_view_core_impl.cc#oldcode1166 content/browser/android/content_view_core_impl.cc:1166: RenderWidgetHostViewAndroid* rwhv = GetRenderWidgetHostViewAndroid(); On 2014/07/29 00:05:58, Yaron wrote: ...
6 years, 4 months ago (2014-07-30 17:46:59 UTC) #4
AKVT
@Yaron and Ted, I removed RWHVA functionalities here. Will take care as separate patch. PTAL
6 years, 4 months ago (2014-08-01 15:39:28 UTC) #5
Yaron
please update the cl description to further explain what you're doing. Also add a BUG= ...
6 years, 4 months ago (2014-08-01 16:21:12 UTC) #6
AKVT
https://codereview.chromium.org/414423002/diff/20001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (left): https://codereview.chromium.org/414423002/diff/20001/content/browser/android/content_view_core_impl.cc#oldcode822 content/browser/android/content_view_core_impl.cc:822: void ContentViewCoreImpl::SelectPopupMenuItems(JNIEnv* env, jobject obj, On 2014/08/01 16:21:12, Yaron ...
6 years, 4 months ago (2014-08-01 17:09:59 UTC) #7
Ted C
https://codereview.chromium.org/414423002/diff/20001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (left): https://codereview.chromium.org/414423002/diff/20001/content/browser/android/content_view_core_impl.cc#oldcode822 content/browser/android/content_view_core_impl.cc:822: void ContentViewCoreImpl::SelectPopupMenuItems(JNIEnv* env, jobject obj, On 2014/08/01 17:09:58, AKV ...
6 years, 4 months ago (2014-08-01 17:26:21 UTC) #8
AKVT
@Ted and Yaron PTAL https://codereview.chromium.org/414423002/diff/20001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (left): https://codereview.chromium.org/414423002/diff/20001/content/browser/android/content_view_core_impl.cc#oldcode822 content/browser/android/content_view_core_impl.cc:822: void ContentViewCoreImpl::SelectPopupMenuItems(JNIEnv* env, jobject obj, ...
6 years, 4 months ago (2014-08-02 10:03:59 UTC) #9
Yaron
+shatch cc who wrote the original cl https://codereview.chromium.org/414423002/diff/60001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/414423002/diff/60001/content/browser/android/content_view_core_impl.cc#newcode1556 content/browser/android/content_view_core_impl.cc:1556: bool ContentViewCoreImpl::WillHandleDeferAfterResponseStarted() ...
6 years, 4 months ago (2014-08-04 17:08:30 UTC) #10
AKVT
PTAL https://codereview.chromium.org/414423002/diff/60001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/414423002/diff/60001/content/browser/android/content_view_core_impl.cc#newcode1556 content/browser/android/content_view_core_impl.cc:1556: bool ContentViewCoreImpl::WillHandleDeferAfterResponseStarted() { On 2014/08/04 17:08:30, Yaron wrote: ...
6 years, 4 months ago (2014-08-05 13:58:43 UTC) #11
shatch
+oysteine cc I think you also need to make some changes to TransitionTest.java to reflect ...
6 years, 4 months ago (2014-08-05 14:54:24 UTC) #12
AKVT
@Yaron and shatch, Please share your opinion after seeing my inline comments. https://codereview.chromium.org/414423002/diff/80001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java File content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java ...
6 years, 4 months ago (2014-08-05 16:07:24 UTC) #13
AKVT
On 2014/08/05 14:54:24, shatch (OOO til Nov) wrote: > +oysteine cc > > I think ...
6 years, 4 months ago (2014-08-05 16:20:47 UTC) #14
Yaron
https://codereview.chromium.org/414423002/diff/80001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java File content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java (left): https://codereview.chromium.org/414423002/diff/80001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#oldcode366 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:366: private NavigationTransitionDelegate mNavigationTransitionDelegate = null; On 2014/08/05 16:07:23, AKV ...
6 years, 4 months ago (2014-08-06 00:35:45 UTC) #15
AKVT
@Yaron PTAL, I have moved NavigationTransitionDelegate interface to new file inside content_public due to build ...
6 years, 4 months ago (2014-08-06 13:41:22 UTC) #16
Yaron
getting close. You'll need a separate OWNER for web_contents_impl.cc https://codereview.chromium.org/414423002/diff/100001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/414423002/diff/100001/content/browser/web_contents/web_contents_impl.cc#newcode2439 content/browser/web_contents/web_contents_impl.cc:2439: ...
6 years, 4 months ago (2014-08-07 01:20:44 UTC) #17
oystein (OOO til 10th of July)
Note that some of the relocated functions will change once this shortly lands: https://codereview.chromium.org/435833002 I'll ...
6 years, 4 months ago (2014-08-07 01:31:32 UTC) #18
AKVT
@Yaron as suggested I fixed those issues. PTAL @sky PTAL web_contents_impl changes. @Oystein - Thanks ...
6 years, 4 months ago (2014-08-07 07:37:07 UTC) #19
AKVT
PTAL. Corrected some formatting issues.
6 years, 4 months ago (2014-08-07 10:52:17 UTC) #20
sky
https://codereview.chromium.org/414423002/diff/140001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/414423002/diff/140001/content/browser/web_contents/web_contents_impl.cc#newcode2439 content/browser/web_contents/web_contents_impl.cc:2439: web_contents_android->DidStartNavigationTransitionForFrame(render_frame_id); I wouldn't bother with the local variable for ...
6 years, 4 months ago (2014-08-07 16:17:31 UTC) #21
AKVT
@sky I have fixed review comments. @avi PTAL web_contents.h @Oystein I have rebased the patch ...
6 years, 4 months ago (2014-08-08 15:08:25 UTC) #22
Avi (use Gerrit)
https://codereview.chromium.org/414423002/diff/180001/content/public/browser/web_contents.h File content/public/browser/web_contents.h (right): https://codereview.chromium.org/414423002/diff/180001/content/public/browser/web_contents.h#newcode583 content/public/browser/web_contents.h:583: virtual WebContentsAndroid* GetWebContentsAndroid() = 0; I don't get the ...
6 years, 4 months ago (2014-08-08 15:23:25 UTC) #23
AKVT
https://codereview.chromium.org/414423002/diff/180001/content/public/browser/web_contents.h File content/public/browser/web_contents.h (right): https://codereview.chromium.org/414423002/diff/180001/content/public/browser/web_contents.h#newcode583 content/public/browser/web_contents.h:583: virtual WebContentsAndroid* GetWebContentsAndroid() = 0; On 2014/08/08 15:23:25, Avi ...
6 years, 4 months ago (2014-08-08 16:15:51 UTC) #24
Avi (use Gerrit)
https://codereview.chromium.org/414423002/diff/180001/content/public/browser/web_contents.h File content/public/browser/web_contents.h (right): https://codereview.chromium.org/414423002/diff/180001/content/public/browser/web_contents.h#newcode583 content/public/browser/web_contents.h:583: virtual WebContentsAndroid* GetWebContentsAndroid() = 0; On 2014/08/08 16:15:51, AKV ...
6 years, 4 months ago (2014-08-08 16:26:04 UTC) #25
AKVT
On 2014/08/08 16:26:04, Avi wrote: > https://codereview.chromium.org/414423002/diff/180001/content/public/browser/web_contents.h > File content/public/browser/web_contents.h (right): > > https://codereview.chromium.org/414423002/diff/180001/content/public/browser/web_contents.h#newcode583 > ...
6 years, 4 months ago (2014-08-08 17:15:49 UTC) #26
AKVT
@sky PTAL, I have fixed review comments.
6 years, 4 months ago (2014-08-08 17:34:07 UTC) #27
oystein (OOO til 10th of July)
On 2014/08/08 15:08:25, AKV wrote: > @Oystein I have rebased the patch after dependent patch ...
6 years, 4 months ago (2014-08-08 17:38:21 UTC) #28
AKVT
On 2014/08/08 17:38:21, Oystein wrote: > On 2014/08/08 15:08:25, AKV wrote: > > @Oystein I ...
6 years, 4 months ago (2014-08-08 18:04:53 UTC) #29
Yaron
On 2014/08/08 16:26:04, Avi wrote: > https://codereview.chromium.org/414423002/diff/180001/content/public/browser/web_contents.h > File content/public/browser/web_contents.h (right): > > https://codereview.chromium.org/414423002/diff/180001/content/public/browser/web_contents.h#newcode583 > ...
6 years, 4 months ago (2014-08-08 20:29:39 UTC) #30
Avi (use Gerrit)
On 2014/08/08 20:29:39, Yaron wrote: > If you want so simplify, I suppose we could ...
6 years, 4 months ago (2014-08-08 21:11:48 UTC) #31
AKVT
On 2014/08/08 20:29:39, Yaron wrote: > On 2014/08/08 16:26:04, Avi wrote: > > > https://codereview.chromium.org/414423002/diff/180001/content/public/browser/web_contents.h ...
6 years, 4 months ago (2014-08-10 13:32:46 UTC) #32
Avi (use Gerrit)
I'm happier with this patch set (12). content/browser/web_contents LGTM. IMO you still should clean up ...
6 years, 4 months ago (2014-08-11 16:51:22 UTC) #33
AKVT
On 2014/08/11 16:51:22, Avi wrote: > I'm happier with this patch set (12). content/browser/web_contents LGTM. ...
6 years, 4 months ago (2014-08-11 16:58:45 UTC) #34
AKVT
Rebased patchset PTAL.
6 years, 4 months ago (2014-08-11 17:27:24 UTC) #35
AKVT
@Yaron & Ted PTAL
6 years, 4 months ago (2014-08-12 03:04:48 UTC) #36
Yaron
lgtm https://codereview.chromium.org/414423002/diff/240001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java File content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java (right): https://codereview.chromium.org/414423002/diff/240001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode3000 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:3000: void setHasPendingNavigationTransitionForTesting() { Nit: please remove this accessor ...
6 years, 4 months ago (2014-08-12 17:37:04 UTC) #37
AKVT
The CQ bit was checked by ajith.v@samsung.com
6 years, 4 months ago (2014-08-13 07:10:11 UTC) #38
AKVT
PTAL https://codereview.chromium.org/414423002/diff/240001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java File content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java (right): https://codereview.chromium.org/414423002/diff/240001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode3000 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:3000: void setHasPendingNavigationTransitionForTesting() { On 2014/08/12 17:37:04, Yaron wrote: ...
6 years, 4 months ago (2014-08-13 07:11:16 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajith.v@samsung.com/414423002/260001
6 years, 4 months ago (2014-08-13 07:11:36 UTC) #40
commit-bot: I haz the power
6 years, 4 months ago (2014-08-13 10:35:02 UTC) #41
Message was sent while issue was closed.
Change committed as 289261

Powered by Google App Engine
This is Rietveld 408576698