| 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/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.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 951 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 962 | 962 |
| 963 const Widget* DesktopWindowTreeHostWin::GetWidget() const { | 963 const Widget* DesktopWindowTreeHostWin::GetWidget() const { |
| 964 return native_widget_delegate_->AsWidget(); | 964 return native_widget_delegate_->AsWidget(); |
| 965 } | 965 } |
| 966 | 966 |
| 967 HWND DesktopWindowTreeHostWin::GetHWND() const { | 967 HWND DesktopWindowTreeHostWin::GetHWND() const { |
| 968 return message_handler_->hwnd(); | 968 return message_handler_->hwnd(); |
| 969 } | 969 } |
| 970 | 970 |
| 971 void DesktopWindowTreeHostWin::SetWindowTransparency() { | 971 void DesktopWindowTreeHostWin::SetWindowTransparency() { |
| 972 bool transparent = ShouldUseNativeFrame() && !IsFullscreen(); | 972 bool transparent = !IsFullscreen(); |
| 973 compositor()->SetHostHasTransparentBackground(transparent); | 973 compositor()->SetHostHasTransparentBackground(transparent); |
| 974 window()->SetTransparent(transparent); | 974 window()->SetTransparent(transparent); |
| 975 content_window_->SetTransparent(transparent); | 975 content_window_->SetTransparent(transparent); |
| 976 } | 976 } |
| 977 | 977 |
| 978 bool DesktopWindowTreeHostWin::IsModalWindowActive() const { | 978 bool DesktopWindowTreeHostWin::IsModalWindowActive() const { |
| 979 // This function can get called during window creation which occurs before | 979 // This function can get called during window creation which occurs before |
| 980 // dispatcher() has been created. | 980 // dispatcher() has been created. |
| 981 if (!dispatcher()) | 981 if (!dispatcher()) |
| 982 return false; | 982 return false; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 997 | 997 |
| 998 // static | 998 // static |
| 999 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( | 999 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( |
| 1000 internal::NativeWidgetDelegate* native_widget_delegate, | 1000 internal::NativeWidgetDelegate* native_widget_delegate, |
| 1001 DesktopNativeWidgetAura* desktop_native_widget_aura) { | 1001 DesktopNativeWidgetAura* desktop_native_widget_aura) { |
| 1002 return new DesktopWindowTreeHostWin(native_widget_delegate, | 1002 return new DesktopWindowTreeHostWin(native_widget_delegate, |
| 1003 desktop_native_widget_aura); | 1003 desktop_native_widget_aura); |
| 1004 } | 1004 } |
| 1005 | 1005 |
| 1006 } // namespace views | 1006 } // namespace views |
| OLD | NEW |