#include "components/undo/undo_manager.h"
#include <memory>
#include <utility>
#include "base/auto_reset.h"
#include "base/check_op.h"
#include "base/containers/adapters.h"
#include "base/memory/ptr_util.h"
#include "base/observer_list.h"
#include "components/strings/grit/components_strings.h"
#include "components/undo/undo_manager_observer.h"
#include "components/undo/undo_operation.h"
#include "ui/base/l10n/l10n_util.h"
namespace {
const size_t kMaxUndoGroups = …;
}
UndoGroup::UndoGroup()
: … { … }
UndoGroup::~UndoGroup() { … }
void UndoGroup::AddOperation(std::unique_ptr<UndoOperation> operation) { … }
void UndoGroup::Undo() { … }
UndoManager::UndoManager()
: … { … }
UndoManager::~UndoManager() { … }
void UndoManager::Undo() { … }
void UndoManager::Redo() { … }
std::u16string UndoManager::GetUndoLabel() const { … }
std::u16string UndoManager::GetRedoLabel() const { … }
void UndoManager::AddUndoOperation(std::unique_ptr<UndoOperation> operation) { … }
void UndoManager::StartGroupingActions() { … }
void UndoManager::EndGroupingActions() { … }
void UndoManager::SuspendUndoTracking() { … }
void UndoManager::ResumeUndoTracking() { … }
bool UndoManager::IsUndoTrakingSuspended() const { … }
void UndoManager::RemoveAllOperations() { … }
void UndoManager::AddObserver(UndoManagerObserver* observer) { … }
void UndoManager::RemoveObserver(UndoManagerObserver* observer) { … }
void UndoManager::Undo(
bool* performing_indicator,
std::vector<std::unique_ptr<UndoGroup>>* active_undo_group) { … }
void UndoManager::NotifyOnUndoManagerStateChange() { … }
void UndoManager::AddUndoGroup(std::unique_ptr<UndoGroup> new_undo_group) { … }
std::vector<std::unique_ptr<UndoGroup>>* UndoManager::GetActiveUndoGroup() { … }