#include "chrome/browser/ui/views/accelerator_table.h"
#include <stddef.h>
#include <vector>
#include "base/containers/contains.h"
#include "base/feature_list.h"
#include "base/no_destructor.h"
#include "base/notreached.h"
#include "build/branding_buildflags.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/app/chrome_command_ids.h"
#include "components/lens/buildflags.h"
#include "components/lens/lens_features.h"
#include "printing/buildflags/buildflags.h"
#include "services/screen_ai/buildflags/buildflags.h"
#include "ui/base/accelerators/accelerator.h"
#include "ui/base/ui_base_features.h"
#include "ui/events/event_constants.h"
#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "chrome/browser/ash/crosapi/browser_util.h"
#endif
namespace {
const AcceleratorMapping kAcceleratorMap[] = …;
const AcceleratorMapping kDevToolsAcceleratorMap[] = …;
#if BUILDFLAG(ENABLE_LENS_DESKTOP_GOOGLE_BRANDED_FEATURES)
constexpr AcceleratorMapping kRegionSearchAcceleratorMap[] = {
{ui::VKEY_E, ui::EF_SHIFT_DOWN | ui::EF_PLATFORM_ACCELERATOR,
IDC_CONTENT_CONTEXT_LENS_REGION_SEARCH},
};
#endif
constexpr int kDebugModifier = …;
constexpr AcceleratorMapping kUIDebugAcceleratorMap[] = …;
const int kRepeatableCommandIds[] = …;
std::vector<AcceleratorMapping>* GetAcceleratorsPointer() { … }
}
std::vector<AcceleratorMapping> GetAcceleratorList() { … }
void ClearAcceleratorListForTesting() { … }
bool GetStandardAcceleratorForCommandId(int command_id,
ui::Accelerator* accelerator) { … }
bool IsCommandRepeatable(int command_id) { … }