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

Unified Diff: chrome/browser/views/old_frames/xp_frame.cc

Issue 7317: Change all ConvertPointTo* methods to use gfx::Point instead of CPoint.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 2 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/views/old_frames/vista_frame.cc ('k') | chrome/browser/views/status_bubble.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/old_frames/xp_frame.cc
===================================================================
--- chrome/browser/views/old_frames/xp_frame.cc (revision 3348)
+++ chrome/browser/views/old_frames/xp_frame.cc (working copy)
@@ -1388,19 +1388,19 @@
return HTCAPTION;
}
- CPoint tsp(p);
+ gfx::Point tsp(p);
ChromeViews::View::ConvertPointToView(&root_view_, tabstrip_, &tsp);
// If the mouse is over the tabstrip. Check if we should move the window or
// capture the mouse.
- if (tabstrip_->CanProcessInputEvents() && tabstrip_->HitTest(tsp)) {
+ if (tabstrip_->CanProcessInputEvents() && tabstrip_->HitTest(tsp.ToPOINT())) {
// The top few pixels of a tab strip are a dropshadow - as we're pretty
// starved of draggable area, let's give it to window dragging (this
// also makes sense visually.
- if (!IsZoomed() && tsp.y < kTabShadowSize)
+ if (!IsZoomed() && tsp.y() < kTabShadowSize)
return HTCAPTION;
- ChromeViews::View* v = tabstrip_->GetViewForPoint(tsp);
+ ChromeViews::View* v = tabstrip_->GetViewForPoint(tsp.ToPOINT());
// If there is not tab at this location, claim the hit was in the title
// bar to get a move action.
if (v == tabstrip_)
@@ -1815,18 +1815,18 @@
Layout();
}
- CPoint p(0, 0);
+ gfx::Point p;
ChromeViews::View::ConvertPointToViewContainer(tab_contents_container_, &p);
CRect bounds;
GetBounds(&bounds, true);
gfx::Rect r;
- r.set_x(content_rect.x() - p.x);
- r.set_y(content_rect.y() - p.y);
- r.set_width(p.x + content_rect.width() +
- (bounds.Width() - (p.x + tab_contents_container_->width())));
- r.set_height(p.y + content_rect.height() +
- (bounds.Height() - (p.y +
+ r.set_x(content_rect.x() - p.x());
+ r.set_y(content_rect.y() - p.y());
+ r.set_width(p.x() + content_rect.width() +
+ (bounds.Width() - (p.x() + tab_contents_container_->width())));
+ r.set_height(p.y() + content_rect.height() +
+ (bounds.Height() - (p.y() +
tab_contents_container_->height())));
return r;
}
« no previous file with comments | « chrome/browser/views/old_frames/vista_frame.cc ('k') | chrome/browser/views/status_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698