Commit 96aee2cc authored by Yuwei Huang's avatar Yuwei Huang Committed by Commit Bot

[CRD iOS] Allow HostViewController to auto-hide the home indicator

This CL makes HostViewController request to autohide the home indicator
(the bar acting like a virtual home button), so that user can see
things on the bottom after the home indicator times out.

This CL is dependent on internal CL:
https://chrome-internal-review.googlesource.com/c/chrome/ios_internal/+/666568

Bug: 876014
Change-Id: I4d5e3f983100dd43f84f5d422bba31207707c651
Reviewed-on: https://chromium-review.googlesource.com/1187655Reviewed-by: default avatarJamie Walch <jamiewalch@chromium.org>
Commit-Queue: Yuwei Huang <yuweih@chromium.org>
Cr-Commit-Position: refs/heads/master@{#585678}
parent a4eaff2a
...@@ -187,6 +187,12 @@ static NSString* const kFeedbackContext = @"InSessionFeedbackContext"; ...@@ -187,6 +187,12 @@ static NSString* const kFeedbackContext = @"InSessionFeedbackContext";
return YES; return YES;
} }
- (BOOL)prefersHomeIndicatorAutoHidden {
// Allow home indicator to timeout so that user can see desktop on the bottom
// of the screen.
return YES;
}
- (void)viewDidAppear:(BOOL)animated { - (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated]; [super viewDidAppear:animated];
[_client.displayHandler createRendererContext:_hostView]; [_client.displayHandler createRendererContext:_hostView];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment