Chromium Code Reviews| Index: chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc |
| diff --git a/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc b/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc |
| index 010e8aa1b3f4d2d7645f7c0dfc1dcc685c88984c..6273443f2107e82f457c51f68989660dae79dc29 100644 |
| --- a/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc |
| +++ b/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc |
| @@ -9,6 +9,7 @@ |
| #include "chrome/browser/themes/theme_properties.h" |
| #include "chrome/browser/ui/browser.h" |
| #include "chrome/browser/ui/immersive_fullscreen_configuration.h" |
| +#include "chrome/browser/ui/views/avatar_label.h" |
| #include "chrome/browser/ui/views/avatar_menu_button.h" |
| #include "chrome/browser/ui/views/frame/browser_frame.h" |
| #include "chrome/browser/ui/views/frame/browser_view.h" |
| @@ -154,6 +155,14 @@ gfx::Rect BrowserNonClientFrameViewAsh::GetWindowBoundsForClientBounds( |
| int BrowserNonClientFrameViewAsh::NonClientHitTest(const gfx::Point& point) { |
| int hit_test = frame_painter_->NonClientHitTest(this, point); |
| + |
| + // See if the point is actually within the avatar menu button or within |
| + // the avatar label. |
| + if (hit_test == HTCAPTION && ((avatar_button() && |
|
James Cook
2013/09/05 15:15:16
This is fine. Now that I think about it another wa
|
| + avatar_button()->GetMirroredBounds().Contains(point)) || |
| + (avatar_label() && avatar_label()->GetMirroredBounds().Contains(point)))) |
| + return HTCLIENT; |
| + |
| // When the window is restored we want a large click target above the tabs |
| // to drag the window, so redirect clicks in the tab's shadow to caption. |
| if (hit_test == HTCLIENT && |