summaryrefslogtreecommitdiffstats
path: root/services/input
diff options
context:
space:
mode:
authorDaniel Sandler <dsandler@android.com>2011-04-22 07:55:02 -0400
committerDaniel Sandler <dsandler@google.com>2011-04-27 15:00:31 -0400
commit8956dbbc5f292d8b79072ae73b25f2114c8c7479 (patch)
treec4519bd579f2520324a7e759e96dbf93f9168fac /services/input
parent6d8a98afb0bda0d8a38b8839af94918c76a8fd2c (diff)
downloadframeworks_base-8956dbbc5f292d8b79072ae73b25f2114c8c7479.zip
frameworks_base-8956dbbc5f292d8b79072ae73b25f2114c8c7479.tar.gz
frameworks_base-8956dbbc5f292d8b79072ae73b25f2114c8c7479.tar.bz2
On-screen navigation bar (separate from the status bar).
In Honeycomb we introduced navigation controls in the status bar, for xlarge devices without physical buttons. What about phones? The status bar is pretty cramped already, and besides, it's at the top of the display most of the time, not at the bottom where your thumb is likely to be. Enter the navigation bar. It's a new window type that appears atop almost everything (including the keyguard); the window manager subtracts its rectangle from the default visible rectangle of other windows (including the status bar and notification shade). However, it behaves (on phones) like the status bar in that applications that request fullscreen windows can get access to those pixels. Well, almost; they need cooperation from the navigation bar implementation to make the navbar disappear, just like the status bar. The current SystemUI implementation of the navigation bar on phones is still rough, but it has the basics: + back, home, and menu keys (NB: we're showing menu all the time right now because checking the api level of the package owning the top window is currently a poor indicator of whether the app requires the menu key) + it tries to stick to the same physical end of the device, regardless of device orientation (on a phone, this is the strip of land closest to the microphone) Change-Id: Ic613a3351220af0bbfbdef63e1d99cbefd5ed1c2
Diffstat (limited to 'services/input')
-rw-r--r--services/input/InputWindow.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/input/InputWindow.h b/services/input/InputWindow.h
index f04fb02..208353d 100644
--- a/services/input/InputWindow.h
+++ b/services/input/InputWindow.h
@@ -119,6 +119,7 @@ struct InputWindow {
TYPE_DRAG = FIRST_SYSTEM_WINDOW+16,
TYPE_STATUS_BAR_SUB_PANEL = FIRST_SYSTEM_WINDOW+17,
TYPE_POINTER = FIRST_SYSTEM_WINDOW+18,
+ TYPE_NAVIGATION_BAR = FIRST_SYSTEM_WINDOW+19,
LAST_SYSTEM_WINDOW = 2999,
};