Integrate ComplexSafeAreaConstraintChanged signal
Bug: 385221500 Change-Id: I1c2c4e8a0d919f2caf10a42ef50cca99104103c1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6143053 Commit-Queue: Wenyu Fu <wenyufu@chromium.org> Reviewed-by: Charlie Reis <creis@chromium.org> Cr-Commit-Position: refs/heads/main@{#1401961}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
16303a3cc0
commit
3e355357bb
content/browser/display_cutout
@ -42,7 +42,8 @@ void SafeAreaInsetsHost::NotifyViewportFitChanged(
|
||||
}
|
||||
|
||||
void SafeAreaInsetsHost::NotifyComplexSafeAreaConstraintChanged(bool value) {
|
||||
// TODO(crbug.com/385215539): Handle UI changes based on this signal.
|
||||
ComplexSafeAreaConstraintChangedForFrame(receivers_.GetCurrentTargetFrame(),
|
||||
value);
|
||||
}
|
||||
|
||||
void SafeAreaInsetsHost::SendSafeAreaToFrame(RenderFrameHost* rfh,
|
||||
|
@ -106,8 +106,9 @@ void SafeAreaInsetsHostImpl::ViewportFitChangedForFrame(
|
||||
void SafeAreaInsetsHostImpl::ComplexSafeAreaConstraintChangedForFrame(
|
||||
RenderFrameHost* rfh,
|
||||
bool has_constraint) {
|
||||
DCHECK(rfh);
|
||||
web_contents_impl_->NotifySafeAreaConstraintChanged(has_constraint);
|
||||
if (rfh == ActiveRenderFrameHost()) {
|
||||
web_contents_impl_->NotifySafeAreaConstraintChanged(has_constraint);
|
||||
}
|
||||
}
|
||||
|
||||
void SafeAreaInsetsHostImpl::MaybeActiveRenderFrameHostChanged() {
|
||||
|
Reference in New Issue
Block a user