From a95e4cb62f3642cb190d032dbf7dc40d9ecc6973 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Fri, 18 Jun 2010 18:09:33 -0700 Subject: First stab at attaching native event dispatching. Provides the basic infrastructure for a NativeActivity's native code to get an object representing its event stream that can be used to read input events. Still work to do, probably some API changes, and reasonable default key handling (so that for example back will still work). Change-Id: I6db891bc35dc9683181d7708eaed552b955a077e --- core/java/android/view/Window.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'core/java/android/view/Window.java') diff --git a/core/java/android/view/Window.java b/core/java/android/view/Window.java index 234deba75b71..b00d33d7e8fd 100644 --- a/core/java/android/view/Window.java +++ b/core/java/android/view/Window.java @@ -480,6 +480,13 @@ public abstract class Window { */ public abstract void takeSurface(SurfaceHolder.Callback callback); + /** + * Take ownership of this window's InputChannel. The window will no + * longer read and dispatch input events from the channel; it is your + * responsibility to do so. + */ + public abstract void takeInputChannel(InputConsumer.Callback callback); + /** * Return whether this window is being displayed with a floating style * (based on the {@link android.R.attr#windowIsFloating} attribute in -- cgit v1.2.3