• Yuichiro Hanada's avatar
    Implement ArcImeService::EnsureCaretNotInRect. · 10fa9630
    Yuichiro Hanada authored
    It's left as unimplemented because Android WM handles insets by VK for
    most cases.
    However, Android WM can't move the SystemTray up for inline-reply in an
    Android notification because from Android WM's point of view,
    notificaiton is placed at (0, 0).
    This CL implements ArcImeService::EnsureCaretNotInRect to cover that
    case.
    This CL changes the behavior of windowed Android app with a11y keyboard.
    Before this CL, a position of a window is not changed by a11y keyboard
    visibility, but after this CL a position can be changed not to be
    covered by a11y keyboard.
    
          SystemTray moves up if there is a space for it.
    
    Bug: b/114115612
    Test: manual - Focus on inline reply of an Android notificatioln and
    Change-Id: Ib666b6c269a8fc36195d30affa4c7a8a805560d7
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1631859Reviewed-by: default avatarSadrul Chowdhury <sadrul@chromium.org>
    Reviewed-by: default avatarTetsui Ohkubo <tetsui@chromium.org>
    Commit-Queue: Yuichiro Hanada <yhanada@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#664583}
    10fa9630
arc_ime_service.h 7.41 KB