Chromium Code Reviews| Index: components/web_modal/web_contents_modal_dialog_manager.cc |
| diff --git a/components/web_modal/web_contents_modal_dialog_manager.cc b/components/web_modal/web_contents_modal_dialog_manager.cc |
| index 52b404580291059c6c5d0bd1338ffbb2788ad2e6..ed1f9548708ef9db990e8ec76c1eabdb4c76d7b1 100644 |
| --- a/components/web_modal/web_contents_modal_dialog_manager.cc |
| +++ b/components/web_modal/web_contents_modal_dialog_manager.cc |
| @@ -41,6 +41,15 @@ void WebContentsModalDialogManager::ShowModalDialog(gfx::NativeWindow dialog) { |
| ShowDialogWithManager(dialog, std::move(mgr)); |
| } |
| +#if defined(OS_MACOSX) |
| +void WebContentsModalDialogManager::ShowModalDialogWithOverlay( |
| + gfx::NativeWindow dialog) { |
| + std::unique_ptr<SingleWebContentsDialogManager> mgr( |
|
tapted
2016/05/31 07:44:48
Is the compiler still happy if we move these lines
Patti Lor
2016/06/06 06:52:46
Done.
|
| + CreateNativeWebModalOverlayManager(dialog, this)); |
| + ShowDialogWithManager(dialog, std::move(mgr)); |
| +} |
| +#endif |
| + |
| // TODO(gbillock): Maybe "ShowBubbleWithManager"? |
| void WebContentsModalDialogManager::ShowDialogWithManager( |
| gfx::NativeWindow dialog, |