public content::WebContentsObserver,
public content::WebContentsUserData<WebContentsModalDialogManager> {
public:
- virtual ~WebContentsModalDialogManager();
+ ~WebContentsModalDialogManager() override;
WebContentsModalDialogManagerDelegate* delegate() const { return delegate_; }
void SetDelegate(WebContentsModalDialogManagerDelegate* d);
// Focus the topmost modal dialog. IsDialogActive() must be true when calling
// this function.
- void FocusTopmostDialog();
+ void FocusTopmostDialog() const;
- // Overriden from SingleWebContentsDialogManagerDelegate:
- virtual content::WebContents* GetWebContents() const OVERRIDE;
- // Called when a WebContentsModalDialogs we own is about to be closed.
- virtual void WillClose(NativeWebContentsModalDialog dialog) OVERRIDE;
+ // SingleWebContentsDialogManagerDelegate:
+ content::WebContents* GetWebContents() const override;
+ void WillClose(NativeWebContentsModalDialog dialog) override;
// For testing.
class TestApi {
private:
explicit WebContentsModalDialogManager(content::WebContents* web_contents);
friend class content::WebContentsUserData<WebContentsModalDialogManager>;
+ friend class PopupManager;
struct DialogState {
DialogState(NativeWebContentsModalDialog dialog,
void CloseAllDialogs();
// Overridden from content::WebContentsObserver:
- virtual void DidNavigateMainFrame(
+ void DidNavigateMainFrame(
const content::LoadCommittedDetails& details,
- const content::FrameNavigateParams& params) OVERRIDE;
- virtual void DidGetIgnoredUIEvent() OVERRIDE;
- virtual void WasShown() OVERRIDE;
- virtual void WasHidden() OVERRIDE;
- virtual void WebContentsDestroyed() OVERRIDE;
- virtual void DidAttachInterstitialPage() OVERRIDE;
+ const content::FrameNavigateParams& params) override;
+ void DidGetIgnoredUIEvent() override;
+ void WasShown() override;
+ void WasHidden() override;
+ void WebContentsDestroyed() override;
+ void DidAttachInterstitialPage() override;
// Delegate for notifying our owner about stuff. Not owned by us.
WebContentsModalDialogManagerDelegate* delegate_;