1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_EXTENSIONS_GLOBAL_SHORTCUT_LISTENER_OZONE_H_
6 #define CHROME_BROWSER_EXTENSIONS_GLOBAL_SHORTCUT_LISTENER_OZONE_H_
8 #include "chrome/browser/extensions/global_shortcut_listener.h"
10 namespace extensions {
12 // Ozone-specific implementation of the GlobalShortcutListener class that
13 // listens for global shortcuts. Handles basic keyboard intercepting and
14 // forwards its output to the base class for processing.
15 class GlobalShortcutListenerOzone : public GlobalShortcutListener {
17 GlobalShortcutListenerOzone();
18 virtual ~GlobalShortcutListenerOzone();
21 // GlobalShortcutListener implementation.
22 virtual void StartListening() OVERRIDE;
23 virtual void StopListening() OVERRIDE;
24 virtual bool RegisterAcceleratorImpl(
25 const ui::Accelerator& accelerator) OVERRIDE;
26 virtual void UnregisterAcceleratorImpl(
27 const ui::Accelerator& accelerator) OVERRIDE;
29 // Whether this object is listening for global shortcuts.
32 DISALLOW_COPY_AND_ASSIGN(GlobalShortcutListenerOzone);
35 } // namespace extensions
37 #endif // CHROME_BROWSER_EXTENSIONS_GLOBAL_SHORTCUT_LISTENER_OZONE_H_