Commit Graph
5 Commits
Author SHA1 Message Date
bridiver fb3c0f5561 buildtools/checkdeps/checkdeps.py brave --extra-repos=brave runs succesfully 2021-02-06 13:34:00 -07:00
Simon Hong 5f3914d5bc Use 2021 year in license sentence for new files 2021-02-04 11:02:20 +09:00
Simon Hong f66145d2c8 Fix lint/format error by npm run format 2021-02-04 11:02:20 +09:00
Simon Hong 336bde9378 Use multi select settings option for showing sidebar
Also app menu has sidebar submenu.
2021-02-04 11:02:19 +09:00
Simon Hong 71736d0c77 Initial Sidebar UI implementation
Resolves: https://github.com/brave/brave-browser/issues/12906

Sidebar component manages persisted items list in pref store.
SidebarService does it and store items list is shared per profile.

In chrome layer, sidebar is implemented with MVC model.
They are SidebarController, SidebarModel and Sidebar and many views implementations.
Each browser window has its own MVC. So, BraveBrowser(subclass of Browser) owns them.
SidebarModel manages each item's runtime state and it observes SidebarService to get
notification about item add or delete.

This change only implements initial native sidebar UI.

Sidebar feature is disabled by default and can enable via brave://flags only on nightly/local build.
During the runtime, sidebar can be toggled via settings.

Sidebar webviews don't work properly yet because their WebContentsDelegate is not set properly.
Implementing WebContentsDelegate will be done as a separate task.
2021-02-04 11:02:19 +09:00