OSDN Git Service

Floating toolbars: Add content rect related methods to API
authorClara Bayarri <clarabayarri@google.com>
Wed, 25 Feb 2015 14:44:34 +0000 (14:44 +0000)
committerClara Bayarri <clarabayarri@google.com>
Tue, 17 Mar 2015 01:07:14 +0000 (01:07 +0000)
commitcba5fc22d17eafd755d9a248841bc9b69fb34763
treea082589b0801ac00caaf200e4b852bc03f91269f
parent2fbea7ff90018fb75db871bdc9545d0aba676ac9
Floating toolbars: Add content rect related methods to API

This CL adds the ActionMode.Callback2 abstract class and the rect
invalidate method needed to add the content rect API for Floating
Toolbars. It also extends the existing ActionModeCallbackWrapper in
DecorView to handle the case when ActionMode.Callback is provided
instead of Callback2, falling back to a default implementation.

Change-Id: Ia918ddfcfdf73d0e4cafd24c4a0573245d497cfe
api/current.txt
api/system-current.txt
core/java/android/view/ActionMode.java
core/java/android/view/PhoneWindow.java