Unreviewed, fix iOS build with recent SDKs.
[WebKit-https.git] / Source / WebKit / UIProcess / ios / fullscreen / WKFullScreenViewController.mm
index 990509c..12ab1df 100644 (file)
@@ -179,8 +179,10 @@ private:
     if (!self)
         return nil;
 
     if (!self)
         return nil;
 
+ALLOW_DEPRECATED_DECLARATIONS_BEGIN
     _nonZeroStatusBarHeight = UIApplication.sharedApplication.statusBarFrame.size.height;
     [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_statusBarFrameDidChange:) name:UIApplicationDidChangeStatusBarFrameNotification object:nil];
     _nonZeroStatusBarHeight = UIApplication.sharedApplication.statusBarFrame.size.height;
     [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_statusBarFrameDidChange:) name:UIApplicationDidChangeStatusBarFrameNotification object:nil];
+ALLOW_DEPRECATED_DECLARATIONS_END
     _secheuristic.setRampUpSpeed(Seconds(0.25));
     _secheuristic.setRampDownSpeed(Seconds(1.));
     _secheuristic.setXWeight(0);
     _secheuristic.setRampUpSpeed(Seconds(0.25));
     _secheuristic.setRampDownSpeed(Seconds(1.));
     _secheuristic.setXWeight(0);
@@ -445,7 +447,9 @@ private:
         [self._webView _beginAnimatedResizeWithUpdates:^{
             [self._webView _overrideLayoutParametersWithMinimumLayoutSize:size maximumUnobscuredSizeOverride:size];
         }];
         [self._webView _beginAnimatedResizeWithUpdates:^{
             [self._webView _overrideLayoutParametersWithMinimumLayoutSize:size maximumUnobscuredSizeOverride:size];
         }];
+ ALLOW_DEPRECATED_DECLARATIONS_BEGIN
         [self._webView _setInterfaceOrientationOverride:[UIApp statusBarOrientation]];
         [self._webView _setInterfaceOrientationOverride:[UIApp statusBarOrientation]];
+ ALLOW_DEPRECATED_DECLARATIONS_END
     } completion:^(id <UIViewControllerTransitionCoordinatorContext>context) {
         [self._webView _endAnimatedResize];
     }];
     } completion:^(id <UIViewControllerTransitionCoordinatorContext>context) {
         [self._webView _endAnimatedResize];
     }];
@@ -536,7 +540,9 @@ private:
 
 - (void)_statusBarFrameDidChange:(NSNotificationCenter *)notification
 {
 
 - (void)_statusBarFrameDidChange:(NSNotificationCenter *)notification
 {
+ALLOW_DEPRECATED_DECLARATIONS_BEGIN
     CGFloat height = UIApplication.sharedApplication.statusBarFrame.size.height;
     CGFloat height = UIApplication.sharedApplication.statusBarFrame.size.height;
+ALLOW_DEPRECATED_DECLARATIONS_END
     if (!height || height == _nonZeroStatusBarHeight)
         return;
 
     if (!height || height == _nonZeroStatusBarHeight)
         return;