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

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

Issue 10827198: Change View::HitTest to View::HitTestRect (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed errors reported by trybots 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
« no previous file with comments | « chrome/browser/ui/views/toolbar_view.h ('k') | ui/app_list/app_list_item_view.cc » ('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 c12dfb1325000577bfc7f9d99132a16285f21d66..81ecae7fe91650429b824f14faf1bf74ff2896ac 100644
--- a/chrome/browser/ui/views/toolbar_view.cc
+++ b/chrome/browser/ui/views/toolbar_view.cc
@@ -763,13 +763,13 @@ void ToolbarView::Layout() {
app_menu_width, child_height);
}
-bool ToolbarView::HitTest(const gfx::Point& point) const {
+bool ToolbarView::HitTestRect(const gfx::Rect& rect) const {
// Don't take hits in our top shadow edge. Let them fall through to the
// tab strip above us.
- if (point.y() < kContentShadowHeight)
+ if (rect.y() < kContentShadowHeight)
return false;
// Otherwise let our superclass take care of it.
- return AccessiblePaneView::HitTest(point);
+ return AccessiblePaneView::HitTestRect(rect);
}
void ToolbarView::OnPaint(gfx::Canvas* canvas) {
« no previous file with comments | « chrome/browser/ui/views/toolbar_view.h ('k') | ui/app_list/app_list_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698