OLD | NEW |
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 #include "ui/gfx/sys_color_change_listener.h" | 5 #include "ui/gfx/sys_color_change_listener.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 | 8 |
9 #include "base/basictypes.h" | |
10 #include "base/bind.h" | 9 #include "base/bind.h" |
11 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
12 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
13 #include "base/memory/singleton.h" | 12 #include "base/memory/singleton.h" |
14 #include "base/observer_list.h" | 13 #include "base/observer_list.h" |
15 #include "ui/gfx/color_utils.h" | 14 #include "ui/gfx/color_utils.h" |
16 #include "ui/gfx/win/singleton_hwnd_observer.h" | 15 #include "ui/gfx/win/singleton_hwnd_observer.h" |
17 | 16 |
18 namespace { | 17 namespace { |
19 | 18 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 SysColorChangeListener* listener) | 101 SysColorChangeListener* listener) |
103 : listener_(listener) { | 102 : listener_(listener) { |
104 SysColorChangeObserver::GetInstance()->AddListener(listener_); | 103 SysColorChangeObserver::GetInstance()->AddListener(listener_); |
105 } | 104 } |
106 | 105 |
107 ScopedSysColorChangeListener::~ScopedSysColorChangeListener() { | 106 ScopedSysColorChangeListener::~ScopedSysColorChangeListener() { |
108 SysColorChangeObserver::GetInstance()->RemoveListener(listener_); | 107 SysColorChangeObserver::GetInstance()->RemoveListener(listener_); |
109 } | 108 } |
110 | 109 |
111 } // namespace gfx | 110 } // namespace gfx |
OLD | NEW |