summaryrefslogtreecommitdiffstats
path: root/core/java/android/view
diff options
context:
space:
mode:
authorMarco Nelissen <marcone@google.com>2009-11-09 15:21:13 -0800
committerMarco Nelissen <marcone@google.com>2009-11-09 17:39:33 -0800
commitbf6956b1d95442e9d9c483894d578fe6b7044cbb (patch)
treedd8e921d31d3182c90eba295bea96848cb221e06 /core/java/android/view
parente6ab011b8b8aa6c461e64cabb9b25d890d68edb1 (diff)
downloadframeworks_base-bf6956b1d95442e9d9c483894d578fe6b7044cbb.zip
frameworks_base-bf6956b1d95442e9d9c483894d578fe6b7044cbb.tar.gz
frameworks_base-bf6956b1d95442e9d9c483894d578fe6b7044cbb.tar.bz2
Add a way for wallpapers to know the delta between virtual screens.
Diffstat (limited to 'core/java/android/view')
-rw-r--r--core/java/android/view/IWindow.aidl2
-rw-r--r--core/java/android/view/IWindowSession.aidl4
-rw-r--r--core/java/android/view/ViewRoot.java3
3 files changed, 6 insertions, 3 deletions
diff --git a/core/java/android/view/IWindow.aidl b/core/java/android/view/IWindow.aidl
index 6bfc8b5..71302cb 100644
--- a/core/java/android/view/IWindow.aidl
+++ b/core/java/android/view/IWindow.aidl
@@ -62,7 +62,7 @@ oneway interface IWindow {
/**
* Called for wallpaper windows when their offsets change.
*/
- void dispatchWallpaperOffsets(float x, float y, boolean sync);
+ void dispatchWallpaperOffsets(float x, float y, float xStep, float yStep, boolean sync);
void dispatchWallpaperCommand(String action, int x, int y,
int z, in Bundle extras, boolean sync);
diff --git a/core/java/android/view/IWindowSession.aidl b/core/java/android/view/IWindowSession.aidl
index 7e7a38f..b6b009b 100644
--- a/core/java/android/view/IWindowSession.aidl
+++ b/core/java/android/view/IWindowSession.aidl
@@ -113,8 +113,10 @@ interface IWindowSession {
/**
* For windows with the wallpaper behind them, and the wallpaper is
* larger than the screen, set the offset within the screen.
+ * For multi screen launcher type applications, xstep and ystep indicate
+ * how big the increment is from one screen to another.
*/
- void setWallpaperPosition(IBinder windowToken, float x, float y);
+ void setWallpaperPosition(IBinder windowToken, float x, float y, float xstep, float ystep);
void wallpaperOffsetsComplete(IBinder window);
diff --git a/core/java/android/view/ViewRoot.java b/core/java/android/view/ViewRoot.java
index f4593f5..bef3e58 100644
--- a/core/java/android/view/ViewRoot.java
+++ b/core/java/android/view/ViewRoot.java
@@ -2895,7 +2895,8 @@ public final class ViewRoot extends Handler implements ViewParent,
}
}
- public void dispatchWallpaperOffsets(float x, float y, boolean sync) {
+ public void dispatchWallpaperOffsets(float x, float y, float xStep, float yStep,
+ boolean sync) {
if (sync) {
try {
sWindowSession.wallpaperOffsetsComplete(asBinder());