Straighten up keyboard hide and show logic
- Remove dependency between ContentViewCore and InputMethodManagerWrapper
- Remove hideSoftInput callback (otherwise AwContentsGarbageCollectionTests fails)
- Move some IME-related code from ContentViewCore to ImeAdapter
- Change onCreateInputConnection to return null when input type is NONE
- Restart input on hiding so that current input connection can become NONE
- Deep copy Configuration
(relanding of
https://codereview.chromium.org/1377103004/)
BUG=
534666,
539896,
548501
Committed:
https://crrev.com/64c8047b5380a275e33eba2559ff2b3b42cac1df
Cr-Commit-Position: refs/heads/master@{#357668}