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

Issue 2103243002: Factor out ContentViewAndroidDelegate (Closed)

Created:
4 years, 5 months ago by Jinsuk Kim
Modified:
4 years, 4 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, Peter Beverloo, jam, darin-cc_chromium.org, android-webview-reviews_chromium.org, jochen+watch_chromium.org, hush (inactive), keishi
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Factor out ContentViewAndroidDelegate Took ContentViewAndroidDelegate out of ContentViewCore so that embedders come with their own implementation of ViewAndroidDelegate. This helps content layer not have to know about Android View/WebView-specific details. BUG=617750 Committed: https://crrev.com/9ee8865d84c2156728f1b9f78fb8f8b812e4ba19 Cr-Commit-Position: refs/heads/master@{#410003}

Patch Set 1 : Split out ContentViewAndroidDelegate #

Total comments: 10

Patch Set 2 : Addressed comments #

Total comments: 4

Patch Set 3 : Rebased #

Total comments: 34

Patch Set 4 : Addressed Comments/Fixed some tests #

Patch Set 5 : ScopedAnchorView #

Total comments: 40

Patch Set 6 : Addressed Comments #

Total comments: 14

Patch Set 7 : Rebased #

Total comments: 2

Patch Set 8 : Addressed comments #

Total comments: 4

Patch Set 9 : Addressed comments/Fixed tests #

Total comments: 4

Patch Set 10 : addressed webview comments #

Patch Set 11 : rebased #

Patch Set 12 : Removed isValidView() #

Total comments: 19

Patch Set 13 : webview issues addressed #

Total comments: 48

Patch Set 14 : Addressed comments chrome/webview #

Total comments: 23

Patch Set 15 : rebased & comments #

Total comments: 9

Patch Set 16 : comments #

Patch Set 17 : removed anchorWidth param #

Total comments: 8

Patch Set 18 : use px values/rebased #

Total comments: 2

Patch Set 19 : s/base/display #

Patch Set 20 : rebased #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+833 lines, -545 lines) Patch
M android_webview/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwAutofillClient.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +8 lines, -5 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 7 chunks +14 lines, -10 lines 0 comments Download
A android_webview/java/src/org/chromium/android_webview/AwViewAndroidDelegate.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +143 lines, -0 lines 0 comments Download
A android_webview/javatests/src/org/chromium/android_webview/test/AwContentsAnchorViewTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +186 lines, -0 lines 0 comments Download
M android_webview/native/aw_autofill_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +5 lines, -0 lines 0 comments Download
M android_webview/native/aw_autofill_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +20 lines, -4 lines 0 comments Download
M android_webview/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopupBridge.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +8 lines, -20 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/autofill/PasswordGenerationPopupBridge.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +13 lines, -26 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelContent.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +34 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/autofill/AutofillTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/input/SelectPopupOtherContentViewTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/android/autofill/autofill_popup_view_android.h View 1 2 3 4 5 8 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/android/autofill/autofill_popup_view_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +24 lines, -12 lines 0 comments Download
M chrome/browser/ui/android/autofill/password_generation_popup_view_android.h View 1 2 3 4 5 8 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/android/autofill/password_generation_popup_view_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +24 lines, -13 lines 0 comments Download
M chromecast/browser/android/apk/src/org/chromium/chromecast/shell/CastWindowAndroid.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/android/content_view_core_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -2 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 13 14 15 16 17 18 19 4 chunks +8 lines, -8 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 14 15 16 17 13 chunks +15 lines, -193 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/input/SelectPopupDropdown.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +3 lines, -16 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreViewAndroidDelegateTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +5 lines, -116 lines 0 comments Download
M content/public/browser/android/content_view_core.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -2 lines 0 comments Download
M content/shell/android/java/src/org/chromium/content_shell/Shell.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -1 line 0 comments Download
M device/power_save_blocker/android/java/src/org/chromium/device/power_save_blocker/PowerSaveBlocker.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +5 lines, -7 lines 0 comments Download
M device/power_save_blocker/power_save_blocker_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +13 lines, -10 lines 0 comments Download
M ui/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +2 lines, -0 lines 0 comments Download
M ui/android/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -0 lines 0 comments Download
M ui/android/java/src/org/chromium/ui/DropdownPopupWindow.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 7 chunks +6 lines, -36 lines 0 comments Download
M ui/android/java/src/org/chromium/ui/autofill/AutofillPopup.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +3 lines, -5 lines 0 comments Download
M ui/android/java/src/org/chromium/ui/base/ViewAndroidDelegate.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +99 lines, -11 lines 0 comments Download
M ui/android/java/src/org/chromium/ui/base/WindowAndroid.java View 1 2 3 4 5 6 2 chunks +0 lines, -10 lines 0 comments Download
M ui/android/ui_android.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ui/android/view_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +47 lines, -6 lines 1 comment Download
M ui/android/view_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +113 lines, -10 lines 0 comments Download
M ui/android/window_android.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -4 lines 0 comments Download
M ui/android/window_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +0 lines, -11 lines 0 comments Download

