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_aura/desktop_window_tree_host_win.h" | 5 #include "ui/views/widget/desktop_aura/desktop_window_tree_host_win.h" |
6 | 6 |
7 #include "base/win/metro.h" | 7 #include "base/win/metro.h" |
8 #include "third_party/skia/include/core/SkPath.h" | 8 #include "third_party/skia/include/core/SkPath.h" |
9 #include "third_party/skia/include/core/SkRegion.h" | 9 #include "third_party/skia/include/core/SkRegion.h" |
10 #include "ui/aura/client/aura_constants.h" | 10 #include "ui/aura/client/aura_constants.h" |
11 #include "ui/aura/client/cursor_client.h" | 11 #include "ui/aura/client/cursor_client.h" |
12 #include "ui/aura/client/focus_client.h" | 12 #include "ui/aura/client/focus_client.h" |
13 #include "ui/aura/client/scoped_tooltip_disabler.h" | 13 #include "ui/aura/client/scoped_tooltip_disabler.h" |
14 #include "ui/aura/window_event_dispatcher.h" | 14 #include "ui/aura/window_event_dispatcher.h" |
15 #include "ui/aura/window_property.h" | 15 #include "ui/aura/window_property.h" |
16 #include "ui/base/cursor/cursor_loader_win.h" | 16 #include "ui/base/cursor/cursor_loader_win.h" |
17 #include "ui/base/ime/input_method.h" | 17 #include "ui/base/ime/input_method.h" |
18 #include "ui/base/win/shell.h" | 18 #include "ui/base/win/shell.h" |
19 #include "ui/compositor/compositor_constants.h" | 19 #include "ui/compositor/compositor_constants.h" |
20 #include "ui/gfx/insets.h" | 20 #include "ui/gfx/insets.h" |
21 #include "ui/gfx/native_widget_types.h" | 21 #include "ui/gfx/native_widget_types.h" |
22 #include "ui/gfx/path.h" | 22 #include "ui/gfx/path.h" |
23 #include "ui/gfx/path_win.h" | 23 #include "ui/gfx/path_win.h" |
24 #include "ui/gfx/vector2d.h" | 24 #include "ui/gfx/vector2d.h" |
25 #include "ui/gfx/win/dpi.h" | 25 #include "ui/gfx/win/dpi.h" |
26 #include "ui/native_theme/native_theme_aura.h" | 26 #include "ui/native_theme/native_theme_aura.h" |
27 #include "ui/native_theme/native_theme_win.h" | 27 #include "ui/native_theme/native_theme_win.h" |
28 #include "ui/views/corewm/compound_event_filter.h" | |
29 #include "ui/views/corewm/corewm_switches.h" | |
30 #include "ui/views/corewm/input_method_event_filter.h" | |
31 #include "ui/views/corewm/tooltip_win.h" | 28 #include "ui/views/corewm/tooltip_win.h" |
32 #include "ui/views/corewm/window_animations.h" | |
33 #include "ui/views/ime/input_method_bridge.h" | 29 #include "ui/views/ime/input_method_bridge.h" |
34 #include "ui/views/widget/desktop_aura/desktop_cursor_loader_updater.h" | 30 #include "ui/views/widget/desktop_aura/desktop_cursor_loader_updater.h" |
35 #include "ui/views/widget/desktop_aura/desktop_drag_drop_client_win.h" | 31 #include "ui/views/widget/desktop_aura/desktop_drag_drop_client_win.h" |
36 #include "ui/views/widget/desktop_aura/desktop_native_cursor_manager.h" | 32 #include "ui/views/widget/desktop_aura/desktop_native_cursor_manager.h" |
37 #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h" | 33 #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h" |
38 #include "ui/views/widget/root_view.h" | 34 #include "ui/views/widget/root_view.h" |
39 #include "ui/views/widget/widget_delegate.h" | 35 #include "ui/views/widget/widget_delegate.h" |
40 #include "ui/views/widget/widget_hwnd_utils.h" | 36 #include "ui/views/widget/widget_hwnd_utils.h" |
41 #include "ui/views/win/fullscreen_handler.h" | 37 #include "ui/views/win/fullscreen_handler.h" |
42 #include "ui/views/win/hwnd_message_handler.h" | 38 #include "ui/views/win/hwnd_message_handler.h" |
43 #include "ui/views/window/native_frame_view.h" | 39 #include "ui/views/window/native_frame_view.h" |
| 40 #include "ui/wm/core/compound_event_filter.h" |
| 41 #include "ui/wm/core/input_method_event_filter.h" |
| 42 #include "ui/wm/core/window_animations.h" |
44 | 43 |
45 namespace views { | 44 namespace views { |
46 | 45 |
47 namespace { | 46 namespace { |
48 | 47 |
49 gfx::Size GetExpandedWindowSize(DWORD window_style, gfx::Size size) { | 48 gfx::Size GetExpandedWindowSize(DWORD window_style, gfx::Size size) { |
50 if (!(window_style & WS_EX_COMPOSITED) || !ui::win::IsAeroGlassEnabled()) | 49 if (!(window_style & WS_EX_COMPOSITED) || !ui::win::IsAeroGlassEnabled()) |
51 return size; | 50 return size; |
52 | 51 |
53 // Some AMD drivers can't display windows that are less than 64x64 pixels, | 52 // Some AMD drivers can't display windows that are less than 64x64 pixels, |
(...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1002 | 1001 |
1003 // static | 1002 // static |
1004 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( | 1003 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( |
1005 internal::NativeWidgetDelegate* native_widget_delegate, | 1004 internal::NativeWidgetDelegate* native_widget_delegate, |
1006 DesktopNativeWidgetAura* desktop_native_widget_aura) { | 1005 DesktopNativeWidgetAura* desktop_native_widget_aura) { |
1007 return new DesktopWindowTreeHostWin(native_widget_delegate, | 1006 return new DesktopWindowTreeHostWin(native_widget_delegate, |
1008 desktop_native_widget_aura); | 1007 desktop_native_widget_aura); |
1009 } | 1008 } |
1010 | 1009 |
1011 } // namespace views | 1010 } // namespace views |
OLD | NEW |