| Index: ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
|
| diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
|
| index a6647e9ee9284ff5a1a58648eb025534903c39d0..f4578ea9a703a3b86d31665c9d3ed6caa7e89452 100644
|
| --- a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
|
| +++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
|
| @@ -36,6 +36,7 @@
|
| #include "ui/views/win/fullscreen_handler.h"
|
| #include "ui/views/win/hwnd_message_handler.h"
|
| #include "ui/views/win/hwnd_util.h"
|
| +#include "ui/views/window/native_frame_view.h"
|
| #include "ui/wm/core/compound_event_filter.h"
|
| #include "ui/wm/core/window_animations.h"
|
| #include "ui/wm/public/scoped_tooltip_disabler.h"
|
| @@ -414,6 +415,12 @@ void DesktopWindowTreeHostWin::SetVisibilityChangedAnimationsEnabled(
|
| content_window_->SetProperty(aura::client::kAnimationsDisabledKey, !value);
|
| }
|
|
|
| +NonClientFrameView* DesktopWindowTreeHostWin::CreateNonClientFrameView() {
|
| + return ShouldUseNativeFrame()
|
| + ? new NativeFrameView(native_widget_delegate_->AsWidget())
|
| + : nullptr;
|
| +}
|
| +
|
| bool DesktopWindowTreeHostWin::ShouldUseNativeFrame() const {
|
| return IsTranslucentWindowOpacitySupported();
|
| }
|
|
|