// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_PUBLIC_BROWSER_MEDIA_KEYS_LISTENER_MANAGER_H_ #define CONTENT_PUBLIC_BROWSER_MEDIA_KEYS_LISTENER_MANAGER_H_ #include "base/unguessable_token.h" #include "content/common/content_export.h" #include "ui/base/accelerators/media_keys_listener.h" #include "ui/events/keycodes/keyboard_codes.h" namespace content { // The browser listens for media keys and uses them to control the active media // session. However, there are cases where this behavior is undesirable, for // example when an extension wants to handle media key presses instead. This // class provides an interface for code outside of content (e.g. extensions) to // receive global media key input instead of allowing the browser to use it to // control the active session. class MediaKeysListenerManager { … }; } // namespace content #endif // CONTENT_PUBLIC_BROWSER_MEDIA_KEYS_LISTENER_MANAGER_H_