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

Side by Side Diff: ui/gfx/win/singleton_hwnd.h

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 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 unified diff | Download patch
« no previous file with comments | « ui/gfx/sys_color_change_listener.cc ('k') | ui/gl/gpu_switching_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_GFX_WIN_SINGLETON_HWND_H_ 5 #ifndef UI_GFX_WIN_SINGLETON_HWND_H_
6 #define UI_GFX_WIN_SINGLETON_HWND_H_ 6 #define UI_GFX_WIN_SINGLETON_HWND_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 26 matching lines...) Expand all
37 friend struct DefaultSingletonTraits<SingletonHwnd>; 37 friend struct DefaultSingletonTraits<SingletonHwnd>;
38 38
39 SingletonHwnd(); 39 SingletonHwnd();
40 ~SingletonHwnd() override; 40 ~SingletonHwnd() override;
41 41
42 // Add/remove SingletonHwndObserver to forward WM_* notifications. 42 // Add/remove SingletonHwndObserver to forward WM_* notifications.
43 void AddObserver(SingletonHwndObserver* observer); 43 void AddObserver(SingletonHwndObserver* observer);
44 void RemoveObserver(SingletonHwndObserver* observer); 44 void RemoveObserver(SingletonHwndObserver* observer);
45 45
46 // List of registered observers. 46 // List of registered observers.
47 ObserverList<SingletonHwndObserver, true> observer_list_; 47 base::ObserverList<SingletonHwndObserver, true> observer_list_;
48 48
49 DISALLOW_COPY_AND_ASSIGN(SingletonHwnd); 49 DISALLOW_COPY_AND_ASSIGN(SingletonHwnd);
50 }; 50 };
51 51
52 } // namespace gfx 52 } // namespace gfx
53 53
54 #endif // UI_GFX_WIN_SINGLETON_HWND_H_ 54 #endif // UI_GFX_WIN_SINGLETON_HWND_H_
OLDNEW
« no previous file with comments | « ui/gfx/sys_color_change_listener.cc ('k') | ui/gl/gpu_switching_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698