fix: Add support for Wayland window decorations (#29618)
Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com> Co-authored-by: Jeremy Rose <nornagon@nornagon.net>
This commit is contained in:
parent
cabad35383
commit
7caa88c46f
12 changed files with 914 additions and 16 deletions
|
@ -28,9 +28,14 @@ class FramelessView : public views::NonClientFrameView {
|
|||
virtual void Init(NativeWindowViews* window, views::Widget* frame);
|
||||
|
||||
// Returns whether the |point| is on frameless window's resizing border.
|
||||
int ResizingBorderHitTest(const gfx::Point& point);
|
||||
virtual int ResizingBorderHitTest(const gfx::Point& point);
|
||||
|
||||
protected:
|
||||
// Helper function for subclasses to implement ResizingBorderHitTest with a
|
||||
// custom resize inset.
|
||||
int ResizingBorderHitTestImpl(const gfx::Point& point,
|
||||
const gfx::Insets& resize_border);
|
||||
|
||||
// views::NonClientFrameView:
|
||||
gfx::Rect GetBoundsForClientView() const override;
|
||||
gfx::Rect GetWindowBoundsForClientBounds(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue