refactor: make api::View methods const, private (#46551)

* refactor: make api::View::GetBounds() const

Co-authored-by: Charles Kerr <charles@charleskerr.com>

* refactor: make api::View::OnViewBoundsChanged() private

refactor: make api::View::OnViewIsDeleting() private

refactor: make api::View::OnChildViewRemoved() private

Co-authored-by: Charles Kerr <charles@charleskerr.com>

* refactor: make ChildPair private

Co-authored-by: Charles Kerr <charles@charleskerr.com>

---------

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
trop[bot] 2025-04-08 08:53:17 -05:00 committed by GitHub
parent de933233e6
commit feaa9ec5b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 10 deletions

View file

@ -280,7 +280,7 @@ void View::SetBounds(const gfx::Rect& bounds) {
view_->SetBoundsRect(bounds);
}
gfx::Rect View::GetBounds() {
gfx::Rect View::GetBounds() const {
if (!view_)
return {};
return view_->bounds();