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

Issue 14018004: [Android] Refactor NativeView to be able to use it for AutofillDialog. (Closed)

Created:
7 years, 8 months ago by aurimas (slooooooooow)
Modified:
7 years, 8 months ago
Reviewers:
aruslan, Nico, joth, nilesh, piman
CC:
chromium-reviews, Raman Kakilate, jam, yusukes+watch_chromium.org, benquan, dhollowa+watch_chromium.org, ahutter, browser-components-watch_chromium.org, dbeam+watch-autofill_chromium.org, penghuang+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, Dane Wallinga, dyu1, estade+watch_chromium.org, Albert Bodenhamer, James Su, Ilya Sherman, sgurun-gerrit only
Visibility:
Public.

Description

[Android] Refactor NativeView to be able to use it for AutofillDialog. Create a new class WindowAndroid that serves the purpose of representing a native (platform specific) view where Chromium code expects to have a cross platform handle to the system view type. As Views are Java objects on Android, ViewAndroid.java and view_android.* will provide the expected abstractions on the C++ side and allow it to be flexibly glued to an actual Android Java View at runtime. It should only be used where access to Android Views is needed from the C++ code as there are easier/better ways to access Views from Java. This new abstraction will allow to reuse AutofillPopup for regular use in a webpage (using ContentView) as well as for AutofillDialog. BUG=229199 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=195750

Patch Set 1 #

Total comments: 4

Patch Set 2 : Ruslan's nits #

Total comments: 46

Patch Set 3 : joth's and nilesh's nits #

Patch Set 4 : Fix broken imports #

Patch Set 5 : Fix broken imports #2 #

Patch Set 6 : Stop initiating ViewAndroid for WebView #

Patch Set 7 : Adding UI_EXPORT #

Total comments: 12

Patch Set 8 : joth's nits #

Patch Set 9 : Rebase after https://chromiumcodereview.appspot.com/14169011/ #

Patch Set 10 : Remove space + useless comment #

Total comments: 4

Patch Set 11 : Nilesh's nits #

Patch Set 12 : Rebase #

