summaryrefslogtreecommitdiffstats
path: root/chromium/docs/website/site/developers/design-documents/aura/views/index.md
blob: e2e9d0fe175856b621652cd49e23dbe278f78374 (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
26
27
28
29
---
breadcrumbs:
- - /developers
  - For Developers
- - /developers/design-documents
  - Design Documents
- - /developers/design-documents/aura
  - Aura
page_name: views
title: Views
---

Views is a user interface framework built on a type called, confusingly, View.
Responsible for providing the content of our Aura windows, most of this code is
also used by Desktop Chrome on Windows. Only the NativeWidget implementation
differs (for now). Views also provides a set of useful reusable controls like
Buttons, Menus, etc.

[<img alt="image"
src="/developers/design-documents/aura/views/Views.png">](/developers/design-documents/aura/views/Views.png)

Views is somewhat analogous to Aura, with a native host (NativeWidget
implementations), a View hierarchy within a RootView that handles event
dispatch.

The primary difference is that this system was designed and built before beng
developed a healthy skepticism of is-a relationships, and so you accomplish
rendering, event handling and layout here by subclassing View, rather than
implementing a delegate interface as in Aura.