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

Unified Diff: chrome/browser/ui/views/frame/browser_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/browser_view.cc
===================================================================
--- chrome/browser/ui/views/frame/browser_view.cc (revision 152392)
+++ chrome/browser/ui/views/frame/browser_view.cc (working copy)
@@ -532,6 +532,13 @@
}
bool BrowserView::IsPositionInWindowCaption(const gfx::Point& point) {
+ if (window_switcher_button_) {
+ gfx::Point window_switcher_point(point);
+ views::View::ConvertPointToTarget(this, window_switcher_button_,
+ &window_switcher_point);
+ if (window_switcher_button_->HitTestPoint(window_switcher_point))
+ return false;
+ }
return GetBrowserViewLayout()->IsPositionInWindowCaption(point);
}

Powered by Google App Engine
This is Rietveld 408576698