• Elly Fong-Jones's avatar
    mac: fix restoring minimized windows · 129abeac
    Elly Fong-Jones authored
    This change:
    1) Has BridgedNativeWidgetHostImpl notify the owning Widget when it becomes
       minimized
    2) Has session restore not activate minimized browser windows when selecting
       a restored tab
    3) Has session restore not show a newly created browser window if it's
       minimized
    
    restore save; without this change, the widget will not get saved as minimized.
    window. On Mac, showing/activating a window implies de-minimizing it, so this
    is required to avoid de-minimizing saved minimized windows, but I think it is
    necessary on other platforms as well.
    
    Test steps:
    1) Start Chromium
    2) Create a second browser window (cmd-n) and minimize it
    3) In the first window, chrome://restart
    
    Before this change, both browser windows appear after restart; after this
    change, the first window appears and the second stays minimized.
    
    Note that there is a graphical glitch when first restoring a window that is
    minimized this way: the window paints as blank for a few frames while running
    the deminiaturize animation.
    
    Bug: 888218
    Change-Id: I8ac121408336a7d6aeedd2b27cd2c9c9d20a18f2
    Reviewed-on: https://chromium-review.googlesource.com/c/1268396Reviewed-by: default avatarScott Violet <sky@chromium.org>
    Commit-Queue: Elly Fong-Jones <ellyjones@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#599961}
    129abeac
session_restore_browsertest_chromeos.cc 7.11 KB