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

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

Issue 7071018: Merge 86845 - Fix hittesting in the OpaqueBrowserFrameView for frames without a tabstrip. The Hi... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/742/src/
Patch Set: Created 9 years, 7 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 | chrome/browser/ui/views/frame/opaque_browser_frame_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/glass_browser_frame_view.cc
===================================================================
--- chrome/browser/ui/views/frame/glass_browser_frame_view.cc (revision 86845)
+++ chrome/browser/ui/views/frame/glass_browser_frame_view.cc (working copy)
@@ -265,13 +265,10 @@
bool GlassBrowserFrameView::HitTest(const gfx::Point& l) const {
// The ProfileMenuButton intrudes into the client area when the window is
// maximized.
- if (frame_->GetWindow()->IsMaximized() && show_profile_button() &&
- profile_button_->IsVisible() &&
- profile_button_->GetMirroredBounds().Contains(l)) {
- return true;
- } else {
- return !GetWindow()->client_view()->bounds().Contains(l);
- }
+ return (frame_->GetWindow()->IsMaximized() && show_profile_button() &&
+ profile_button_->IsVisible() &&
+ profile_button_->GetMirroredBounds().Contains(l)) ||
+ !GetWindow()->client_view()->bounds().Contains(l);
}
///////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/opaque_browser_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698