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

Unified Diff: chrome/browser/views/toolbar_view.cc

Issue 20011: Improved OTR avatar and popup window rendering. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 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/location_bar_view.cc ('k') | chrome/common/gfx/chrome_canvas.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/toolbar_view.cc
===================================================================
--- chrome/browser/views/toolbar_view.cc (revision 9107)
+++ chrome/browser/views/toolbar_view.cc (working copy)
@@ -35,6 +35,7 @@
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
#include "chrome/common/resource_bundle.h"
+#include "chrome/common/win_util.h"
#include "chrome/views/background.h"
#include "chrome/views/button_dropdown.h"
#include "chrome/views/hwnd_view.h"
@@ -479,13 +480,15 @@
return gfx::Size(0, normal_background.height());
}
+ // With the non-Vista frame, we'll draw a client edge below the toolbar for
+ // non-maximized popups.
// Note: We make sure to return the same value in the "no browser window" case
// as the "not maximized" case, so that when a popup is opened at a particular
// requested size, we'll report the same preferred size during the initial
// window size calculation (when there isn't yet a browser window) as when
// we're actually laying things out after setting up the browser window. This
// prevents the content area from being off by |kClientEdgeThickness| px.
- int client_edge_height =
+ int client_edge_height = win_util::ShouldUseVistaFrame() ||
(browser_->window() && browser_->window()->IsMaximized()) ?
0 : views::NonClientView::kClientEdgeThickness;
return gfx::Size(0,
« no previous file with comments | « chrome/browser/views/location_bar_view.cc ('k') | chrome/common/gfx/chrome_canvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698