Patch Set 13 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+270 lines, -122 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillDialogGlue.java View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopup.java View 1 2 3 4 5 6 7 8 5 chunks +8 lines, -8 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopupGlue.java View 1 2 3 4 5 6 7 8 3 chunks +20 lines, -12 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 2 chunks +3 lines, -3 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 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/platform_util_android.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/android/autofill/autofill_popup_view_android.cc View 1 2 3 4 5 6 7 8 3 chunks +22 lines, -25 lines 0 comments Download
M content/browser/android/content_view_core_impl.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +7 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 5 chunks +13 lines, -10 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M content/browser/web_contents/web_contents_view_android.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
D content/public/android/java/src/org/chromium/content/browser/ContainerViewDelegate.java View 1 chunk +0 lines, -31 lines 0 comments Download
content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +17 lines, -6 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/JellyBeanContentView.java View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M content/public/browser/android/content_view_core.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/shell/shell_web_contents_view_delegate_android.cc View 1 1 chunk +1 line, -1 line 0 comments Download
A ui/android/java/src/org/chromium/ui/ViewAndroid.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +60 lines, -0 lines 0 comments Download
A + ui/android/java/src/org/chromium/ui/ViewAndroidDelegate.java View 1 2 1 chunk +5 lines, -5 lines 0 comments Download
M ui/android/ui_jni_registrar.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
A ui/android/view_android.h View 1 2 3 4 5 6 7 8 1 chunk +41 lines, -0 lines 0 comments Download
A ui/android/view_android.cc View 1 2 3 4 5 6 7 8 1 chunk +51 lines, -0 lines 0 comments Download
M ui/gfx/native_widget_types.h View 2 chunks +2 lines, -4 lines 0 comments Download
M ui/ui.gyp View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
aruslan
https://chromiumcodereview.appspot.com/14018004/diff/1/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://chromiumcodereview.appspot.com/14018004/diff/1/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode641 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:641: } Here -- destroy/notify the native counterpart. https://chromiumcodereview.appspot.com/14018004/diff/1/ui/android/view_android.h File ...
7 years, 8 months ago (2013-04-12 16:53:35 UTC) #1
aurimas (slooooooooow)
Hey Jonathan, Could you take a look at this CL? It might have implications on ...
7 years, 8 months ago (2013-04-12 18:00:04 UTC) #2
aurimas (slooooooooow)
Hey Nilesh, Please take a look at this CL. Aurimas
7 years, 8 months ago (2013-04-12 18:46:52 UTC) #3
joth
+sgurun FYI -- he's currently wiring up autofill in aw/ I only read content/public on. ...
7 years, 8 months ago (2013-04-12 19:00:48 UTC) #4
nilesh
Few comments. https://codereview.chromium.org/14018004/diff/5001/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/14018004/diff/5001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode487 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:487: mNativeView = new NativeView(nativeWindow, getContainerViewDelegate()); +1 https://codereview.chromium.org/14018004/diff/5001/ui/android/java/src/org/chromium/ui/ContainerViewDelegate.java ...
7 years, 8 months ago (2013-04-12 19:07:09 UTC) #5
aurimas (slooooooooow)
joth: please take a look at my non-done responses below. https://codereview.chromium.org/14018004/diff/5001/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/14018004/diff/5001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode487 ...
7 years, 8 months ago (2013-04-12 22:00:40 UTC) #6
joth
https://codereview.chromium.org/14018004/diff/5001/ui/android/java/src/org/chromium/ui/NativeView.java File ui/android/java/src/org/chromium/ui/NativeView.java (right): https://codereview.chromium.org/14018004/diff/5001/ui/android/java/src/org/chromium/ui/NativeView.java#newcode34 ui/android/java/src/org/chromium/ui/NativeView.java:34: public void destroy() { On 2013/04/12 22:00:41, aurimas wrote: ...
7 years, 8 months ago (2013-04-16 04:02:42 UTC) #7
aurimas (slooooooooow)
joth: please take a look at my change to ContentViewCore#initialize() call, that now passes a ...
7 years, 8 months ago (2013-04-17 23:02:52 UTC) #8
joth
I like the way this is going, making on the bold assumption we'll not be ...
7 years, 8 months ago (2013-04-18 01:41:17 UTC) #9
aurimas (slooooooooow)
Please see my question about AwWindowAndroid usage below. I will work on creating a separate ...
7 years, 8 months ago (2013-04-18 02:49:57 UTC) #10
joth
On Wednesday, 17 April 2013, <aurimas@chromium.org> wrote: > Please see my question about AwWindowAndroid usage ...
7 years, 8 months ago (2013-04-18 13:52:20 UTC) #11
aurimas (slooooooooow)
nilesh: please take a look at this CL after my rebase.
7 years, 8 months ago (2013-04-19 18:10:56 UTC) #12
nilesh
lgtm. Please wait for Joth's approval https://codereview.chromium.org/14018004/diff/41001/ui/android/java/src/org/chromium/ui/ViewAndroid.java File ui/android/java/src/org/chromium/ui/ViewAndroid.java (right): https://codereview.chromium.org/14018004/diff/41001/ui/android/java/src/org/chromium/ui/ViewAndroid.java#newcode24 ui/android/java/src/org/chromium/ui/ViewAndroid.java:24: private final WindowAndroid ...
7 years, 8 months ago (2013-04-19 20:52:29 UTC) #13
joth
lgtm (I just skimmed the content/ changes this time) https://codereview.chromium.org/14018004/diff/41001/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/14018004/diff/41001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode662 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:662: ...
7 years, 8 months ago (2013-04-19 20:59:44 UTC) #14
aurimas (slooooooooow)
Hey guys! Please take a look. +thakis for ui/* and chrome/browser/platform_util_android.cc +piman for content/browser/* and ...
7 years, 8 months ago (2013-04-19 21:32:04 UTC) #15
aurimas (slooooooooow)
Hey guys! Please take a look at this CL. +thakis for ui/* and chrome/browser/platform_util_android.cc +piman ...
7 years, 8 months ago (2013-04-20 05:12:28 UTC) #16
Nico
Can you change the CL description so that it actually describes the change and doesn't ...
7 years, 8 months ago (2013-04-20 05:14:15 UTC) #17
aurimas (slooooooooow)
On 2013/04/20 05:14:15, Nico wrote: > Can you change the CL description so that it ...
7 years, 8 months ago (2013-04-21 20:57:02 UTC) #18
Nico
lgtm, thanks (nit: cl descriptions are imho easier to read if you don't use gerund ...
7 years, 8 months ago (2013-04-22 18:34:34 UTC) #19
aurimas (slooooooooow)
Hey Antoine, I am missing review for: content/browser/web_contents/web_contents_view_android.cc content/shell/shell_web_contents_view_delegate_android.cc Could you please take a look? ...
7 years, 8 months ago (2013-04-22 18:49:47 UTC) #20
piman
LGTM for content/
7 years, 8 months ago (2013-04-22 19:44:21 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aurimas@chromium.org/14018004/59001
7 years, 8 months ago (2013-04-22 20:04:28 UTC) #22
commit-bot: I haz the power
Failed to apply patch for chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillDialogGlue.java: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 8 months ago (2013-04-23 00:11:09 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aurimas@chromium.org/14018004/70001
7 years, 8 months ago (2013-04-23 00:46:07 UTC) #24
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=138023
7 years, 8 months ago (2013-04-23 02:31:58 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aurimas@chromium.org/14018004/70001
7 years, 8 months ago (2013-04-23 03:54:23 UTC) #26
commit-bot: I haz the power
7 years, 8 months ago (2013-04-23 07:36:47 UTC) #27
Message was sent while issue was closed.
Change committed as 195750

Powered by Google App Engine
This is Rietveld 408576698