#include "chrome/browser/ui/views/relaunch_notification/relaunch_notification_controller_platform_impl_desktop.h"
#include "base/check.h"
#include "base/check_deref.h"
#include "base/functional/bind.h"
#include "chrome/browser/lifetime/application_lifetime.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/browser_list.h"
#include "chrome/browser/ui/views/relaunch_notification/relaunch_recommended_bubble_view.h"
#include "chrome/browser/ui/views/relaunch_notification/relaunch_required_dialog_view.h"
#include "ui/views/widget/widget.h"
namespace {
Browser* FindLastActiveTabbedBrowser() { … }
}
RelaunchNotificationControllerPlatformImpl::
RelaunchNotificationControllerPlatformImpl() = default;
RelaunchNotificationControllerPlatformImpl::
~RelaunchNotificationControllerPlatformImpl() { … }
void RelaunchNotificationControllerPlatformImpl::NotifyRelaunchRecommended(
base::Time detection_time,
bool ) { … }
void RelaunchNotificationControllerPlatformImpl::NotifyRelaunchRequired(
base::Time deadline,
base::OnceCallback<base::Time()> on_visible) { … }
void RelaunchNotificationControllerPlatformImpl::CloseRelaunchNotification() { … }
void RelaunchNotificationControllerPlatformImpl::SetDeadline(
base::Time deadline) { … }
bool RelaunchNotificationControllerPlatformImpl::IsRequiredNotificationShown()
const { … }
void RelaunchNotificationControllerPlatformImpl::OnWidgetDestroying(
views::Widget* widget) { … }
void RelaunchNotificationControllerPlatformImpl::OnBrowserSetLastActive(
Browser* browser) { … }
void RelaunchNotificationControllerPlatformImpl::ShowRequiredNotification(
Browser* browser,
base::Time deadline) { … }