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

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

Issue 23769011: Move a bunch of windows stuff from ui/base/win to ui/gfx/win (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moar bustage. Created 7 years, 3 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 | « ui/base/win/scoped_set_map_mode.h ('k') | 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
diff --git a/ui/base/win/singleton_hwnd.h b/ui/base/win/singleton_hwnd.h
deleted file mode 100644
index a84b6c0b19b17670f349ee7ba45c0b2588c880ba..0000000000000000000000000000000000000000
--- a/ui/base/win/singleton_hwnd.h
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef UI_BASE_WIN_SINGLETON_HWND_H_
-#define UI_BASE_WIN_SINGLETON_HWND_H_
-
-#include <windows.h>
-#include <vector>
-
-#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;
-
-namespace ui {
-
-// Singleton message-only HWND that allows interested clients to receive WM_*
-// notifications.
-class SingletonHwnd : public WindowImpl {
- public:
- static SingletonHwnd* GetInstance();
-
- // Observer interface for receiving Windows WM_* notifications.
- class Observer {
- public:
- virtual void OnWndProc(HWND hwnd,
- UINT message,
- WPARAM wparam,
- LPARAM lparam) = 0;
- };
-
- // Add/remove observer to receive WM_* notifications.
- void AddObserver(Observer* observer);
- void RemoveObserver(Observer* observer);
-
- // Windows callback for WM_* notifications.
- virtual BOOL ProcessWindowMessage(HWND window,
- UINT message,
- WPARAM wparam,
- LPARAM lparam,
- LRESULT& result,
- DWORD msg_map_id) OVERRIDE;
-
- private:
- friend struct DefaultSingletonTraits<SingletonHwnd>;
-
- SingletonHwnd();
- ~SingletonHwnd();
-
- // List of registered observers.
- ObserverList<Observer> observer_list_;
-
- DISALLOW_COPY_AND_ASSIGN(SingletonHwnd);
-};
-
-} // namespace ui
-
-#endif // UI_BASE_WIN_SINGLETON_HWND_H_
« no previous file with comments | « ui/base/win/scoped_set_map_mode.h ('k') | ui/base/win/singleton_hwnd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698