#include "chrome/browser/extensions/extension_commands_global_registry.h"
#include "base/lazy_instance.h"
#include "chrome/browser/extensions/commands/command_service.h"
#include "chrome/browser/extensions/global_shortcut_listener.h"
#include "extensions/common/extension.h"
namespace extensions {
ExtensionCommandsGlobalRegistry::ExtensionCommandsGlobalRegistry(
content::BrowserContext* context)
: … { … }
ExtensionCommandsGlobalRegistry::~ExtensionCommandsGlobalRegistry() { … }
static base::LazyInstance<BrowserContextKeyedAPIFactory<
ExtensionCommandsGlobalRegistry>>::DestructorAtExit
g_extension_commands_global_registry_factory = …;
BrowserContextKeyedAPIFactory<ExtensionCommandsGlobalRegistry>*
ExtensionCommandsGlobalRegistry::GetFactoryInstance() { … }
ExtensionCommandsGlobalRegistry* ExtensionCommandsGlobalRegistry::Get(
content::BrowserContext* context) { … }
bool ExtensionCommandsGlobalRegistry::IsRegistered(
const ui::Accelerator& accelerator) { … }
void ExtensionCommandsGlobalRegistry::AddExtensionKeybindings(
const extensions::Extension* extension,
const std::string& command_name) { … }
void ExtensionCommandsGlobalRegistry::RemoveExtensionKeybindingImpl(
const ui::Accelerator& accelerator,
const std::string& command_name) { … }
void ExtensionCommandsGlobalRegistry::OnShortcutHandlingSuspended(
bool suspended) { … }
void ExtensionCommandsGlobalRegistry::OnKeyPressed(
const ui::Accelerator& accelerator) { … }
}