Update browser_view.cc

This commit is contained in:
Alexander David Frick 2022-07-07 18:30:47 -05:00 committed by GitHub
parent a3ea5de4b7
commit 4665d013f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1169,6 +1169,14 @@ bool BrowserView::GetIsPictureInPictureType() const {
return browser_->is_type_picture_in_picture();
}
float BrowserView::GetInitialAspectRatio() const {
return browser_->create_params().initial_aspect_ratio;
}
bool BrowserView::GetLockAspectRatio() const {
return browser_->create_params().lock_aspect_ratio;
}
bool BrowserView::GetTopControlsSlideBehaviorEnabled() const {
return top_controls_slide_controller_ &&
top_controls_slide_controller_->IsEnabled();