Messages

Total messages: 152 (70 generated)
Jinsuk Kim
Basic ViewAndroidDelegate impl (ContentViewAndroidDelegate) is still in content layer since it is shared by chrome, ...
4 years, 5 months ago (2016-06-28 19:06:00 UTC) #2
no sievers
+Selim, Ted, see my comment https://codereview.chromium.org/2103243002/diff/20001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/2103243002/diff/20001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode99 android_webview/java/src/org/chromium/android_webview/AwContents.java:99: * continuous build & ...
4 years, 5 months ago (2016-06-28 22:26:10 UTC) #6
no sievers
https://codereview.chromium.org/2103243002/diff/20001/content/public/android/java/src/org/chromium/content/browser/ContentViewAndroidDelegate.java File content/public/android/java/src/org/chromium/content/browser/ContentViewAndroidDelegate.java (right): https://codereview.chromium.org/2103243002/diff/20001/content/public/android/java/src/org/chromium/content/browser/ContentViewAndroidDelegate.java#newcode112 content/public/android/java/src/org/chromium/content/browser/ContentViewAndroidDelegate.java:112: startMargin = containerView.getMeasuredWidth() - Math.round((width + x) * scale); ...
4 years, 5 months ago (2016-06-28 22:31:52 UTC) #7
no sievers
How about this: DropdownPopupWindow gets the logic to scale to DIP and setLayoutParams(). Then the ...
4 years, 5 months ago (2016-06-30 00:49:44 UTC) #8
Jinsuk Kim
On 2016/06/30 00:49:44, sievers wrote: > How about this: > > DropdownPopupWindow gets the logic ...
4 years, 5 months ago (2016-06-30 05:24:25 UTC) #9
Jinsuk Kim
On 2016/06/30 05:24:25, Jinsuk wrote: > On 2016/06/30 00:49:44, sievers wrote: > > How about ...
4 years, 5 months ago (2016-06-30 15:41:56 UTC) #10
Jinsuk Kim
On 2016/06/30 00:49:44, sievers wrote: > How about this: > > DropdownPopupWindow gets the logic ...
4 years, 5 months ago (2016-06-30 16:39:32 UTC) #11
no sievers
On 2016/06/30 16:39:32, Jinsuk wrote: > On 2016/06/30 00:49:44, sievers wrote: > > How about ...
4 years, 5 months ago (2016-06-30 20:57:10 UTC) #12
no sievers
Let me describe more clearly: The native code wants to create popup -> ViewAndroid::acquireAnchorView(...), take ...
4 years, 5 months ago (2016-06-30 21:04:42 UTC) #13
sgurun-gerrit only
>Only WebView needs RenderCoordinates.getScrollX/YPixInt() and can get it from >CVC. I guess I don't quite ...
4 years, 5 months ago (2016-06-30 23:29:37 UTC) #14
no sievers
On 2016/06/30 23:29:37, sgurun wrote: > >Only WebView needs RenderCoordinates.getScrollX/YPixInt() and can get it from ...
4 years, 5 months ago (2016-06-30 23:36:36 UTC) #15
Jinsuk Kim
On 2016/06/30 23:36:36, sievers wrote: > On 2016/06/30 23:29:37, sgurun wrote: > > >Only WebView ...
4 years, 5 months ago (2016-07-01 04:00:34 UTC) #16
no sievers
On 2016/07/01 04:00:34, Jinsuk wrote: > On 2016/06/30 23:36:36, sievers wrote: > > On 2016/06/30 ...
4 years, 5 months ago (2016-07-01 17:28:23 UTC) #17
no sievers
On 2016/07/01 17:28:23, sievers wrote: > On 2016/07/01 04:00:34, Jinsuk wrote: > > On 2016/06/30 ...
4 years, 5 months ago (2016-07-01 17:30:05 UTC) #18
Jinsuk Kim
PTAL. It's not completed yet but I incorporated the basic idea in your feedback. Stopped ...
4 years, 5 months ago (2016-07-12 05:04:45 UTC) #19
no sievers
For the JNI issue I'm wondering if it should just be ViewAndroid::Acquire/RemoveAnchorView(). Then that could ...
4 years, 5 months ago (2016-07-12 21:57:28 UTC) #21
Jinsuk Kim
On 2016/07/12 21:57:28, sievers wrote: > For the JNI issue I'm wondering if it should ...
4 years, 5 months ago (2016-07-14 07:51:34 UTC) #25
Jinsuk Kim
PTAL. https://codereview.chromium.org/2103243002/diff/60001/chrome/browser/ui/android/autofill/autofill_popup_view_android.cc File chrome/browser/ui/android/autofill/autofill_popup_view_android.cc (left): https://codereview.chromium.org/2103243002/diff/60001/chrome/browser/ui/android/autofill/autofill_popup_view_android.cc#oldcode56 chrome/browser/ui/android/autofill/autofill_popup_view_android.cc:56: Java_AutofillPopupBridge_setAnchorRect( On 2016/07/12 21:57:27, sievers wrote: > So ...
4 years, 5 months ago (2016-07-14 07:51:52 UTC) #26
no sievers
nice! So the main thing seems to be (see comments) that it's a bit tricky ...
4 years, 5 months ago (2016-07-14 23:14:32 UTC) #27
no sievers
https://codereview.chromium.org/2103243002/diff/140001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/2103243002/diff/140001/content/browser/android/content_view_core_impl.cc#newcode558 content/browser/android/content_view_core_impl.cc:558: if (select_popup_.is_null()) { !select_popup_.is_null()
4 years, 5 months ago (2016-07-14 23:31:18 UTC) #28
Jinsuk Kim
On 2016/07/14 23:14:32, sievers wrote: > nice! > > So the main thing seems to ...
4 years, 5 months ago (2016-07-15 05:46:14 UTC) #29
Jinsuk Kim
https://codereview.chromium.org/2103243002/diff/140001/android_webview/native/aw_autofill_client.cc File android_webview/native/aw_autofill_client.cc (right): https://codereview.chromium.org/2103243002/diff/140001/android_webview/native/aw_autofill_client.cc#newcode140 android_webview/native/aw_autofill_client.cc:140: anchor_view_.Reset(view_android_->AcquireAnchorView()); On 2016/07/14 23:14:31, sievers wrote: > Does this ...
4 years, 5 months ago (2016-07-15 05:46:27 UTC) #30
no sievers
On 2016/07/15 05:46:14, Jinsuk wrote: > On 2016/07/14 23:14:32, sievers wrote: > > nice! > ...
4 years, 5 months ago (2016-07-15 18:27:32 UTC) #31
no sievers
https://codereview.chromium.org/2103243002/diff/140001/content/public/android/java/src/org/chromium/content/browser/ContentViewAndroidDelegate.java File content/public/android/java/src/org/chromium/content/browser/ContentViewAndroidDelegate.java (right): https://codereview.chromium.org/2103243002/diff/140001/content/public/android/java/src/org/chromium/content/browser/ContentViewAndroidDelegate.java#newcode12 content/public/android/java/src/org/chromium/content/browser/ContentViewAndroidDelegate.java:12: import org.chromium.ui.base.ViewAndroidDelegate; On 2016/07/15 05:46:26, Jinsuk wrote: > On ...
4 years, 5 months ago (2016-07-15 18:35:00 UTC) #32
Jinsuk Kim
Thanks for the code snippet. PTAL. https://codereview.chromium.org/2103243002/diff/140001/content/public/android/java/src/org/chromium/content/browser/ContentViewAndroidDelegate.java File content/public/android/java/src/org/chromium/content/browser/ContentViewAndroidDelegate.java (right): https://codereview.chromium.org/2103243002/diff/140001/content/public/android/java/src/org/chromium/content/browser/ContentViewAndroidDelegate.java#newcode12 content/public/android/java/src/org/chromium/content/browser/ContentViewAndroidDelegate.java:12: import org.chromium.ui.base.ViewAndroidDelegate; On ...
4 years, 5 months ago (2016-07-18 06:45:46 UTC) #35
no sievers
On 2016/07/18 06:45:46, Jinsuk wrote: > Done. I tried to annotate the overriden methods of ...
4 years, 5 months ago (2016-07-18 22:13:42 UTC) #38
no sievers
This is great. Just a bunch of final nits, polish and paranoia. https://codereview.chromium.org/2103243002/diff/180001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java ...
4 years, 5 months ago (2016-07-18 22:14:17 UTC) #39
Jinsuk Kim
https://codereview.chromium.org/2103243002/diff/180001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/2103243002/diff/180001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode1182 android_webview/java/src/org/chromium/android_webview/AwContents.java:1182: mViewAndroidDelegate = (AwViewAndroidDelegate) mContentViewCore.getViewAndroidDelegate(); On 2016/07/18 22:14:16, sievers wrote: ...
4 years, 5 months ago (2016-07-19 07:08:40 UTC) #45
no sievers
https://codereview.chromium.org/2103243002/diff/200001/android_webview/native/aw_autofill_client.cc File android_webview/native/aw_autofill_client.cc (right): https://codereview.chromium.org/2103243002/diff/200001/android_webview/native/aw_autofill_client.cc#newcode216 android_webview/native/aw_autofill_client.cc:216: anchor_view_ = ui::ViewAndroid::ScopedAnchorView(); nit: might be nice to add ...
4 years, 5 months ago (2016-07-19 22:29:31 UTC) #46
Jinsuk Kim
https://codereview.chromium.org/2103243002/diff/200001/android_webview/native/aw_autofill_client.cc File android_webview/native/aw_autofill_client.cc (right): https://codereview.chromium.org/2103243002/diff/200001/android_webview/native/aw_autofill_client.cc#newcode216 android_webview/native/aw_autofill_client.cc:216: anchor_view_ = ui::ViewAndroid::ScopedAnchorView(); On 2016/07/19 22:29:30, sievers wrote: > ...
4 years, 5 months ago (2016-07-20 00:55:19 UTC) #47
no sievers
LGTM https://codereview.chromium.org/2103243002/diff/280001/android_webview/native/aw_autofill_client.cc File android_webview/native/aw_autofill_client.cc (right): https://codereview.chromium.org/2103243002/diff/280001/android_webview/native/aw_autofill_client.cc#newcode140 android_webview/native/aw_autofill_client.cc:140: if (anchor_view_.is_null()) you meant 'if (!view_android)' https://codereview.chromium.org/2103243002/diff/280001/chrome/browser/ui/android/autofill/autofill_popup_view_android.cc File ...
4 years, 5 months ago (2016-07-20 18:46:04 UTC) #48
Jinsuk Kim
Thanks! https://codereview.chromium.org/2103243002/diff/280001/android_webview/native/aw_autofill_client.cc File android_webview/native/aw_autofill_client.cc (right): https://codereview.chromium.org/2103243002/diff/280001/android_webview/native/aw_autofill_client.cc#newcode140 android_webview/native/aw_autofill_client.cc:140: if (anchor_view_.is_null()) On 2016/07/20 18:46:04, sievers wrote: > ...
4 years, 5 months ago (2016-07-20 23:19:04 UTC) #49
Jinsuk Kim
halliwell@chromium.org: Please review changes in chromecast/ hashimoto@chromium.org: Please review changes in device/power_save_blocker
4 years, 5 months ago (2016-07-20 23:28:37 UTC) #52
halliwell
On 2016/07/20 23:28:37, Jinsuk wrote: > mailto:halliwell@chromium.org: Please review changes in chromecast/ > > mailto:hashimoto@chromium.org: ...
4 years, 5 months ago (2016-07-20 23:31:54 UTC) #53
sgurun-gerrit only
https://codereview.chromium.org/2103243002/diff/300001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/2103243002/diff/300001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode827 android_webview/java/src/org/chromium/android_webview/AwContents.java:827: * Implementation of the interface {@link org.chromium.ui.base.ViewAndroid.ViewAndroidDelegate} nit: Implementation ...
4 years, 5 months ago (2016-07-21 23:24:18 UTC) #58
Jinsuk Kim
https://codereview.chromium.org/2103243002/diff/300001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/2103243002/diff/300001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode827 android_webview/java/src/org/chromium/android_webview/AwContents.java:827: * Implementation of the interface {@link org.chromium.ui.base.ViewAndroid.ViewAndroidDelegate} On 2016/07/21 ...
4 years, 5 months ago (2016-07-22 02:54:33 UTC) #59
no sievers
On 2016/07/22 02:54:33, Jinsuk wrote: > https://codereview.chromium.org/2103243002/diff/300001/android_webview/java/src/org/chromium/android_webview/AwContents.java > File android_webview/java/src/org/chromium/android_webview/AwContents.java > (right): > > https://codereview.chromium.org/2103243002/diff/300001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode827 ...
4 years, 5 months ago (2016-07-22 17:09:32 UTC) #68
sgurun-gerrit only
On 2016/07/22 17:09:32, sievers wrote: > On 2016/07/22 02:54:33, Jinsuk wrote: > > > https://codereview.chromium.org/2103243002/diff/300001/android_webview/java/src/org/chromium/android_webview/AwContents.java ...
4 years, 5 months ago (2016-07-22 20:19:22 UTC) #69
Jinsuk Kim
Removed isValidView() and check containerView == null only.
4 years, 5 months ago (2016-07-24 22:42:16 UTC) #70
no sievers
lgtm https://codereview.chromium.org/2103243002/diff/360001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/2103243002/diff/360001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode924 android_webview/java/src/org/chromium/android_webview/AwContents.java:924: if (!mAnchorViews.containsKey(anchorView) || containerView == null) return; Yes, ...
4 years, 5 months ago (2016-07-25 17:37:32 UTC) #71
sgurun-gerrit only
lgtm
4 years, 5 months ago (2016-07-25 18:23:59 UTC) #72
Jinsuk Kim
Hi Ted, would you review the changes in chrome/, ui/?
4 years, 4 months ago (2016-07-25 21:52:51 UTC) #73
Jinsuk Kim
Hi Bo, would you review the changes in device/power_save_blocker?
4 years, 4 months ago (2016-07-25 21:54:37 UTC) #75
boliu
https://codereview.chromium.org/2103243002/diff/360001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/2103243002/diff/360001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode830 android_webview/java/src/org/chromium/android_webview/AwContents.java:830: public static class AwViewAndroidDelegate extends ViewAndroidDelegate { pull out ...
4 years, 4 months ago (2016-07-25 22:15:27 UTC) #76
no sievers
https://codereview.chromium.org/2103243002/diff/360001/android_webview/native/aw_autofill_client.h File android_webview/native/aw_autofill_client.h (right): https://codereview.chromium.org/2103243002/diff/360001/android_webview/native/aw_autofill_client.h#newcode126 android_webview/native/aw_autofill_client.h:126: ui::ViewAndroid::ScopedAnchorView anchor_view_; On 2016/07/25 22:15:26, boliu wrote: > another ...
4 years, 4 months ago (2016-07-25 22:24:41 UTC) #77
boliu
https://codereview.chromium.org/2103243002/diff/360001/android_webview/native/aw_autofill_client.h File android_webview/native/aw_autofill_client.h (right): https://codereview.chromium.org/2103243002/diff/360001/android_webview/native/aw_autofill_client.h#newcode126 android_webview/native/aw_autofill_client.h:126: ui::ViewAndroid::ScopedAnchorView anchor_view_; On 2016/07/25 22:24:40, sievers wrote: > On ...
4 years, 4 months ago (2016-07-25 22:29:24 UTC) #78
boliu
https://codereview.chromium.org/2103243002/diff/360001/android_webview/native/aw_autofill_client.h File android_webview/native/aw_autofill_client.h (right): https://codereview.chromium.org/2103243002/diff/360001/android_webview/native/aw_autofill_client.h#newcode126 android_webview/native/aw_autofill_client.h:126: ui::ViewAndroid::ScopedAnchorView anchor_view_; On 2016/07/25 22:29:24, boliu wrote: > On ...
4 years, 4 months ago (2016-07-25 22:33:34 UTC) #79
no sievers
On 2016/07/25 22:29:24, boliu wrote: > https://codereview.chromium.org/2103243002/diff/360001/android_webview/native/aw_autofill_client.h > File android_webview/native/aw_autofill_client.h (right): > > https://codereview.chromium.org/2103243002/diff/360001/android_webview/native/aw_autofill_client.h#newcode126 > ...
4 years, 4 months ago (2016-07-25 22:37:16 UTC) #80
boliu
On 2016/07/25 22:37:16, sievers wrote: > On 2016/07/25 22:29:24, boliu wrote: > > > https://codereview.chromium.org/2103243002/diff/360001/android_webview/native/aw_autofill_client.h ...
4 years, 4 months ago (2016-07-25 22:46:38 UTC) #81
no sievers
On 2016/07/25 22:33:34, boliu wrote: > https://codereview.chromium.org/2103243002/diff/360001/android_webview/native/aw_autofill_client.h > File android_webview/native/aw_autofill_client.h (right): > > https://codereview.chromium.org/2103243002/diff/360001/android_webview/native/aw_autofill_client.h#newcode126 > ...
4 years, 4 months ago (2016-07-25 22:46:55 UTC) #82
no sievers
On 2016/07/25 22:46:38, boliu wrote: > On 2016/07/25 22:37:16, sievers wrote: > > On 2016/07/25 ...
4 years, 4 months ago (2016-07-25 22:49:11 UTC) #83
boliu
On 2016/07/25 22:46:55, sievers wrote: > Rather it should pass a WeakReference, or better a ...
4 years, 4 months ago (2016-07-25 22:54:06 UTC) #84
Jinsuk Kim
boliu@: Let me work on a follow-up CL that addresses your concerns better. Changed the ...
4 years, 4 months ago (2016-07-27 10:02:43 UTC) #85
boliu
https://codereview.chromium.org/2103243002/diff/380001/android_webview/java/src/org/chromium/android_webview/AwViewAndroidDelegate.java File android_webview/java/src/org/chromium/android_webview/AwViewAndroidDelegate.java (right): https://codereview.chromium.org/2103243002/diff/380001/android_webview/java/src/org/chromium/android_webview/AwViewAndroidDelegate.java#newcode31 android_webview/java/src/org/chromium/android_webview/AwViewAndroidDelegate.java:31: private WeakReference<ViewGroup> mContainerView; I don't see why WeakReference is ...
4 years, 4 months ago (2016-07-27 16:20:26 UTC) #86
Ted C
https://codereview.chromium.org/2103243002/diff/380001/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopupBridge.java File chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopupBridge.java (right): https://codereview.chromium.org/2103243002/diff/380001/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopupBridge.java#newcode34 chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopupBridge.java:34: public AutofillPopupBridge(View anchorView, float anchorWidth, How does anchorWidth differ ...
4 years, 4 months ago (2016-07-27 20:10:48 UTC) #87
no sievers
https://codereview.chromium.org/2103243002/diff/380001/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/2103243002/diff/380001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode643 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:643: public void initialize(ViewGroup containerView, ViewAndroidDelegate viewDelegate, On 2016/07/27 20:10:47, ...
4 years, 4 months ago (2016-07-27 20:17:47 UTC) #88
Jinsuk Kim
PTAL https://codereview.chromium.org/2103243002/diff/380001/android_webview/java/src/org/chromium/android_webview/AwViewAndroidDelegate.java File android_webview/java/src/org/chromium/android_webview/AwViewAndroidDelegate.java (right): https://codereview.chromium.org/2103243002/diff/380001/android_webview/java/src/org/chromium/android_webview/AwViewAndroidDelegate.java#newcode31 android_webview/java/src/org/chromium/android_webview/AwViewAndroidDelegate.java:31: private WeakReference<ViewGroup> mContainerView; On 2016/07/27 16:20:26, boliu wrote: ...
4 years, 4 months ago (2016-07-29 06:09:14 UTC) #92
boliu
https://codereview.chromium.org/2103243002/diff/420001/android_webview/native/aw_autofill_client.cc File android_webview/native/aw_autofill_client.cc (right): https://codereview.chromium.org/2103243002/diff/420001/android_webview/native/aw_autofill_client.cc#newcode143 android_webview/native/aw_autofill_client.cc:143: const ScopedJavaLocalRef<jobject>& current_view = anchor_view_.view(); this (and line 147) ...
4 years, 4 months ago (2016-07-29 20:05:15 UTC) #95
no sievers
https://codereview.chromium.org/2103243002/diff/420001/ui/android/view_android.h File ui/android/view_android.h (right): https://codereview.chromium.org/2103243002/diff/420001/ui/android/view_android.h#newcode53 ui/android/view_android.h:53: }; On 2016/07/29 20:05:15, boliu wrote: > disallow copy ...
4 years, 4 months ago (2016-07-29 20:29:47 UTC) #96
sgurun-gerrit only
https://codereview.chromium.org/2103243002/diff/420001/ui/android/view_android.cc File ui/android/view_android.cc (right): https://codereview.chromium.org/2103243002/diff/420001/ui/android/view_android.cc#newcode164 ui/android/view_android.cc:164: const ScopedJavaLocalRef<jobject>& delegate = delegate_.get(env); and also what clang ...
4 years, 4 months ago (2016-07-29 23:44:06 UTC) #97
Jinsuk Kim
https://codereview.chromium.org/2103243002/diff/420001/android_webview/native/aw_autofill_client.cc File android_webview/native/aw_autofill_client.cc (right): https://codereview.chromium.org/2103243002/diff/420001/android_webview/native/aw_autofill_client.cc#newcode143 android_webview/native/aw_autofill_client.cc:143: const ScopedJavaLocalRef<jobject>& current_view = anchor_view_.view(); On 2016/07/29 20:05:15, boliu ...
4 years, 4 months ago (2016-08-01 02:02:47 UTC) #102
boliu
https://codereview.chromium.org/2103243002/diff/440001/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/2103243002/diff/440001/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelContent.java#newcode239 chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelContent.java:239: new ViewAndroidDelegate() { I don't own this code so ...
4 years, 4 months ago (2016-08-01 18:18:58 UTC) #103
Ted C
https://codereview.chromium.org/2103243002/diff/440001/ui/android/java/src/org/chromium/ui/DropdownPopupWindow.java File ui/android/java/src/org/chromium/ui/DropdownPopupWindow.java (right): https://codereview.chromium.org/2103243002/diff/440001/ui/android/java/src/org/chromium/ui/DropdownPopupWindow.java#newcode49 ui/android/java/src/org/chromium/ui/DropdownPopupWindow.java:49: mAnchorWidth = anchorWidth; Umm...still confused here. This doesn't seem ...
4 years, 4 months ago (2016-08-01 20:44:39 UTC) #104
Jinsuk Kim
https://codereview.chromium.org/2103243002/diff/440001/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/2103243002/diff/440001/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelContent.java#newcode239 chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelContent.java:239: new ViewAndroidDelegate() { On 2016/08/01 18:18:57, boliu wrote: > ...
4 years, 4 months ago (2016-08-01 21:49:25 UTC) #105
boliu
lgtm
4 years, 4 months ago (2016-08-01 21:53:22 UTC) #106
Jinsuk Kim
Found it simpler to use |mAnchorView.getLayoutParams().width / dipScale| in {PasswordGenerationPopupBridge, DropdownPopupWindow}.show() rather than passing the ...
4 years, 4 months ago (2016-08-02 13:16:23 UTC) #110
Jinsuk Kim
tedchoc@: please take another look.
4 years, 4 months ago (2016-08-03 22:05:53 UTC) #113
Ted C
lgtm w/ a few small remaining comments https://codereview.chromium.org/2103243002/diff/480001/chrome/android/java/src/org/chromium/chrome/browser/autofill/PasswordGenerationPopupBridge.java File chrome/android/java/src/org/chromium/chrome/browser/autofill/PasswordGenerationPopupBridge.java (right): https://codereview.chromium.org/2103243002/diff/480001/chrome/android/java/src/org/chromium/chrome/browser/autofill/PasswordGenerationPopupBridge.java#newcode121 chrome/android/java/src/org/chromium/chrome/browser/autofill/PasswordGenerationPopupBridge.java:121: explanationTextLinkRangeStart, explanationTextLinkRangeEnd, ...
4 years, 4 months ago (2016-08-03 23:11:15 UTC) #114
Jinsuk Kim
cc'ed keishi@ who wrote DropdownPopupWindow in case he has feedback. Will follow it up if ...
4 years, 4 months ago (2016-08-04 04:24:03 UTC) #124
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/2103243002/520001
4 years, 4 months ago (2016-08-04 04:40:58 UTC) #127
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/230843)
4 years, 4 months ago (2016-08-04 04:47:33 UTC) #129
Jinsuk Kim
Hi sadrul@ Could you give lgtm for the change below? You need LGTM from owners ...
4 years, 4 months ago (2016-08-04 04:58:07 UTC) #131
sadrul
https://codereview.chromium.org/2103243002/diff/520001/ui/android/view_android.cc File ui/android/view_android.cc (right): https://codereview.chromium.org/2103243002/diff/520001/ui/android/view_android.cc#newcode125 ui/android/view_android.cc:125: float scale = GetScaleFactorForNativeView(this); Is this the only API ...
4 years, 4 months ago (2016-08-04 15:54:50 UTC) #132
Jinsuk Kim
PTAL https://codereview.chromium.org/2103243002/diff/520001/ui/android/view_android.cc File ui/android/view_android.cc (right): https://codereview.chromium.org/2103243002/diff/520001/ui/android/view_android.cc#newcode125 ui/android/view_android.cc:125: float scale = GetScaleFactorForNativeView(this); On 2016/08/04 15:54:50, sadrul ...
4 years, 4 months ago (2016-08-04 22:13:06 UTC) #133
sadrul
cool. lgtm
4 years, 4 months ago (2016-08-05 03:22:15 UTC) #134
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/2103243002/540001
4 years, 4 months ago (2016-08-05 03:29:53 UTC) #137
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_x86-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_x86-generic_chromium_compile_only_ng/builds/178641) chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 4 months ago (2016-08-05 03:32:57 UTC) #139
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/2103243002/560001
4 years, 4 months ago (2016-08-05 06:14:24 UTC) #146
commit-bot: I haz the power
Committed patchset #20 (id:560001)
4 years, 4 months ago (2016-08-05 06:20:32 UTC) #148
commit-bot: I haz the power
Patchset 20 (id:??) landed as https://crrev.com/9ee8865d84c2156728f1b9f78fb8f8b812e4ba19 Cr-Commit-Position: refs/heads/master@{#410003}
4 years, 4 months ago (2016-08-05 06:21:54 UTC) #150
Ted C
https://codereview.chromium.org/2103243002/diff/560001/ui/android/view_android.h File ui/android/view_android.h (right): https://codereview.chromium.org/2103243002/diff/560001/ui/android/view_android.h#newcode70 ui/android/view_android.h:70: void SetWindowAndroid(WindowAndroid* root_window); I think this was a bad ...
4 years, 4 months ago (2016-08-24 17:26:54 UTC) #151
Jinsuk Kim
4 years, 4 months ago (2016-08-24 18:05:19 UTC) #152
Message was sent while issue was closed.
On 2016/08/24 17:26:54, Ted C wrote:
>
https://codereview.chromium.org/2103243002/diff/560001/ui/android/view_android.h
> File ui/android/view_android.h (right):
> 
>
https://codereview.chromium.org/2103243002/diff/560001/ui/android/view_androi...
> ui/android/view_android.h:70: void SetWindowAndroid(WindowAndroid*
root_window);
> I think this was a bad rebase.  This was removed by sievers@ in:
>
https://codereview.chromium.org/2136373002/diff/60001/ui/android/view_android.h
> 
> but added back here (and is unused)

Thanks for pointing it out. Realized it later and fixing it here
https://codereview.chromium.org/2272673003/

Powered by Google App Engine
This is Rietveld 408576698