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

Unified Diff: chrome/browser/ui/views/frame/browser_view_layout.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
Index: chrome/browser/ui/views/frame/browser_view_layout.cc
===================================================================
--- chrome/browser/ui/views/frame/browser_view_layout.cc (revision 151267)
+++ chrome/browser/ui/views/frame/browser_view_layout.cc (working copy)
@@ -34,14 +34,14 @@
// The number of pixels the metro switcher is offset from the right edge.
const int kWindowSwitcherOffsetX = 7;
-// Combines View::ConvertPointToView and View::HitTest for a given |point|.
+// Combines View::ConvertPointToTarget and View::HitTest for a given |point|.
// Converts |point| from |src| to |dst| and hit tests it against |dst|. The
// converted |point| can then be retrieved and used for additional tests.
bool ConvertedHitTest(views::View* src, views::View* dst, gfx::Point* point) {
DCHECK(src);
DCHECK(dst);
DCHECK(point);
- views::View::ConvertPointToView(src, dst, point);
+ views::View::ConvertPointToTarget(src, dst, point);
return dst->HitTestPoint(*point);
}
@@ -132,7 +132,7 @@
bool BrowserViewLayout::IsPositionInWindowCaption(
const gfx::Point& point) {
gfx::Point tabstrip_point(point);
- views::View::ConvertPointToView(browser_view_, tabstrip_, &tabstrip_point);
+ views::View::ConvertPointToTarget(browser_view_, tabstrip_, &tabstrip_point);
return tabstrip_->IsPositionInWindowCaption(tabstrip_point);
}
@@ -146,7 +146,7 @@
views::View* parent = browser_view_->parent();
gfx::Point point_in_browser_view_coords(point);
- views::View::ConvertPointToView(
+ views::View::ConvertPointToTarget(
parent, browser_view_, &point_in_browser_view_coords);
gfx::Point test_point(point);
@@ -309,7 +309,7 @@
gfx::Rect tabstrip_bounds(
browser_view_->frame()->GetBoundsForTabStrip(tabstrip_));
gfx::Point tabstrip_origin(tabstrip_bounds.origin());
- views::View::ConvertPointToView(browser_view_->parent(), browser_view_,
+ views::View::ConvertPointToTarget(browser_view_->parent(), browser_view_,
&tabstrip_origin);
tabstrip_bounds.set_origin(tabstrip_origin);
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | chrome/browser/ui/views/frame/glass_browser_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698