From d76b67c340d1564abf8d14d976fdaf83bf2b3320 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Tue, 13 Jul 2010 17:48:30 -0700 Subject: IME events are now dispatched to native applications. And also: - APIs to show and hide the IME, and control its interaction with the app. - APIs to tell the app when its window resizes and needs to be redrawn. - API to tell the app the content rectangle of its window (to layout around the IME or status bar). There is still a problem with IME interaction -- we need a way for the app to deliver events to the IME before it handles them, so that for example the back key will close the IME instead of finishing the app. Change-Id: I37b75fc2ec533750ef36ca3aedd2f0cc0b5813cd --- policy/src/com/android/internal/policy/impl/PhoneWindow.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'policy/src') diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindow.java b/policy/src/com/android/internal/policy/impl/PhoneWindow.java index 5642588..b9232c8 100644 --- a/policy/src/com/android/internal/policy/impl/PhoneWindow.java +++ b/policy/src/com/android/internal/policy/impl/PhoneWindow.java @@ -104,7 +104,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { // mDecor itself, or a child of mDecor where the contents go. private ViewGroup mContentParent; - SurfaceHolder.Callback mTakeSurfaceCallback; + SurfaceHolder.Callback2 mTakeSurfaceCallback; BaseSurfaceHolder mSurfaceHolder; InputQueue.Callback mTakeInputQueueCallback; @@ -248,7 +248,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { } @Override - public void takeSurface(SurfaceHolder.Callback callback) { + public void takeSurface(SurfaceHolder.Callback2 callback) { mTakeSurfaceCallback = callback; } @@ -2038,7 +2038,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { } } - public android.view.SurfaceHolder.Callback willYouTakeTheSurface() { + public android.view.SurfaceHolder.Callback2 willYouTakeTheSurface() { return mFeatureId < 0 ? mTakeSurfaceCallback : null; } -- cgit v1.1