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

Unified Diff: chrome/browser/ui/views/location_bar/location_bar_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/location_bar/location_bar_view.cc
diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.cc b/chrome/browser/ui/views/location_bar/location_bar_view.cc
index 7cf47bd8cc3877ddfd4cb288e1cd32a40c78b4cb..60ad8493eeac4184add193ebae1074ca13d50450 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
@@ -1501,7 +1501,7 @@ void LocationBarView::ButtonPressed(views::Button* sender,
// LocationBarView, private views::DragController implementation:
void LocationBarView::WriteDragDataForView(views::View* sender,
- const gfx::Point& press_pt,
+ const gfx::PointF& press_pt,
OSExchangeData* data) {
DCHECK_NE(GetDragOperationsForView(sender, press_pt),
ui::DragDropTypes::DRAG_NONE);
@@ -1518,7 +1518,7 @@ void LocationBarView::WriteDragDataForView(views::View* sender,
}
int LocationBarView::GetDragOperationsForView(views::View* sender,
- const gfx::Point& p) {
+ const gfx::PointF& p) {
DCHECK((sender == location_icon_view_) || (sender == ev_bubble_view_) ||
(sender == origin_chip_view_));
WebContents* web_contents = delegate_->GetWebContents();
@@ -1530,8 +1530,8 @@ int LocationBarView::GetDragOperationsForView(views::View* sender,
}
bool LocationBarView::CanStartDragForView(View* sender,
- const gfx::Point& press_pt,
- const gfx::Point& p) {
+ const gfx::PointF& press_pt,
+ const gfx::PointF& p) {
return true;
}

Powered by Google App Engine
This is Rietveld 408576698