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

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

Issue 328026: Fix regression where popups and app frames lost their titlebars.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 2 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 | « no previous file | 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 30028)
+++ chrome/browser/views/frame/browser_frame_win.cc (working copy)
@@ -122,8 +122,12 @@
// BrowserFrame, views::WindowWin overrides:
gfx::Insets BrowserFrameWin::GetClientAreaInsets() const {
- if (!GetNonClientView()->UseNativeFrame())
+ // Use the default client insets for an opaque frame or a glass popup/app
+ // frame.
+ if (!GetNonClientView()->UseNativeFrame() ||
+ !browser_view_->IsBrowserTypeNormal()) {
Peter Kasting 2009/10/26 07:41:24 Nit: No need for {}.
return WindowWin::GetClientAreaInsets();
+ }
int border_thickness = GetSystemMetrics(SM_CXSIZEFRAME);
// We draw our own client edge over part of the default frame.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698