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

Unified Diff: chrome/browser/ui/views/bookmarks/bookmark_bar_view.h

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/bookmarks/bookmark_bar_view.h
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.h b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.h
index bc4292433177704a729bf0ac28bb92402d3789fa..430735873db2464dfce64400039f7f674be96050 100644
--- a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.h
+++ b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.h
@@ -166,7 +166,7 @@ class BookmarkBarView : public DetachableToolbarView,
// View methods:
virtual gfx::Size GetPreferredSize() OVERRIDE;
virtual gfx::Size GetMinimumSize() OVERRIDE;
- virtual bool HitTestRect(const gfx::Rect& rect) const OVERRIDE;
+ virtual bool HitTestRect(const gfx::RectF& rect) const OVERRIDE;
virtual void Layout() OVERRIDE;
virtual void ViewHierarchyChanged(
const ViewHierarchyChangedDetails& details) OVERRIDE;
@@ -227,13 +227,13 @@ class BookmarkBarView : public DetachableToolbarView,
// views::DragController:
virtual void WriteDragDataForView(views::View* sender,
- const gfx::Point& press_pt,
+ const gfx::PointF& press_pt,
ui::OSExchangeData* data) OVERRIDE;
virtual int GetDragOperationsForView(views::View* sender,
- const gfx::Point& p) OVERRIDE;
+ const gfx::PointF& p) OVERRIDE;
virtual bool CanStartDragForView(views::View* sender,
- const gfx::Point& press_pt,
- const gfx::Point& p) OVERRIDE;
+ const gfx::PointF& press_pt,
+ const gfx::PointF& p) OVERRIDE;
// views::MenuButtonListener:
virtual void OnMenuButtonClicked(views::View* view,

Powered by Google App Engine
This is Rietveld 408576698