| Index: chrome/browser/extensions/extension_keybinding_registry.h
|
| diff --git a/chrome/browser/extensions/extension_keybinding_registry.h b/chrome/browser/extensions/extension_keybinding_registry.h
|
| index 723a6bbbc712eaade3479a492d68cd6e37db006a..f60a7336f37f624bf86ed0bc436c5e77bef046a4 100644
|
| --- a/chrome/browser/extensions/extension_keybinding_registry.h
|
| +++ b/chrome/browser/extensions/extension_keybinding_registry.h
|
| @@ -84,6 +84,10 @@ class ExtensionKeybindingRegistry : public content::NotificationObserver {
|
| // commands are currently ignored, since they are handled elsewhere.
|
| bool ShouldIgnoreCommand(const std::string& command) const;
|
|
|
| + // Fire event targets which the specified accelerator is binding with. Returns
|
| + // true if we can find the appropriate event targets.
|
| + bool NotifyEventTargetsByAccelerator(const ui::Accelerator& accelerator);
|
| +
|
| // Notifies appropriate parties that a command has been executed.
|
| void CommandExecuted(const std::string& extension_id,
|
| const std::string& command);
|
| @@ -97,6 +101,12 @@ class ExtensionKeybindingRegistry : public content::NotificationObserver {
|
| std::pair<std::string, std::string> > EventTargets;
|
| EventTargets event_targets_;
|
|
|
| + // Maps an accelerator that are media keys to a list of string pair (extension
|
| + // id, command name) for media keys commands that have been registered.
|
| + typedef std::list<std::pair<std::string, std::string> > TargetList;
|
| + typedef std::map<ui::Accelerator, TargetList> MediaKeysEventTargets;
|
| + MediaKeysEventTargets media_keys_event_targets_;
|
| +
|
| private:
|
| // Returns true if the |extension| matches our extension filter.
|
| bool ExtensionMatchesFilter(const extensions::Extension* extension);
|
|
|