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/base/win/singleton_hwnd.h" | 5 #include "ui/base/win/singleton_hwnd.h" |
6 | 6 |
7 #include "base/memory/singleton.h" | 7 #include "base/memory/singleton.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 | 9 |
10 namespace ui { | 10 namespace ui { |
11 | 11 |
12 // static | 12 // static |
13 SingletonHwnd* SingletonHwnd::GetInstance() { | 13 SingletonHwnd* SingletonHwnd::GetInstance() { |
14 return Singleton<SingletonHwnd>::get(); | 14 return Singleton<SingletonHwnd>::get(); |
15 } | 15 } |
16 | 16 |
17 void SingletonHwnd::AddObserver(Observer* observer) { | 17 void SingletonHwnd::AddObserver(Observer* observer) { |
18 if (!hwnd()) { | 18 if (!hwnd()) { |
(...skipping 27 matching lines...) Expand all Loading... |
46 return false; | 46 return false; |
47 } | 47 } |
48 | 48 |
49 SingletonHwnd::SingletonHwnd() { | 49 SingletonHwnd::SingletonHwnd() { |
50 } | 50 } |
51 | 51 |
52 SingletonHwnd::~SingletonHwnd() { | 52 SingletonHwnd::~SingletonHwnd() { |
53 } | 53 } |
54 | 54 |
55 } // namespace ui | 55 } // namespace ui |
OLD | NEW |