| 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/views/widget/desktop_native_widget_helper_aura.h" | 5 #include "ui/views/widget/desktop_native_widget_helper_aura.h" |
| 6 | 6 |
| 7 #include "ui/aura/root_window.h" | 7 #include "ui/aura/client/dispatcher_client.h" |
| 8 #include "ui/aura/client/screen_position_client.h" |
| 8 #include "ui/aura/desktop/desktop_activation_client.h" | 9 #include "ui/aura/desktop/desktop_activation_client.h" |
| 9 #include "ui/aura/desktop/desktop_dispatcher_client.h" | 10 #include "ui/aura/desktop/desktop_dispatcher_client.h" |
| 10 #include "ui/aura/client/dispatcher_client.h" | 11 #include "ui/aura/root_window.h" |
| 11 #include "ui/aura/client/screen_position_client.h" | |
| 12 #include "ui/aura/shared/input_method_event_filter.h" | 12 #include "ui/aura/shared/input_method_event_filter.h" |
| 13 #include "ui/aura/shared/root_window_event_filter.h" | 13 #include "ui/aura/shared/root_window_event_filter.h" |
| 14 #include "ui/views/widget/native_widget_aura.h" | 14 #include "ui/views/widget/native_widget_aura.h" |
| 15 | 15 |
| 16 #if defined(OS_WIN) | 16 #if defined(OS_WIN) |
| 17 #include "ui/base/win/hwnd_subclass.h" | 17 #include "ui/base/win/hwnd_subclass.h" |
| 18 #include "ui/views/widget/widget_message_filter.h" | 18 #include "ui/views/widget/widget_message_filter.h" |
| 19 #elif defined(USE_X11) | 19 #elif defined(USE_X11) |
| 20 #include "ui/views/widget/x11_window_event_filter.h" | 20 #include "ui/views/widget/x11_window_event_filter.h" |
| 21 #endif | 21 #endif |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 root->GetHostSize())); | 187 root->GetHostSize())); |
| 188 } | 188 } |
| 189 | 189 |
| 190 void DesktopNativeWidgetHelperAura::OnRootWindowHostClosed( | 190 void DesktopNativeWidgetHelperAura::OnRootWindowHostClosed( |
| 191 const aura::RootWindow* root) { | 191 const aura::RootWindow* root) { |
| 192 DCHECK_EQ(root, root_window_.get()); | 192 DCHECK_EQ(root, root_window_.get()); |
| 193 widget_->GetWidget()->Close(); | 193 widget_->GetWidget()->Close(); |
| 194 } | 194 } |
| 195 | 195 |
| 196 } // namespace views | 196 } // namespace views |
| OLD | NEW |