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

Unified Diff: chrome/browser/views/frame/browser_frame_win.cc

Issue 155111: Fix issue once and for all where distributor logo overlays window controls. N... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 months 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 | « chrome/browser/views/frame/browser_frame_win.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/frame/browser_frame_win.cc
===================================================================
--- chrome/browser/views/frame/browser_frame_win.cc (revision 20003)
+++ chrome/browser/views/frame/browser_frame_win.cc (working copy)
@@ -227,6 +227,24 @@
return WindowWin::OnNCHitTest(pt);
}
+void BrowserFrameWin::OnWindowPosChanged(WINDOWPOS* window_pos) {
+ // Windows lies to us about the position of the minimize button before a
+ // window is visible. We use the position of the minimize button to place the
+ // distributor logo in official builds. When the window is shown, we need to
+ // re-layout and schedule a paint for the non-client frame view so that the
+ // distributor logo has the correct position when the window becomes visible.
+ // This fixes bugs where the distributor logo appears to overlay the minimize
+ // button. http://crbug.com/15520
+ // Note that we will call Layout every time SetWindowPos is called with
+ // SWP_SHOWWINDOW, however callers typically are careful about not specifying
+ // this flag unless necessary to avoid flicker.
+ if (window_pos->flags & SWP_SHOWWINDOW) {
+ GetNonClientView()->Layout();
+ GetNonClientView()->SchedulePaint();
+ }
+ WindowWin::OnWindowPosChanged(window_pos);
+}
+
///////////////////////////////////////////////////////////////////////////////
// BrowserFrame, views::CustomFrameWindow overrides:
« no previous file with comments | « chrome/browser/views/frame/browser_frame_win.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698