| 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 a155d8f8991f48e325f23a8203532c699e91651c..3039e2055e24df5cc9a929d7396c7d958777df1b 100644
|
| --- a/chrome/browser/extensions/global_shortcut_listener_win.h
|
| +++ b/chrome/browser/extensions/global_shortcut_listener_win.h
|
| @@ -7,26 +7,22 @@
|
|
|
| #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();
|
| virtual ~GlobalShortcutListenerWin();
|
|
|
| private:
|
| - // The implementation of our Window Proc, called by SingletonHwnd.
|
| - virtual void OnWndProc(HWND hwnd,
|
| - UINT message,
|
| - WPARAM wparam,
|
| - LPARAM lparam) override;
|
| + void OnHotkey(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam);
|
|
|
| // GlobalShortcutListener implementation.
|
| virtual void StartListening() override;
|
| @@ -43,6 +39,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);
|
| };
|
|
|
|
|