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

Issue 2777223004: Migrate IME state update flow (Closed)

Created:
3 years, 8 months ago by Jinsuk Kim
Modified:
3 years, 8 months ago
Reviewers:
Ted C, Changwan Ryu, boliu
CC:
chromium-reviews, yusukes+watch_chromium.org, shuchen+watch_chromium.org, jam, nona+watch_chromium.org, darin-cc_chromium.org, agrieve+watch_chromium.org, James Su, android-webview-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Migrate IME state update flow Refactored the flow for IME state update so it bypasses CVCImpl and go straight from RWHVA -> ImeAdapter native -> Java layer. Other related changes are: ImeAdapter provides EventObserver to reduce the dependency on CVC, based on the suggestion made in https://goo.gl/pdtQCl. It is used by an embedder (Chrome) and CVC to deal with IME notification. This replaces IME state update done through CVC. Only the necessary info (node editability, password attribute) are passed. ImeAdapter.ImeAdapterDelegate is to delegate some work upon IME events. But it is used by ContentViewCore only, and there is no clear benefit of having the interface. It was removed for simplification. All the stuff can be (and are now) handled inside ImeAdapter. BUG=662908, 626765, 620172, 709349 Review-Url: https://codereview.chromium.org/2777223004 Cr-Original-Commit-Position: refs/heads/master@{#462419} Committed: https://chromium.googlesource.com/chromium/src/+/cc9e77e7d9e05da0f6017f1bdea024f0ce669786 Review-Url: https://codereview.chromium.org/2777223004 Cr-Commit-Position: refs/heads/master@{#463508} Committed: https://chromium.googlesource.com/chromium/src/+/e4f39f538c7a9fe52a635d4fc4c92e3a5c82fe8a

Patch Set 1 #

Patch Set 2 : fix tests #

Total comments: 12

Patch Set 3 : comments #

Total comments: 1

Patch Set 4 : rebase #

Patch Set 5 : rebase after revert #

Patch Set 6 : fix crbug.com/709349 #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+333 lines, -364 lines) Patch
M android_webview/javatests/src/org/chromium/android_webview/test/AwContentsGarbageCollectionTest.java View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java View 1 2 3 chunks +17 lines, -14 lines 0 comments Download
M content/browser/android/content_view_core_impl.h View 1 1 chunk +0 lines, -11 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 4 1 chunk +0 lines, -22 lines 0 comments Download
M content/browser/android/ime_adapter_android.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M content/browser/android/ime_adapter_android.cc View 1 2 chunks +16 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 6 1 chunk +2 lines, -5 lines 0 comments Download
M content/public/android/BUILD.gn View 1 2 3 4 3 chunks +2 lines, -1 line 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 3 4 5 6 17 chunks +30 lines, -154 lines 0 comments Download
A content/public/android/java/src/org/chromium/content/browser/ViewUtils.java View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java View 1 2 3 4 5 21 chunks +209 lines, -105 lines 0 comments Download
A content/public/android/java/src/org/chromium/content_public/browser/ImeEventObserver.java View 1 2 1 chunk +22 lines, -0 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/PopupZoomerTest.java View 1 4 2 chunks +5 lines, -8 lines 0 comments Download
D content/public/android/javatests/src/org/chromium/content/browser/input/TestImeAdapterDelegate.java View 1 1 chunk +0 lines, -42 lines 0 comments Download

Messages

Total messages: 51 (36 generated)
Jinsuk Kim
3 years, 8 months ago (2017-04-05 10:46:19 UTC) #13
boliu
woot +changwan fyi https://codereview.chromium.org/2777223004/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java File chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java (right): https://codereview.chromium.org/2777223004/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java#newcode515 chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java:515: if (mContentViewCore != null) { this ...
3 years, 8 months ago (2017-04-05 22:32:27 UTC) #15
Changwan Ryu
/input/ lgtm modulo boliu@'s comments awesome changes!
3 years, 8 months ago (2017-04-05 23:16:25 UTC) #16
Jinsuk Kim
https://codereview.chromium.org/2777223004/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java File chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java (right): https://codereview.chromium.org/2777223004/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java#newcode515 chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java:515: if (mContentViewCore != null) { On 2017/04/05 22:32:27, boliu ...
3 years, 8 months ago (2017-04-06 00:13:43 UTC) #17
boliu
lgtm % comment https://codereview.chromium.org/2777223004/diff/80001/content/public/android/java/src/org/chromium/content/browser/ViewUtils.java File content/public/android/java/src/org/chromium/content/browser/ViewUtils.java (right): https://codereview.chromium.org/2777223004/diff/80001/content/public/android/java/src/org/chromium/content/browser/ViewUtils.java#newcode12 content/public/android/java/src/org/chromium/content/browser/ViewUtils.java:12: public class ViewUtils { package, final ...
3 years, 8 months ago (2017-04-06 00:23:35 UTC) #18
Jinsuk Kim
tedchoc@chromium.org: Please review changes in chrome/android?
3 years, 8 months ago (2017-04-06 00:27:46 UTC) #20
Ted C
On 2017/04/06 00:27:46, Jinsuk Kim wrote: > mailto:tedchoc@chromium.org: Please review changes in chrome/android? chrome/android - ...
3 years, 8 months ago (2017-04-06 04:57:00 UTC) #21
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/2777223004/100001
3 years, 8 months ago (2017-04-06 10:13:03 UTC) #32
commit-bot: I haz the power
Committed patchset #4 (id:100001) as https://chromium.googlesource.com/chromium/src/+/cc9e77e7d9e05da0f6017f1bdea024f0ce669786
3 years, 8 months ago (2017-04-06 11:04:33 UTC) #35
Changwan Ryu
A revert of this CL (patchset #4 id:100001) has been created in https://codereview.chromium.org/2803203003/ by changwan@chromium.org. ...
3 years, 8 months ago (2017-04-07 22:30:18 UTC) #36
Jinsuk Kim
The bug was: boolean editable = textInputMode != TextInputType.NONE; which should have been boolean editable ...
3 years, 8 months ago (2017-04-10 07:11:51 UTC) #38
boliu
lgtm
3 years, 8 months ago (2017-04-10 17:11:08 UTC) #39
Changwan Ryu
On 2017/04/10 17:11:08, boliu wrote: > lgtm ImeAdapter.java lgtm
3 years, 8 months ago (2017-04-10 17:36:42 UTC) #40
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/2777223004/160001
3 years, 8 months ago (2017-04-11 01:51:09 UTC) #48
commit-bot: I haz the power
3 years, 8 months ago (2017-04-11 02:58:20 UTC) #51
Message was sent while issue was closed.
Committed patchset #7 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/e4f39f538c7a9fe52a635d4fc4c9...

Powered by Google App Engine
This is Rietveld 408576698