blob: bb944f788e322fcb6aff4346f3552f5cce52f599 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_COCOA_TAB_DIALOGS_COCOA_H_
#define CHROME_BROWSER_UI_COCOA_TAB_DIALOGS_COCOA_H_
#include "base/macros.h"
#include "chrome/browser/ui/tab_dialogs.h"
// Cocoa implementation of TabDialogs interface.
class TabDialogsCocoa : public TabDialogs {
public:
explicit TabDialogsCocoa(content::WebContents* contents);
~TabDialogsCocoa() override;
// TabDialogs:
gfx::NativeView GetDialogParentView() const override;
void ShowCollectedCookies() override;
void ShowHungRendererDialog(
content::RenderWidgetHost* render_widget_host,
base::RepeatingClosure hang_monitor_restarter) override;
void HideHungRendererDialog(
content::RenderWidgetHost* render_widget_host) override;
bool IsShowingHungRendererDialog() override;
void ShowProfileSigninConfirmation(
Browser* browser,
Profile* profile,
const std::string& username,
std::unique_ptr<ui::ProfileSigninConfirmationDelegate> delegate) override;
void ShowManagePasswordsBubble(bool user_action) override;
void HideManagePasswordsBubble() override;
protected:
content::WebContents* web_contents() const { return web_contents_; }
private:
content::WebContents* web_contents_; // Weak. Owns this.
DISALLOW_COPY_AND_ASSIGN(TabDialogsCocoa);
};
#endif // CHROME_BROWSER_UI_COCOA_TAB_DIALOGS_COCOA_H_