Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Side by Side Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc

Issue 801953002: Use template specialization to generate WindowProperty code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use namespace Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
43 namespace views { 45 namespace views {
44 46
45 namespace { 47 namespace {
46 48
47 gfx::Size GetExpandedWindowSize(DWORD window_style, gfx::Size size) { 49 gfx::Size GetExpandedWindowSize(DWORD window_style, gfx::Size size) {
48 if (!(window_style & WS_EX_COMPOSITED) || !ui::win::IsAeroGlassEnabled()) 50 if (!(window_style & WS_EX_COMPOSITED) || !ui::win::IsAeroGlassEnabled())
49 return size; 51 return size;
50 52
51 // Some AMD drivers can't display windows that are less than 64x64 pixels, 53 // Some AMD drivers can't display windows that are less than 64x64 pixels,
52 // so expand them to be at least that size. http://crbug.com/286609 54 // 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
995 997
996 // static 998 // static
997 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( 999 DesktopWindowTreeHost* DesktopWindowTreeHost::Create(
998 internal::NativeWidgetDelegate* native_widget_delegate, 1000 internal::NativeWidgetDelegate* native_widget_delegate,
999 DesktopNativeWidgetAura* desktop_native_widget_aura) { 1001 DesktopNativeWidgetAura* desktop_native_widget_aura) {
1000 return new DesktopWindowTreeHostWin(native_widget_delegate, 1002 return new DesktopWindowTreeHostWin(native_widget_delegate,
1001 desktop_native_widget_aura); 1003 desktop_native_widget_aura);
1002 } 1004 }
1003 1005
1004 } // namespace views 1006 } // namespace views
OLDNEW
« no previous file with comments | « ui/aura/window_unittest.cc ('k') | ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698