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_root_window_host_win.h" | 5 #include "ui/views/widget/desktop_aura/desktop_root_window_host_win.h" |
6 | 6 |
7 #include "third_party/skia/include/core/SkPath.h" | 7 #include "third_party/skia/include/core/SkPath.h" |
8 #include "third_party/skia/include/core/SkRegion.h" | 8 #include "third_party/skia/include/core/SkRegion.h" |
9 #include "ui/aura/client/aura_constants.h" | 9 #include "ui/aura/client/aura_constants.h" |
10 #include "ui/aura/client/default_capture_client.h" | 10 #include "ui/aura/client/default_capture_client.h" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 | 92 |
93 HWND parent_hwnd = NULL; | 93 HWND parent_hwnd = NULL; |
94 aura::Window* parent_window = params.parent; | 94 aura::Window* parent_window = params.parent; |
95 if (parent_window) | 95 if (parent_window) |
96 parent_hwnd = parent_window->GetRootWindow()->GetAcceleratedWidget(); | 96 parent_hwnd = parent_window->GetRootWindow()->GetAcceleratedWidget(); |
97 | 97 |
98 message_handler_->Init(parent_hwnd, params.bounds); | 98 message_handler_->Init(parent_hwnd, params.bounds); |
99 | 99 |
100 message_handler_->set_remove_standard_frame(params.remove_standard_frame); | 100 message_handler_->set_remove_standard_frame(params.remove_standard_frame); |
101 | 101 |
102 aura::RootWindow::CreateParams rw_params(params.bounds); | 102 aura::RootWindow::CreateParams rw_params(params.bounds, false); |
103 rw_params.host = this; | 103 rw_params.host = this; |
104 root_window_ = new aura::RootWindow(rw_params); | 104 root_window_ = new aura::RootWindow(rw_params); |
105 | 105 |
106 // TODO(beng): We probably need to move these two calls to some function that | 106 // TODO(beng): We probably need to move these two calls to some function that |
107 // can change depending on the native-ness of the frame. For right | 107 // can change depending on the native-ness of the frame. For right |
108 // now in the hack-n-slash days of win-aura, we can just | 108 // now in the hack-n-slash days of win-aura, we can just |
109 // unilaterally turn this on. | 109 // unilaterally turn this on. |
110 root_window_->compositor()->SetHostHasTransparentBackground(true); | 110 root_window_->compositor()->SetHostHasTransparentBackground(true); |
111 root_window_->SetTransparent(true); | 111 root_window_->SetTransparent(true); |
112 | 112 |
(...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
765 DesktopRootWindowHost* DesktopRootWindowHost::Create( | 765 DesktopRootWindowHost* DesktopRootWindowHost::Create( |
766 internal::NativeWidgetDelegate* native_widget_delegate, | 766 internal::NativeWidgetDelegate* native_widget_delegate, |
767 DesktopNativeWidgetAura* desktop_native_widget_aura, | 767 DesktopNativeWidgetAura* desktop_native_widget_aura, |
768 const gfx::Rect& initial_bounds) { | 768 const gfx::Rect& initial_bounds) { |
769 return new DesktopRootWindowHostWin(native_widget_delegate, | 769 return new DesktopRootWindowHostWin(native_widget_delegate, |
770 desktop_native_widget_aura, | 770 desktop_native_widget_aura, |
771 initial_bounds); | 771 initial_bounds); |
772 } | 772 } |
773 | 773 |
774 } // namespace views | 774 } // namespace views |
OLD | NEW |