#include "chrome/browser/command_updater_impl.h"
#include <algorithm>
#include <optional>
#include "base/check.h"
#include "base/observer_list.h"
#include "chrome/browser/command_observer.h"
#include "chrome/browser/command_updater_delegate.h"
struct CommandUpdaterImpl::Command { … };
CommandUpdaterImpl::CommandUpdaterImpl(CommandUpdaterDelegate* delegate)
: … { … }
CommandUpdaterImpl::~CommandUpdaterImpl() { … }
bool CommandUpdaterImpl::SupportsCommand(int id) const { … }
bool CommandUpdaterImpl::IsCommandEnabled(int id) const { … }
bool CommandUpdaterImpl::ExecuteCommand(int id, base::TimeTicks time_stamp) { … }
bool CommandUpdaterImpl::ExecuteCommandWithDisposition(
int id,
WindowOpenDisposition disposition,
base::TimeTicks time_stamp) { … }
void CommandUpdaterImpl::AddCommandObserver(int id, CommandObserver* observer) { … }
void CommandUpdaterImpl::RemoveCommandObserver(
int id, CommandObserver* observer) { … }
void CommandUpdaterImpl::RemoveCommandObserver(CommandObserver* observer) { … }
bool CommandUpdaterImpl::UpdateCommandEnabled(int id, bool enabled) { … }
void CommandUpdaterImpl::DisableAllCommands() { … }
std::vector<int> CommandUpdaterImpl::GetAllIds() { … }
CommandUpdaterImpl::Command*
CommandUpdaterImpl::GetCommand(int id, bool create) { … }