summaryrefslogtreecommitdiff
path: root/chromium/components/infobars/README.md
blob: 25e190050968d3eaeaa767469423438e8a9755eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
The infobars component contains the core types for infobars, a UI surface that
shows informative but generally nonblocking updates to users related to their
current page content.  This is used on both desktop and mobile, though the
presentation and available infobars both differ.  On desktop, for example,
infobars are a thin bar atop the page, while on Android an "infobar" is a
larger, popup-like surface at screen bottom.

Infobars are a problematic UI design for various reasons (spoofability,
dynamically modifying content area size, not being visually anchored and scoped
well), and are occasionally used for purposes outside their original intent
(e.g. the "default browser" infobar, which does not relate to the page content).
Be cautious about adding new ones.

Infobars is a layered component
(https://sites.google.com/a/chromium.org/dev/developers/design-documents/layered-components-design)
to enable it to be shared cleanly on iOS.

On Android, Infobars have been deprecated in favor of the new Message UI.
Please consider using this new Message UI.
See components/messages/README.md for more details.

Directory structure:
android/: Android-specific specializations
core/: Shared code that does not depend on src/content/
content/: Driver for the shared code based on the content layer