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

Issue 10911012: Upstream Android IME support (ImeAdapter). (Closed)

Created:
8 years, 3 months ago by olilan
Modified:
8 years, 3 months ago
Reviewers:
bulach, James Su, jam, suzhe
CC:
chromium-reviews, yusukes+watch_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, James Su
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Upstream Android IME support (ImeAdapter). This CL contains most of the ImeAdapter code that allows Android IMEs to work with Chrome. The key class is ImeAdapter on the Android/Java side, which has an inner class AdapterInputConnection which implements Android's inputConnection interface. Also important is the method ContentViewCore#imeUpdateAdapter, which is called in response to ViewHostMsg_TextInputStateChanged messsages from the renderer. This CL also adds SelectionHandleController and InsertionHandleController, but only as stubs. BUG=136691 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=154687

Patch Set 1 #

Total comments: 6

Patch Set 2 : nits fixed; recent downstream changes applied; ime adapter added to browser_jni_registrar #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1563 lines, -7 lines) Patch
M content/browser/android/browser_jni_registrar.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/android/content_view_core_impl.h View 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 2 chunks +29 lines, -0 lines 0 comments Download
M content/browser/renderer_host/ime_adapter_android.h View 1 1 chunk +25 lines, -2 lines 0 comments Download
M content/browser/renderer_host/ime_adapter_android.cc View 4 chunks +197 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 3 chunks +6 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 3 chunks +24 lines, -2 lines 0 comments Download
M content/common/view_messages.h View 1 2 chunks +21 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentView.java View 3 chunks +13 lines, -1 line 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 10 chunks +146 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ImeAdapter.java View 1 3 chunks +776 lines, -1 line 0 comments Download
A content/public/android/java/src/org/chromium/content/browser/InputDialogContainer.java View 1 chunk +261 lines, -0 lines 0 comments Download
A content/public/android/java/src/org/chromium/content/browser/InsertionHandleController.java View 1 1 chunk +26 lines, -0 lines 0 comments Download
A content/public/android/java/src/org/chromium/content/browser/SelectionHandleController.java View 1 chunk +21 lines, -0 lines 0 comments Download
M content/public/browser/android/content_view_core.h View 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
olilan
8 years, 3 months ago (2012-08-30 17:46:03 UTC) #1
James Su
The C++ part LGTM. https://chromiumcodereview.appspot.com/10911012/diff/1/content/common/view_messages.h File content/common/view_messages.h (right): https://chromiumcodereview.appspot.com/10911012/diff/1/content/common/view_messages.h#newcode1026 content/common/view_messages.h:1026: IPC_MESSAGE_ROUTED3(ViewMsg_SetCompositionFromExistingText, nit: How about group ...
8 years, 3 months ago (2012-08-31 02:05:25 UTC) #2
bulach
lgtm for the java side, just a couple of nits: https://chromiumcodereview.appspot.com/10911012/diff/1/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://chromiumcodereview.appspot.com/10911012/diff/1/content/browser/renderer_host/render_widget_host_view_android.cc#newcode186 ...
8 years, 3 months ago (2012-08-31 11:36:23 UTC) #3
olilan
Thanks guys. Nits resolved. Also patch 2 adds some recent downstream fixes, and adds RegisterImeAdapter ...
8 years, 3 months ago (2012-08-31 16:47:09 UTC) #4
olilan
jam, could you ptal as an owner of content/ ?
8 years, 3 months ago (2012-08-31 16:55:42 UTC) #5
jam
lgtm
8 years, 3 months ago (2012-08-31 16:59:12 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/olilan@chromium.org/10911012/10001
8 years, 3 months ago (2012-09-03 10:47:22 UTC) #7
commit-bot: I haz the power
8 years, 3 months ago (2012-09-03 13:10:11 UTC) #8
Change committed as 154687

Powered by Google App Engine
This is Rietveld 408576698