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_root_window_host_linux.h" | 5 #include "ui/views/widget/desktop_aura/desktop_root_window_host_linux.h" |
6 | 6 |
7 #include <X11/extensions/XInput2.h> | 7 #include <X11/extensions/XInput2.h> |
8 #include <X11/Xatom.h> | 8 #include <X11/Xatom.h> |
9 #include <X11/Xutil.h> | 9 #include <X11/Xutil.h> |
10 | 10 |
11 #include "base/message_pump_aurax11.h" | 11 #include "base/message_pump_aurax11.h" |
12 #include "base/stringprintf.h" | 12 #include "base/stringprintf.h" |
13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
14 #include "ui/aura/client/default_capture_client.h" | 14 #include "ui/aura/client/default_capture_client.h" |
15 #include "ui/aura/client/screen_position_client.h" | 15 #include "ui/aura/client/screen_position_client.h" |
16 #include "ui/aura/client/user_action_client.h" | 16 #include "ui/aura/client/user_action_client.h" |
17 #include "ui/aura/focus_manager.h" | 17 #include "ui/aura/focus_manager.h" |
18 #include "ui/aura/root_window.h" | 18 #include "ui/aura/root_window.h" |
19 #include "ui/views/corewm/compound_event_filter.h" | 19 #include "ui/views/corewm/compound_event_filter.h" |
20 #include "ui/views/corewm/input_method_event_filter.h" | 20 #include "ui/views/corewm/input_method_event_filter.h" |
21 #include "ui/aura/window_property.h" | 21 #include "ui/aura/window_property.h" |
22 #include "ui/base/events/event_utils.h" | 22 #include "ui/base/events/event_utils.h" |
23 #include "ui/base/native_theme/native_theme.h" | 23 #include "ui/base/native_theme/native_theme.h" |
24 #include "ui/base/touch/touch_factory.h" | 24 #include "ui/base/touch/touch_factory.h" |
25 #include "ui/base/x/x11_util.h" | 25 #include "ui/base/x/x11_util.h" |
26 #include "ui/views/ime/input_method_bridge.h" | 26 #include "ui/views/ime/input_method_bridge.h" |
27 #include "ui/views/widget/desktop_aura/desktop_activation_client.h" | 27 #include "ui/views/widget/desktop_aura/desktop_activation_client.h" |
28 #include "ui/views/widget/desktop_aura/desktop_cursor_client.h" | 28 #include "ui/views/widget/desktop_aura/desktop_cursor_client.h" |
29 #include "ui/views/widget/desktop_aura/desktop_dispatcher_client.h" | 29 #include "ui/views/widget/desktop_aura/desktop_dispatcher_client.h" |
30 #include "ui/views/widget/desktop_layout_manager.h" | 30 #include "ui/views/widget/desktop_aura/desktop_layout_manager.h" |
31 #include "ui/views/widget/desktop_native_widget_aura.h" | 31 #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h" |
32 #include "ui/views/widget/desktop_screen_position_client.h" | 32 #include "ui/views/widget/desktop_aura/desktop_screen_position_client.h" |
33 #include "ui/views/widget/x11_desktop_handler.h" | 33 #include "ui/views/widget/desktop_aura/x11_desktop_handler.h" |
34 #include "ui/views/widget/x11_desktop_window_move_client.h" | 34 #include "ui/views/widget/desktop_aura/x11_desktop_window_move_client.h" |
35 #include "ui/views/widget/x11_window_event_filter.h" | 35 #include "ui/views/widget/desktop_aura/x11_window_event_filter.h" |
36 | 36 |
37 namespace views { | 37 namespace views { |
38 | 38 |
39 DesktopRootWindowHostLinux* DesktopRootWindowHostLinux::g_current_capture = | 39 DesktopRootWindowHostLinux* DesktopRootWindowHostLinux::g_current_capture = |
40 NULL; | 40 NULL; |
41 | 41 |
42 DEFINE_WINDOW_PROPERTY_KEY( | 42 DEFINE_WINDOW_PROPERTY_KEY( |
43 aura::Window*, kViewsWindowForRootWindow, NULL); | 43 aura::Window*, kViewsWindowForRootWindow, NULL); |
44 | 44 |
45 DEFINE_WINDOW_PROPERTY_KEY( | 45 DEFINE_WINDOW_PROPERTY_KEY( |
(...skipping 1050 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1096 DesktopRootWindowHost* DesktopRootWindowHost::Create( | 1096 DesktopRootWindowHost* DesktopRootWindowHost::Create( |
1097 internal::NativeWidgetDelegate* native_widget_delegate, | 1097 internal::NativeWidgetDelegate* native_widget_delegate, |
1098 DesktopNativeWidgetAura* desktop_native_widget_aura, | 1098 DesktopNativeWidgetAura* desktop_native_widget_aura, |
1099 const gfx::Rect& initial_bounds) { | 1099 const gfx::Rect& initial_bounds) { |
1100 return new DesktopRootWindowHostLinux(native_widget_delegate, | 1100 return new DesktopRootWindowHostLinux(native_widget_delegate, |
1101 desktop_native_widget_aura, | 1101 desktop_native_widget_aura, |
1102 initial_bounds); | 1102 initial_bounds); |
1103 } | 1103 } |
1104 | 1104 |
1105 } // namespace views | 1105 } // namespace views |
OLD | NEW |