fix: warning: default arguments on virtual or override methods (#49398)

fix: warning: default arguments on virtual or override methods are prohibited [google-default-arguments]

we never override these, so just make them nonvirtual
This commit is contained in:
Charles Kerr
2026-01-15 18:09:43 -06:00
committed by GitHub
parent 6ea7d6d5a4
commit c769361af2

View File

@@ -106,9 +106,9 @@ class NativeWindow : public base::SupportsUserData,
void SetPosition(const gfx::Point& position, bool animate = false);
[[nodiscard]] gfx::Point GetPosition() const;
virtual void SetContentSize(const gfx::Size& size, bool animate = false);
void SetContentSize(const gfx::Size& size, bool animate = false);
virtual gfx::Size GetContentSize() const;
virtual void SetContentBounds(const gfx::Rect& bounds, bool animate = false);
void SetContentBounds(const gfx::Rect& bounds, bool animate = false);
virtual gfx::Rect GetContentBounds() const;
virtual bool IsNormal() const;
virtual gfx::Rect GetNormalBounds() const = 0;