| Index: chrome/browser/ui/cocoa/constrained_window/constrained_window_sheet_controller.mm
|
| diff --git a/chrome/browser/ui/cocoa/constrained_window/constrained_window_sheet_controller.mm b/chrome/browser/ui/cocoa/constrained_window/constrained_window_sheet_controller.mm
|
| index 0c66e6fb62fce2d60b06661367919a0a5310cbdd..db2d49510aeaba86983932978e50002d3491038a 100644
|
| --- a/chrome/browser/ui/cocoa/constrained_window/constrained_window_sheet_controller.mm
|
| +++ b/chrome/browser/ui/cocoa/constrained_window/constrained_window_sheet_controller.mm
|
| @@ -198,6 +198,22 @@ NSRect GetSheetParentBoundsForParentView(NSView* view) {
|
| activeView_.reset();
|
| }
|
|
|
| +- (void)hideSheetForFullscreenTransition {
|
| + if (ConstrainedWindowSheetInfo* sheetInfo =
|
| + [self findSheetInfoForParentView:activeView_]) {
|
| + [sheetInfo hideSheet];
|
| + isSheetHiddenForFullscreen_ = YES;
|
| + }
|
| +}
|
| +
|
| +- (void)unhideSheetForFullscreenTransition {
|
| + isSheetHiddenForFullscreen_ = NO;
|
| + if (ConstrainedWindowSheetInfo* sheetInfo =
|
| + [self findSheetInfoForParentView:activeView_]) {
|
| + [self showSheet:[sheetInfo sheet] forParentView:activeView_];
|
| + }
|
| +}
|
| +
|
| - (NSPoint)originForSheet:(id<ConstrainedWindowSheet>)sheet
|
| withWindowSize:(NSSize)size {
|
| ConstrainedWindowSheetInfo* info = [self findSheetInfoForSheet:sheet];
|
| @@ -267,6 +283,9 @@ NSRect GetSheetParentBoundsForParentView(NSView* view) {
|
| }
|
|
|
| - (void)onParentWindowSizeDidChange:(NSNotification*)note {
|
| + if (isSheetHiddenForFullscreen_)
|
| + return;
|
| +
|
| [self updateSheetPosition:activeView_];
|
| }
|
|
|
|
|