Index: chrome/browser/extensions/global_shortcut_listener_win.h |
diff --git a/chrome/browser/extensions/global_shortcut_listener_win.h b/chrome/browser/extensions/global_shortcut_listener_win.h |
index 9bca78c580f706f82d7704e618cda1117302e805..cf6430fb05a56a4e0c308769672300faa4788f03 100644 |
--- a/chrome/browser/extensions/global_shortcut_listener_win.h |
+++ b/chrome/browser/extensions/global_shortcut_listener_win.h |
@@ -7,26 +7,23 @@ |
#include <windows.h> |
+#include "base/memory/scoped_ptr.h" |
#include "chrome/browser/extensions/global_shortcut_listener.h" |
-#include "ui/gfx/win/singleton_hwnd.h" |
+#include "ui/gfx/win/singleton_hwnd_observer.h" |
namespace extensions { |
// Windows-specific implementation of the GlobalShortcutListener class that |
// listens for global shortcuts. Handles setting up a keyboard hook and |
// forwarding its output to the base class for processing. |
-class GlobalShortcutListenerWin : public GlobalShortcutListener, |
- public gfx::SingletonHwnd::Observer { |
+class GlobalShortcutListenerWin : public GlobalShortcutListener { |
public: |
GlobalShortcutListenerWin(); |
~GlobalShortcutListenerWin() override; |
private: |
- // The implementation of our Window Proc, called by SingletonHwnd. |
- void OnWndProc(HWND hwnd, |
- UINT message, |
- WPARAM wparam, |
- LPARAM lparam) override; |
+ // The implementation of our Window Proc, called by SingletonHwndObserver. |
+ void OnWndProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam); |
// GlobalShortcutListener implementation. |
void StartListening() override; |
@@ -41,6 +38,8 @@ class GlobalShortcutListenerWin : public GlobalShortcutListener, |
typedef std::map<ui::Accelerator, int> HotkeyIdMap; |
HotkeyIdMap hotkey_ids_; |
+ scoped_ptr<gfx::SingletonHwndObserver> singleton_hwnd_observer_; |
+ |
DISALLOW_COPY_AND_ASSIGN(GlobalShortcutListenerWin); |
}; |