electron/shell/browser/ui/views
msizanoen1 7b8fb2b074
fix: Wayland general CSD fixes (#34955)
* fix: broken wayland window decorations due to botched chromium update

The `GetTitlebarBounds().height()` is obviously intended to be placed in
the `top` parameter, which used to be the second one before upstream
removed multi-parameter `gfx::Rect::Inset`, but it's the first parameter
for `gfx::Insets::TLBR`, which was intended to replace the removed
`Inset` function. However, whoever updated Chromium kept the parameter
unchanged, causing the title bar height to be passed to the `left`
parameter, causing the window title bar to be unclickable.

* fix: wayland window top bar buttons unclickable

Use NonClientFrameView::TargetForRect for the ClientFrameViewLinux
implementation because the default inherited from FramelessView blocks
any non-HTCLIENT events.

* fix: add maximized parameter to LinuxUI::GetWindowFrameProvider

* fix: pass frame_->IsMaximized() to GetWindowFrameProvider

This ensures that the toolkit renders the window decorations in maximized mode
while the window is maximized to ensure that there is no empty space around the window.
2022-08-03 17:51:52 +09:00
..
autofill_popup_view.cc fix: <datalist> bounds vertical cutoff (#34759) 2022-06-29 10:14:03 +02:00
autofill_popup_view.h chore: add ELECTRON_ prefix to C++ include guards (#31925) 2021-11-22 16:34:31 +09:00
client_frame_view_linux.cc fix: Wayland general CSD fixes (#34955) 2022-08-03 17:51:52 +09:00
client_frame_view_linux.h fix: Wayland general CSD fixes (#34955) 2022-08-03 17:51:52 +09:00
electron_views_delegate.cc chore: bump chromium to 105.0.5187.0 (main) (#34921) 2022-07-20 13:03:34 +02:00
electron_views_delegate.h chore: bump chromium to 100.0.4857.0 (main) (#32419) 2022-02-09 18:58:52 -08:00
electron_views_delegate_win.cc chore: fix spelling errors in multiple files (#34574) 2022-06-16 16:46:11 +09:00
frameless_view.cc refactor: better solution for resizable frameless DCHECK (#33790) 2022-04-28 20:34:12 -04:00
frameless_view.h refactor: better solution for resizable frameless DCHECK (#33790) 2022-04-28 20:34:12 -04:00
global_menu_bar_registrar_x11.cc chore: move global_menu_bar_registrar_x11 out of chromium_src (#30837) 2021-09-06 09:03:07 +02:00
global_menu_bar_registrar_x11.h chore: add ELECTRON_ prefix to C++ include guards (#31925) 2021-11-22 16:34:31 +09:00
global_menu_bar_x11.cc chore: move global_menu_bar_registrar_x11 out of chromium_src (#30837) 2021-09-06 09:03:07 +02:00
global_menu_bar_x11.h chore: add ELECTRON_ prefix to C++ include guards (#31925) 2021-11-22 16:34:31 +09:00
inspectable_web_contents_view_views.cc fix: persist BrowserView content bounds when calculating layout (#32747) 2022-03-23 10:16:15 +09:00
inspectable_web_contents_view_views.h chore: add ELECTRON_ prefix to C++ include guards (#31925) 2021-11-22 16:34:31 +09:00
menu_bar.cc refactor: use Get/SetID from views:View in Button (#35022) 2022-07-25 09:46:14 +02:00
menu_bar.h chore: bump chromium to 100.0.4857.0 (main) (#32419) 2022-02-09 18:58:52 -08:00
menu_delegate.cc refactor: use Get/SetID from views:View in Button (#35022) 2022-07-25 09:46:14 +02:00
menu_delegate.h chore: add ELECTRON_ prefix to C++ include guards (#31925) 2021-11-22 16:34:31 +09:00
menu_model_adapter.cc
menu_model_adapter.h chore: add ELECTRON_ prefix to C++ include guards (#31925) 2021-11-22 16:34:31 +09:00
native_frame_view.cc feat: make win.setAspectRatio() work on Windows (#26941) 2021-01-05 17:17:33 +09:00
native_frame_view.h chore: add ELECTRON_ prefix to C++ include guards (#31925) 2021-11-22 16:34:31 +09:00
root_view.cc chore: bump chromium to 100.0.4857.0 (main) (#32419) 2022-02-09 18:58:52 -08:00
root_view.h chore: add ELECTRON_ prefix to C++ include guards (#31925) 2021-11-22 16:34:31 +09:00
submenu_button.cc chore: bump chromium to 100.0.4857.0 (main) (#32419) 2022-02-09 18:58:52 -08:00
submenu_button.h chore: add ELECTRON_ prefix to C++ include guards (#31925) 2021-11-22 16:34:31 +09:00
win_caption_button.cc fix: update Windows caption buttons to match Win11 style (#34790) 2022-07-12 09:13:40 +02:00
win_caption_button.h fix: update Windows caption buttons to match Win11 style (#34790) 2022-07-12 09:13:40 +02:00
win_caption_button_container.cc fix: WCO respects maximizable/closable/minimizable (#34677) 2022-06-23 13:08:32 -04:00
win_caption_button_container.h fix: WCO pressed background state updates (#34771) 2022-07-07 17:17:20 +02:00
win_frame_view.cc fix: WCO crash on bad titlebarStyle (#34140) 2022-05-17 11:50:27 -04:00
win_frame_view.h fix: WCO respects maximizable/closable/minimizable (#34677) 2022-06-23 13:08:32 -04:00
win_icon_painter.cc fix: update Windows caption buttons to match Win11 style (#34790) 2022-07-12 09:13:40 +02:00
win_icon_painter.h fix: update Windows caption buttons to match Win11 style (#34790) 2022-07-12 09:13:40 +02:00