| Index: components/web_modal/web_contents_modal_dialog_manager.h
|
| diff --git a/components/web_modal/web_contents_modal_dialog_manager.h b/components/web_modal/web_contents_modal_dialog_manager.h
|
| index 6505301c215f73fa3e250b800f239dd3de988208..e5782592ebd037cf097319a2cdb2f776ce557c78 100644
|
| --- a/components/web_modal/web_contents_modal_dialog_manager.h
|
| +++ b/components/web_modal/web_contents_modal_dialog_manager.h
|
| @@ -7,6 +7,7 @@
|
|
|
| #include <deque>
|
| #include <memory>
|
| +#include <set>
|
|
|
| #include "base/macros.h"
|
| #include "components/web_modal/single_web_contents_dialog_manager.h"
|
| @@ -37,6 +38,12 @@ class WebContentsModalDialogManager
|
| // WillClose() when it is being destroyed.
|
| void ShowModalDialog(gfx::NativeWindow dialog);
|
|
|
| + // Shows the dialog as a non clipped web contents modal dialog. The dialog
|
| + // will be able to extend outside the bounds of the parent window on platforms
|
| + // where this is allowed. The dialog will notify via WillClose() when it is
|
| + // being destroyed.
|
| + void ShowNonClippedModalDialog(gfx::NativeWindow dialog);
|
| +
|
| // Allow clients to supply their own native dialog manager. Suitable for
|
| // bubble clients.
|
| void ShowDialogWithManager(
|
| @@ -53,6 +60,7 @@ class WebContentsModalDialogManager
|
| // SingleWebContentsDialogManagerDelegate:
|
| content::WebContents* GetWebContents() const override;
|
| void WillClose(gfx::NativeWindow dialog) override;
|
| + bool IsNonClipped(gfx::NativeWindow dialog) const override;
|
|
|
| // For testing.
|
| class TestApi {
|
| @@ -114,6 +122,9 @@ class WebContentsModalDialogManager
|
| // All active dialogs.
|
| WebContentsModalDialogList child_dialogs_;
|
|
|
| + // All non clipped active dialogs.
|
| + std::set<gfx::NativeWindow> nonclipped_child_dialogs_;
|
| +
|
| // True while closing the dialogs on WebContents close.
|
| bool closing_all_dialogs_;
|
|
|
|
|