OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/views/controls/menu/menu_message_loop_aura.h" | 5 #include "ui/views/controls/menu/menu_message_loop_aura.h" |
6 | 6 |
| 7 #include "base/macros.h" |
7 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
| 9 #include "build/build_config.h" |
8 #include "ui/aura/client/screen_position_client.h" | 10 #include "ui/aura/client/screen_position_client.h" |
9 #include "ui/aura/window.h" | 11 #include "ui/aura/window.h" |
10 #include "ui/aura/window_event_dispatcher.h" | 12 #include "ui/aura/window_event_dispatcher.h" |
11 #include "ui/aura/window_tree_host.h" | 13 #include "ui/aura/window_tree_host.h" |
12 #include "ui/events/event.h" | 14 #include "ui/events/event.h" |
13 #include "ui/events/platform/platform_event_source.h" | 15 #include "ui/events/platform/platform_event_source.h" |
14 #include "ui/events/platform/scoped_event_dispatcher.h" | 16 #include "ui/events/platform/scoped_event_dispatcher.h" |
15 #include "ui/views/controls/menu/menu_controller.h" | 17 #include "ui/views/controls/menu/menu_controller.h" |
16 #include "ui/views/widget/widget.h" | 18 #include "ui/views/widget/widget.h" |
17 #include "ui/wm/public/activation_change_observer.h" | 19 #include "ui/wm/public/activation_change_observer.h" |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 if (ui::PlatformEventSource::GetInstance()) | 185 if (ui::PlatformEventSource::GetInstance()) |
184 ui::PlatformEventSource::GetInstance()->StopCurrentEventStream(); | 186 ui::PlatformEventSource::GetInstance()->StopCurrentEventStream(); |
185 #endif | 187 #endif |
186 } | 188 } |
187 | 189 |
188 void MenuMessageLoopAura::ClearOwner() { | 190 void MenuMessageLoopAura::ClearOwner() { |
189 owner_ = NULL; | 191 owner_ = NULL; |
190 } | 192 } |
191 | 193 |
192 } // namespace views | 194 } // namespace views |
OLD | NEW |