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

Unified Diff: chrome/browser/ui/views/tabs/tab_drag_controller.cc

Issue 10828265: Replace views::LocatedEvent with ui::LocatedEvent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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/tabs/tab_controller.h ('k') | chrome/browser/ui/views/tabs/tab_strip.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/tabs/tab_drag_controller.cc
===================================================================
--- chrome/browser/ui/views/tabs/tab_drag_controller.cc (revision 151267)
+++ chrome/browser/ui/views/tabs/tab_drag_controller.cc (working copy)
@@ -992,7 +992,7 @@
const gfx::Point& point_in_screen) {
DCHECK(attached_tabstrip_);
gfx::Point attached_point(point_in_screen);
- views::View::ConvertPointToView(NULL, attached_tabstrip_, &attached_point);
+ views::View::ConvertPointToTarget(NULL, attached_tabstrip_, &attached_point);
if (attached_point.x() < 0)
return DETACH_BEFORE;
if (attached_point.x() >= attached_tabstrip_->width())
@@ -1124,7 +1124,8 @@
// strip. ("ideal bounds" are stable even if the Tabs' actual bounds are
// changing due to animation).
gfx::Point tab_strip_point(point_in_screen);
- views::View::ConvertPointToView(NULL, attached_tabstrip_, &tab_strip_point);
+ views::View::ConvertPointToTarget(NULL, attached_tabstrip_,
+ &tab_strip_point);
tab_strip_point.set_x(
attached_tabstrip_->GetMirroredXInView(tab_strip_point.x()));
tab_strip_point.Offset(-mouse_offset_.x(), -mouse_offset_.y());
@@ -1491,7 +1492,7 @@
DCHECK(attached_tabstrip_); // The tab must be attached.
gfx::Point tab_loc(point_in_screen);
- views::View::ConvertPointToView(NULL, attached_tabstrip_, &tab_loc);
+ views::View::ConvertPointToTarget(NULL, attached_tabstrip_, &tab_loc);
int x =
attached_tabstrip_->GetMirroredXInView(tab_loc.x()) - mouse_offset_.x();
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_controller.h ('k') | chrome/browser/ui/views/tabs/tab_strip.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698