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

Unified Diff: chrome/browser/ui/views/toolbar/toolbar_origin_chip_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_origin_chip_view.cc
diff --git a/chrome/browser/ui/views/toolbar/toolbar_origin_chip_view.cc b/chrome/browser/ui/views/toolbar/toolbar_origin_chip_view.cc
index 4c625381205545b29d37154c63e5554a861b2410..0e788907a2e519405464b194b3c04cffc8e1cc7e 100644
--- a/chrome/browser/ui/views/toolbar/toolbar_origin_chip_view.cc
+++ b/chrome/browser/ui/views/toolbar/toolbar_origin_chip_view.cc
@@ -346,8 +346,8 @@ void ToolbarOriginChipView::ButtonPressed(views::Button* sender,
}
void ToolbarOriginChipView::WriteDragDataForView(View* sender,
- const gfx::Point& press_pt,
- OSExchangeData* data) {
+ const gfx::PointF& press_pt,
+ OSExchangeData* data) {
// TODO(gbillock): Consolidate this with the identical logic in
// LocationBarView.
content::WebContents* web_contents = toolbar_view_->GetWebContents();
@@ -362,13 +362,13 @@ void ToolbarOriginChipView::WriteDragDataForView(View* sender,
}
int ToolbarOriginChipView::GetDragOperationsForView(View* sender,
- const gfx::Point& p) {
+ const gfx::PointF& p) {
return ui::DragDropTypes::DRAG_COPY | ui::DragDropTypes::DRAG_LINK;
}
bool ToolbarOriginChipView::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