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

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

Issue 59043012: Get rid of the 1-pixel client inset hack. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to ToT Created 7 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
« no previous file with comments | « no previous file | ui/views/win/hwnd_message_handler.h » ('j') | ui/views/win/hwnd_message_handler.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/desktop_aura/desktop_root_window_host_win.cc
diff --git a/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc b/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc
index 22ad0f208ccce57f3460176feccf5018ce97c085..aa7dca0fe4aed9cdf600f6db0d2457276cc88639 100644
--- a/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc
+++ b/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc
@@ -749,6 +749,7 @@ void DesktopRootWindowHostWin::HandleClientSizeChanged(
}
void DesktopRootWindowHostWin::HandleFrameChanged() {
+ SetWindowTransparency();
// Replace the frame and layout the contents.
GetWidget()->non_client_view()->UpdateFrame(true);
}
@@ -888,6 +889,7 @@ void DesktopRootWindowHostWin::SetWindowTransparency() {
bool transparent = ShouldUseNativeFrame() && !IsFullscreen();
root_window_->compositor()->SetHostHasTransparentBackground(transparent);
root_window_->window()->SetTransparent(transparent);
+ content_window_->SetTransparent(transparent);
}
bool DesktopRootWindowHostWin::IsModalWindowActive() const {
« no previous file with comments | « no previous file | ui/views/win/hwnd_message_handler.h » ('j') | ui/views/win/hwnd_message_handler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698