diff options
author | Yohei Yukawa <yukawa@google.com> | 2014-04-17 12:40:31 +0900 |
---|---|---|
committer | Yohei Yukawa <yukawa@google.com> | 2014-04-29 03:53:34 +0900 |
commit | 4de04795f988cc7447feb9ad00e179273f75a6a3 (patch) | |
tree | 999217c65b333c8731a3d65a06b0cd94593d646e /libs/hwui/renderthread/DrawFrameTask.cpp | |
parent | 250bb6e3e045a88022db526b074e7ab38c47d93c (diff) |
Return the cursor position in screen coordinates
From its beginning, InputMethodService#onUpdateCursor has
provided the cursor position in local coordinates in the attached
view. However, the local coordinates is not useful for IMEs
to render a floating UI near the cursor because the IME is not
able to know the origin of the attached view.
With this CL, CURSOR_ANCHOR_MONITOR_MODE_CURSOR_RECT also means
that the IME will receive the cursor position in screen
coordinates. Because this is a new constant in the next release,
conditionally changing the coordinates never causes
compatibility issues as long as its behavior is well documented.
BUG: 14323360
Change-Id: I3acf2317ae1d763d11dae5ef73c2a1348b377c71
Diffstat (limited to 'libs/hwui/renderthread/DrawFrameTask.cpp')
0 files changed, 0 insertions, 0 deletions