refactor: better solution for resizable frameless DCHECK (#33790)

* refactor: better solution for resizable frameless DCHECK

* fix: also implement TargetForRectin WinFrameView
This commit is contained in:
Shelley Vohr 2022-04-29 02:34:12 +02:00 committed by GitHub
parent 192a7fad0d
commit fb534c927a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 36 additions and 9 deletions

View file

@ -61,6 +61,9 @@ class WinFrameView : public FramelessView {
int FrameBorderThickness() const;
// views::ViewTargeterDelegate:
views::View* TargetForRect(views::View* root, const gfx::Rect& rect) override;
// Returns the thickness of the window border for the top edge of the frame,
// which is sometimes different than FrameBorderThickness(). Does not include
// the titlebar/tabstrip area. If |restored| is true, this is calculated as if