| Index: chrome/browser/ui/web_contents_modal_dialog_manager.h
|
| diff --git a/chrome/browser/ui/web_contents_modal_dialog_manager.h b/chrome/browser/ui/web_contents_modal_dialog_manager.h
|
| index 3a392d493ac253c142ed361bea3dd4106dc2fb2a..79de3fdcfa8a97ea43a02ef6cbf8535c59510aea 100644
|
| --- a/chrome/browser/ui/web_contents_modal_dialog_manager.h
|
| +++ b/chrome/browser/ui/web_contents_modal_dialog_manager.h
|
| @@ -7,8 +7,11 @@
|
|
|
| #include <deque>
|
|
|
| +#include "base/memory/scoped_ptr.h"
|
| +#include "chrome/browser/ui/web_contents_modal_dialog_manager_ui_delegate.h"
|
| #include "content/public/browser/web_contents_observer.h"
|
| #include "content/public/browser/web_contents_user_data.h"
|
| +#include "ui/gfx/native_widget_types.h"
|
|
|
| class WebContentsModalDialog;
|
| class WebContentsModalDialogManagerDelegate;
|
| @@ -23,6 +26,9 @@ class WebContentsModalDialogManager
|
| WebContentsModalDialogManagerDelegate* delegate() const { return delegate_; }
|
| void set_delegate(WebContentsModalDialogManagerDelegate* d) { delegate_ = d; }
|
|
|
| + static WebContentsModalDialogManagerUIDelegate* CreateUIDelegate(
|
| + WebContentsModalDialogManager* manager);
|
| +
|
| // Adds the given dialog to the list of child dialogs. The dialog will notify
|
| // via WillClose() when it is being destroyed.
|
| void AddDialog(WebContentsModalDialog* dialog);
|
| @@ -47,6 +53,9 @@ class WebContentsModalDialogManager
|
| : manager_(manager) {}
|
|
|
| void CloseAllDialogs() { manager_->CloseAllDialogs(); }
|
| + void ResetUIDelegate(WebContentsModalDialogManagerUIDelegate* delegate) {
|
| + manager_->ui_delegate_.reset(delegate);
|
| + }
|
|
|
| private:
|
| WebContentsModalDialogManager* manager_;
|
| @@ -86,6 +95,9 @@ class WebContentsModalDialogManager
|
| // Delegate for notifying our owner about stuff. Not owned by us.
|
| WebContentsModalDialogManagerDelegate* delegate_;
|
|
|
| + // Delegate for dialog UI-specific functions.
|
| + scoped_ptr<WebContentsModalDialogManagerUIDelegate> ui_delegate_;
|
| +
|
| // All active dialogs.
|
| WebContentsModalDialogList child_dialogs_;
|
|
|
|
|