| 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 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 } | 477 } |
| 478 | 478 |
| 479 bool DesktopWindowTreeHostWin::IsTranslucentWindowOpacitySupported() const { | 479 bool DesktopWindowTreeHostWin::IsTranslucentWindowOpacitySupported() const { |
| 480 return ui::win::IsAeroGlassEnabled(); | 480 return ui::win::IsAeroGlassEnabled(); |
| 481 } | 481 } |
| 482 | 482 |
| 483 void DesktopWindowTreeHostWin::SizeConstraintsChanged() { | 483 void DesktopWindowTreeHostWin::SizeConstraintsChanged() { |
| 484 message_handler_->SizeConstraintsChanged(); | 484 message_handler_->SizeConstraintsChanged(); |
| 485 } | 485 } |
| 486 | 486 |
| 487 bool DesktopWindowTreeHostWin::ShouldUpdateWindowTransparency() const { |
| 488 return true; |
| 489 } |
| 490 |
| 487 //////////////////////////////////////////////////////////////////////////////// | 491 //////////////////////////////////////////////////////////////////////////////// |
| 488 // DesktopWindowTreeHostWin, WindowTreeHost implementation: | 492 // DesktopWindowTreeHostWin, WindowTreeHost implementation: |
| 489 | 493 |
| 490 ui::EventSource* DesktopWindowTreeHostWin::GetEventSource() { | 494 ui::EventSource* DesktopWindowTreeHostWin::GetEventSource() { |
| 491 return this; | 495 return this; |
| 492 } | 496 } |
| 493 | 497 |
| 494 gfx::AcceleratedWidget DesktopWindowTreeHostWin::GetAcceleratedWidget() { | 498 gfx::AcceleratedWidget DesktopWindowTreeHostWin::GetAcceleratedWidget() { |
| 495 return message_handler_->hwnd(); | 499 return message_handler_->hwnd(); |
| 496 } | 500 } |
| (...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 994 | 998 |
| 995 // static | 999 // static |
| 996 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( | 1000 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( |
| 997 internal::NativeWidgetDelegate* native_widget_delegate, | 1001 internal::NativeWidgetDelegate* native_widget_delegate, |
| 998 DesktopNativeWidgetAura* desktop_native_widget_aura) { | 1002 DesktopNativeWidgetAura* desktop_native_widget_aura) { |
| 999 return new DesktopWindowTreeHostWin(native_widget_delegate, | 1003 return new DesktopWindowTreeHostWin(native_widget_delegate, |
| 1000 desktop_native_widget_aura); | 1004 desktop_native_widget_aura); |
| 1001 } | 1005 } |
| 1002 | 1006 |
| 1003 } // namespace views | 1007 } // namespace views |
| OLD | NEW |