OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "views/widget/window_manager.h" | 5 #include "ui/views/widget/window_manager.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "ui/views/events/event.h" | 8 #include "ui/views/events/event.h" |
9 #include "views/widget/widget.h" | 9 #include "ui/views/widget/widget.h" |
10 | 10 |
11 namespace { | 11 namespace { |
12 | 12 |
13 views::WindowManager* window_manager = NULL; | 13 views::WindowManager* window_manager = NULL; |
14 | 14 |
15 class NullWindowManager : public views::WindowManager { | 15 class NullWindowManager : public views::WindowManager { |
16 public: | 16 public: |
17 NullWindowManager() : mouse_capture_(NULL) { | 17 NullWindowManager() : mouse_capture_(NULL) { |
18 } | 18 } |
19 | 19 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 } | 91 } |
92 | 92 |
93 // static | 93 // static |
94 WindowManager* WindowManager::Get() { | 94 WindowManager* WindowManager::Get() { |
95 if (!window_manager) | 95 if (!window_manager) |
96 window_manager = new NullWindowManager(); | 96 window_manager = new NullWindowManager(); |
97 return window_manager; | 97 return window_manager; |
98 } | 98 } |
99 | 99 |
100 } // namespace views | 100 } // namespace views |
OLD | NEW |