summaryrefslogtreecommitdiffstats
path: root/core/java/com
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2010-06-18 18:09:33 -0700
committerDianne Hackborn <hackbod@google.com>2010-06-22 11:21:50 -0700
commita95e4cb62f3642cb190d032dbf7dc40d9ecc6973 (patch)
treeae4437444a3d3ebeff48dabfd1e9c11fc14620ac /core/java/com
parentef730e6ececa96a3e0576140eea707f7c48cd66c (diff)
downloadframeworks_base-a95e4cb62f3642cb190d032dbf7dc40d9ecc6973.zip
frameworks_base-a95e4cb62f3642cb190d032dbf7dc40d9ecc6973.tar.gz
frameworks_base-a95e4cb62f3642cb190d032dbf7dc40d9ecc6973.tar.bz2
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
Diffstat (limited to 'core/java/com')
-rw-r--r--core/java/com/android/internal/view/RootViewSurfaceTaker.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/java/com/android/internal/view/RootViewSurfaceTaker.java b/core/java/com/android/internal/view/RootViewSurfaceTaker.java
index fcb1645..991266a 100644
--- a/core/java/com/android/internal/view/RootViewSurfaceTaker.java
+++ b/core/java/com/android/internal/view/RootViewSurfaceTaker.java
@@ -1,5 +1,6 @@
package com.android.internal.view;
+import android.view.InputConsumer;
import android.view.SurfaceHolder;
/** hahahah */
@@ -8,4 +9,5 @@ public interface RootViewSurfaceTaker {
void setSurfaceType(int type);
void setSurfaceFormat(int format);
void setSurfaceKeepScreenOn(boolean keepOn);
+ InputConsumer.Callback willYouTakeTheInputConsumer();
}