Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1058)

Unified Diff: ui/base/win/singleton_hwnd.h

Issue 9965082: Change SingletonHwnd to be based on WindowImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/base/win/singleton_hwnd.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/win/singleton_hwnd.h
===================================================================
--- ui/base/win/singleton_hwnd.h (revision 130121)
+++ ui/base/win/singleton_hwnd.h (working copy)
@@ -12,6 +12,7 @@
#include "base/basictypes.h"
#include "base/callback_forward.h"
#include "base/observer_list.h"
+#include "ui/base/win/window_impl.h"
template<typename T> struct DefaultSingletonTraits;
@@ -19,7 +20,7 @@
// Singleton message-only HWND that allows interested clients to receive WM_*
// notifications.
-class SingletonHwnd {
+class SingletonHwnd : public WindowImpl {
public:
static SingletonHwnd* GetInstance();
@@ -37,7 +38,12 @@
void RemoveObserver(Observer* observer);
// Windows callback for WM_* notifications.
- void OnWndProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam);
+ virtual BOOL ProcessWindowMessage(HWND window,
+ UINT message,
+ WPARAM wparam,
+ LPARAM lparam,
+ LRESULT& result,
+ DWORD msg_map_id) OVERRIDE;
private:
friend struct DefaultSingletonTraits<SingletonHwnd>;
@@ -45,9 +51,6 @@
SingletonHwnd();
~SingletonHwnd();
- // Listener HWND for WM_* notifications.
- HWND listener_window_;
-
// List of registered observers.
ObserverList<Observer> observer_list_;
« no previous file with comments | « no previous file | ui/base/win/singleton_hwnd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698