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

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

Issue 265713007: views: Update event-related API to use PointF/RectF instead of Point/Rect. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
Index: chrome/browser/ui/views/toolbar/toolbar_view.cc
diff --git a/chrome/browser/ui/views/toolbar/toolbar_view.cc b/chrome/browser/ui/views/toolbar/toolbar_view.cc
index 2f03229d5dc3f0fb19dea5836f546ad858ceee40..91f30711d958eb9e8989914e22d45e73dd85f4c7 100644
--- a/chrome/browser/ui/views/toolbar/toolbar_view.cc
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc
@@ -681,7 +681,7 @@ void ToolbarView::Layout() {
app_menu_->SetBounds(next_element_x, child_y, app_menu_width, child_height);
}
-bool ToolbarView::HitTestRect(const gfx::Rect& rect) const {
+bool ToolbarView::HitTestRect(const gfx::RectF& rect) const {
// Fall through to the tab strip above us if none of |rect| intersects
// with this view (intersection with the top shadow edge does not
// count as intersection with this view).

Powered by Google App Engine
This is Rietveld 408576698