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

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

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

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

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

* refactor: make ChildPair private
This commit is contained in:
Charles Kerr 2025-04-07 16:23:36 -05:00 committed by GitHub
parent e22b83abf2
commit 4bb7a4ceb0
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();