• Stepan Khapugin's avatar
    [multiball] Replace AppDelegate's window with Scene's window. · 8f80402d
    Stepan Khapugin authored
    Adds |window| property to SceneState. It is backed by SceneDelegate's
    |window| property and by UIWindowScene's |scenes| property on iOS 13
    with multiwindow; or with an ivar otherwise. When it's an ivar,
    SceneController is now responsible for window creation.
    Note that the getter for AppDelegate's window remains for iOS 12 compat.
    Note that the window is always a ChromeOverlayWindow.
    
    have tested it manually on my machine and it still works)
    
    Bug: none
    Test: verify that the incognito screenshot blocker works as expected (I
    Change-Id: Ic418ece228854e43aa0e4c9d9e503c1b54bca901
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1827373
    Commit-Queue: Stepan Khapugin <stkhapugin@chromium.org>
    Reviewed-by: default avatarMark Cogan <marq@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#701569}
    8f80402d
scene_state.h 2.08 KB