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" |
(...skipping 22 matching lines...) Expand all Loading... |
33 #include "ui/views/widget/root_view.h" | 33 #include "ui/views/widget/root_view.h" |
34 #include "ui/views/widget/widget_delegate.h" | 34 #include "ui/views/widget/widget_delegate.h" |
35 #include "ui/views/widget/widget_hwnd_utils.h" | 35 #include "ui/views/widget/widget_hwnd_utils.h" |
36 #include "ui/views/win/fullscreen_handler.h" | 36 #include "ui/views/win/fullscreen_handler.h" |
37 #include "ui/views/win/hwnd_message_handler.h" | 37 #include "ui/views/win/hwnd_message_handler.h" |
38 #include "ui/wm/core/compound_event_filter.h" | 38 #include "ui/wm/core/compound_event_filter.h" |
39 #include "ui/wm/core/input_method_event_filter.h" | 39 #include "ui/wm/core/input_method_event_filter.h" |
40 #include "ui/wm/core/window_animations.h" | 40 #include "ui/wm/core/window_animations.h" |
41 #include "ui/wm/public/scoped_tooltip_disabler.h" | 41 #include "ui/wm/public/scoped_tooltip_disabler.h" |
42 | 42 |
43 DECLARE_WINDOW_PROPERTY_TYPE(views::DesktopWindowTreeHostWin*); | |
44 | |
45 namespace views { | 43 namespace views { |
46 | 44 |
47 namespace { | 45 namespace { |
48 | 46 |
49 gfx::Size GetExpandedWindowSize(DWORD window_style, gfx::Size size) { | 47 gfx::Size GetExpandedWindowSize(DWORD window_style, gfx::Size size) { |
50 if (!(window_style & WS_EX_COMPOSITED) || !ui::win::IsAeroGlassEnabled()) | 48 if (!(window_style & WS_EX_COMPOSITED) || !ui::win::IsAeroGlassEnabled()) |
51 return size; | 49 return size; |
52 | 50 |
53 // Some AMD drivers can't display windows that are less than 64x64 pixels, | 51 // Some AMD drivers can't display windows that are less than 64x64 pixels, |
54 // so expand them to be at least that size. http://crbug.com/286609 | 52 // so expand them to be at least that size. http://crbug.com/286609 |
(...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
997 | 995 |
998 // static | 996 // static |
999 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( | 997 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( |
1000 internal::NativeWidgetDelegate* native_widget_delegate, | 998 internal::NativeWidgetDelegate* native_widget_delegate, |
1001 DesktopNativeWidgetAura* desktop_native_widget_aura) { | 999 DesktopNativeWidgetAura* desktop_native_widget_aura) { |
1002 return new DesktopWindowTreeHostWin(native_widget_delegate, | 1000 return new DesktopWindowTreeHostWin(native_widget_delegate, |
1003 desktop_native_widget_aura); | 1001 desktop_native_widget_aura); |
1004 } | 1002 } |
1005 | 1003 |
1006 } // namespace views | 1004 } // namespace views |
OLD | NEW |