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

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

Issue 10082029: Ash: Fix hit testing for the bottom pixels of tabs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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/ui/views/toolbar_view.h ('k') | ui/views/view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/toolbar_view.cc
diff --git a/chrome/browser/ui/views/toolbar_view.cc b/chrome/browser/ui/views/toolbar_view.cc
index c0902e119d27ccff5083e52444bbc83844d67603..1f703419ede10457933beeb2e9b41e1c866ea0ce 100644
--- a/chrome/browser/ui/views/toolbar_view.cc
+++ b/chrome/browser/ui/views/toolbar_view.cc
@@ -605,6 +605,15 @@ void ToolbarView::Layout() {
app_menu_width, child_height);
}
+bool ToolbarView::HitTest(const gfx::Point& l) const {
+ // Don't take hits in our top shadow edge. Let them fall through to the
+ // tab strip above us.
+ if (l.y() < kContentShadowHeight)
+ return false;
+ // Otherwise let our superclass take care of it.
+ return AccessiblePaneView::HitTest(l);
+}
+
void ToolbarView::OnPaint(gfx::Canvas* canvas) {
View::OnPaint(canvas);
« no previous file with comments | « chrome/browser/ui/views/toolbar_view.h ('k') | ui/views/view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698