#include "chrome/browser/ui/views/frame/system_menu_model_delegate.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/app/chrome_command_ids.h"
#include "chrome/browser/command_updater.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sessions/tab_restore_service_factory.h"
#include "chrome/browser/ui/browser_commands.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/grit/generated_resources.h"
#include "components/sessions/core/tab_restore_service.h"
#include "ui/base/l10n/l10n_util.h"
#if BUILDFLAG(IS_CHROMEOS)
#include "chromeos/ui/frame/desks/move_to_desks_menu_delegate.h"
#include "chromeos/ui/frame/desks/move_to_desks_menu_model.h"
#endif
#if BUILDFLAG(IS_LINUX)
#include "chrome/common/pref_names.h"
#include "components/prefs/pref_service.h"
#endif
SystemMenuModelDelegate::SystemMenuModelDelegate(
ui::AcceleratorProvider* provider,
Browser* browser)
: … { … }
SystemMenuModelDelegate::~SystemMenuModelDelegate() { … }
bool SystemMenuModelDelegate::IsCommandIdChecked(int command_id) const { … }
bool SystemMenuModelDelegate::IsCommandIdEnabled(int command_id) const { … }
bool SystemMenuModelDelegate::IsCommandIdVisible(int command_id) const { … }
bool SystemMenuModelDelegate::GetAcceleratorForCommandId(
int command_id,
ui::Accelerator* accelerator) const { … }
bool SystemMenuModelDelegate::IsItemForCommandIdDynamic(int command_id) const { … }
std::u16string SystemMenuModelDelegate::GetLabelForCommandId(
int command_id) const { … }
void SystemMenuModelDelegate::ExecuteCommand(int command_id, int event_flags) { … }