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

Unified Diff: chrome/browser/ui/views/frame/opaque_browser_frame_view.cc

Issue 10872003: Ensure that the window switcher in Chrome metro mode on Windows 8 works with themes. Currently it i… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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
Index: chrome/browser/ui/views/frame/opaque_browser_frame_view.cc
===================================================================
--- chrome/browser/ui/views/frame/opaque_browser_frame_view.cc (revision 152392)
+++ chrome/browser/ui/views/frame/opaque_browser_frame_view.cc (working copy)
@@ -586,8 +586,16 @@
gfx::Rect OpaqueBrowserFrameView::GetBoundsForTabStripAndAvatarArea(
views::View* tabstrip) const {
- const int available_width =
- minimize_button_ ? minimize_button_->x() : width();
+ int available_width = width();
+ if (minimize_button_) {
+ available_width = minimize_button_->x();
+ } else if (browser_view()->window_switcher_button()) {
+ // We don't have the sysmenu buttons in Windows 8 metro mode. However there
+ // are buttons like the window switcher which are drawn in the non client
+ // are in the BrowserView. We need to ensure that the tab strip does not
+ // draw on the window switcher button.
+ available_width -= browser_view()->window_switcher_button()->width();
+ }
const int caption_spacing = frame()->IsMaximized() ?
kNewTabCaptionMaximizedSpacing : kNewTabCaptionRestoredSpacing;
const int tabstrip_x = NonClientBorderThickness();
« chrome/browser/ui/views/frame/browser_view.h ('K') | « chrome/browser/ui/views/frame/browser_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698