#include "ui/message_center/popup_timers_controller.h"
#include <algorithm>
#include <memory>
#include "base/containers/contains.h"
#include "build/chromeos_buildflags.h"
#include "ui/base/ui_base_features.h"
#include "ui/message_center/public/cpp/message_center_constants.h"
#include "ui/message_center/public/cpp/notification_types.h"
namespace message_center {
namespace {
bool UseHighPriorityDelay(Notification* notification) { … }
}
int notification_timeout_default_seconds_ = …;
int notification_timeout_high_priority_seconds_ = …;
PopupTimersController::PopupTimersController(MessageCenter* message_center)
: … { … }
PopupTimersController::~PopupTimersController() { … }
void PopupTimersController::StartTimer(const std::string& id,
const base::TimeDelta& timeout) { … }
void PopupTimersController::StartAll() { … }
void PopupTimersController::PauseAll() { … }
void PopupTimersController::CancelTimer(const std::string& id) { … }
void PopupTimersController::SetNotificationTimeouts(int default_timeout,
int high_priority_timeout) { … }
void PopupTimersController::CancelAll() { … }
void PopupTimersController::TimerFinished(const std::string& id) { … }
base::TimeDelta PopupTimersController::GetTimeoutForNotification(
Notification* notification) { … }
int PopupTimersController::GetNotificationTimeoutDefault() { … }
void PopupTimersController::OnNotificationDisplayed(
const std::string& id,
const DisplaySource source) { … }
void PopupTimersController::OnNotificationUpdated(const std::string& id) { … }
void PopupTimersController::OnNotificationRemoved(const std::string& id,
bool by_user) { … }
}