• andresantoso's avatar
    MacViews: Unify web contents modal dialog types · 5f1263bb
    andresantoso authored
    The #if around NativeWebContentsModalDialog is a problem for building
    the MacViews browser. Unify them to be gfx::NativeWindow on all platforms.
    Refactor the cocoa side to move code from ConstrainedWindowMac into
    SingleWebContentsDialogManagerCocoa, while keeping
    ConstrainedWindowMac's interface the same as before.
    The Views side only needs simple changes from NativeView to NativeWindow.
    
    BUG=425229
    
    Review URL: https://codereview.chromium.org/866263008
    
    Cr-Commit-Position: refs/heads/master@{#318813}
    5f1263bb
native_web_contents_modal_dialog.h 593 Bytes