| Index: ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc
|
| diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc
|
| index 6f1fa068f843c5d0fc20469b4be35db1400b76ad..024396aac1997f2312b627a8bf60957c355f4f7f 100644
|
| --- a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc
|
| +++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc
|
| @@ -62,6 +62,7 @@
|
| #include "ui/views/widget/desktop_aura/x11_desktop_window_move_client.h"
|
| #include "ui/views/widget/desktop_aura/x11_pointer_grab.h"
|
| #include "ui/views/widget/desktop_aura/x11_window_event_filter.h"
|
| +#include "ui/views/window/native_frame_view.h"
|
| #include "ui/wm/core/compound_event_filter.h"
|
| #include "ui/wm/core/window_util.h"
|
|
|
| @@ -1002,6 +1003,12 @@ void DesktopWindowTreeHostX11::SetVisibilityChangedAnimationsEnabled(
|
| // Much like the previous NativeWidgetGtk, we don't have anything to do here.
|
| }
|
|
|
| +NonClientFrameView* DesktopWindowTreeHostX11::CreateNonClientFrameView() {
|
| + return ShouldUseNativeFrame()
|
| + ? new NativeFrameView(native_widget_delegate_->AsWidget())
|
| + : nullptr;
|
| +}
|
| +
|
| bool DesktopWindowTreeHostX11::ShouldUseNativeFrame() const {
|
| return use_native_frame_;
|
| }
|
|
|