#include "chrome/browser/ui/views/tab_modal_confirm_dialog_views.h"
#include <memory>
#include <utility>
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "chrome/browser/ui/browser_list.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/views/chrome_layout_provider.h"
#include "chrome/common/chrome_switches.h"
#include "components/constrained_window/constrained_window_views.h"
#include "content/public/browser/web_contents.h"
#include "ui/base/mojom/dialog_button.mojom.h"
#include "ui/base/mojom/ui_base_types.mojom-shared.h"
#include "ui/base/window_open_disposition.h"
#include "ui/base/window_open_disposition_utils.h"
#include "ui/views/controls/button/label_button.h"
#include "ui/views/controls/message_box_view.h"
#include "ui/views/widget/widget.h"
TabModalConfirmDialog* TabModalConfirmDialog::Create(
std::unique_ptr<TabModalConfirmDialogDelegate> delegate,
content::WebContents* web_contents) { … }
TabModalConfirmDialogViews::TabModalConfirmDialogViews(
std::unique_ptr<TabModalConfirmDialogDelegate> delegate,
content::WebContents* web_contents)
: … { … }
std::u16string TabModalConfirmDialogViews::GetWindowTitle() const { … }
bool TabModalConfirmDialogViews::ShouldShowCloseButton() const { … }
views::View* TabModalConfirmDialogViews::GetContentsView() { … }
views::Widget* TabModalConfirmDialogViews::GetWidget() { … }
const views::Widget* TabModalConfirmDialogViews::GetWidget() const { … }
TabModalConfirmDialogViews::~TabModalConfirmDialogViews() = default;
void TabModalConfirmDialogViews::AcceptTabModalDialog() { … }
void TabModalConfirmDialogViews::CancelTabModalDialog() { … }
void TabModalConfirmDialogViews::CloseDialog() { … }
void TabModalConfirmDialogViews::LinkClicked(const ui::Event& event) { … }
views::View* TabModalConfirmDialogViews::GetInitiallyFocusedView() { … }