Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc

Issue 2507963002: Implement hit tests/client area. (Closed)
Patch Set: add it back Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
}

Powered by Google App Engine
This is Rietveld 408576698