ImeAdapter object access in CVC/CVCImpl is roughly grouped into following:
1) Overall life cycle: resetAndHideKeyboard() at CVC.destroy(), WebContentObserver.renderProgressGone(), ...
2) ContainerView methods: View#attachedToWindow, #onCreateInputConnection, ..
3) Selection/Input: moveCursorToSelectionEnd()
4) Call from native: onUpdateFrameInfo, updateKeyboardVisibility
Possible refactoring approach would be move 2) to ViewAndroidDelegate, 3) to a new controller handling action mode/paste popup(see Issue 623783 ), 4) to have RWVHA call ImeAdapterAndroid directly for these.
For 1), we need a new observer for WebContents in both Java/native. Maybe ImeAdapterAndroid can be one. cc'ing Changwan as he seems interested - please shed more light for a better direction.
Comment 1 by jinsuk...@chromium.org
, Nov 7 2016