#include "chrome/browser/ui/views/relaunch_notification/relaunch_required_dialog_view.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/metrics/user_metrics.h"
#include "base/metrics/user_metrics_action.h"
#include "chrome/browser/ui/browser.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/grit/branded_strings.h"
#include "chrome/grit/generated_resources.h"
#include "components/constrained_window/constrained_window_views.h"
#include "components/vector_icons/vector_icons.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/models/image_model.h"
#include "ui/base/mojom/dialog_button.mojom.h"
#include "ui/base/mojom/ui_base_types.mojom-shared.h"
#include "ui/gfx/color_palette.h"
#include "ui/gfx/geometry/insets.h"
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/paint_vector_icon.h"
#include "ui/gfx/text_constants.h"
#include "ui/views/border.h"
#include "ui/views/controls/label.h"
#include "ui/views/layout/fill_layout.h"
#include "ui/views/layout/layout_provider.h"
#include "ui/views/style/typography.h"
#include "ui/views/view.h"
#include "ui/views/widget/widget.h"
views::Widget* RelaunchRequiredDialogView::Show(
Browser* browser,
base::Time deadline,
base::RepeatingClosure on_accept) { … }
RelaunchRequiredDialogView::~RelaunchRequiredDialogView() = default;
RelaunchRequiredDialogView* RelaunchRequiredDialogView::FromWidget(
views::Widget* widget) { … }
void RelaunchRequiredDialogView::SetDeadline(base::Time deadline) { … }
std::u16string RelaunchRequiredDialogView::GetWindowTitle() const { … }
ui::ImageModel RelaunchRequiredDialogView::GetWindowIcon() { … }
RelaunchRequiredDialogView::RelaunchRequiredDialogView(
base::Time deadline,
base::RepeatingClosure on_accept)
: … { … }
void RelaunchRequiredDialogView::UpdateWindowTitle() { … }