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

Unified Diff: chrome/browser/views/old_frames/simple_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/location_bar_view.cc ('k') | chrome/browser/views/old_frames/vista_frame.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/old_frames/simple_xp_frame.cc
===================================================================
--- chrome/browser/views/old_frames/simple_xp_frame.cc (revision 3347)
+++ chrome/browser/views/old_frames/simple_xp_frame.cc (working copy)
@@ -195,13 +195,13 @@
// when the UI layout is RTL and hence we use the mirroring transformation
// flag. We also adjust the menu position because RTL menus use a different
// anchor point.
- CPoint p(menu_button_->GetX(APPLY_MIRRORING_TRANSFORMATION),
- menu_button_->y() + menu_button_->height());
+ gfx::Point p(menu_button_->GetX(APPLY_MIRRORING_TRANSFORMATION),
+ menu_button_->y() + menu_button_->height());
if (UILayoutIsRightToLeft())
- p.x += menu_button_->width();
+ p.set_x(p.x() + menu_button_->width());
View::ConvertPointToScreen(this, &p);
- parent_->RunMenu(p, hwnd);
+ parent_->RunMenu(p.ToPOINT(), hwnd);
}
void SimpleXPFrameTitleBar::Layout() {
@@ -342,12 +342,12 @@
LRESULT SimpleXPFrame::OnNCHitTest(const CPoint& pt) {
if (IsTitleBarVisible()) {
- CPoint p(pt);
+ gfx::Point p(pt);
ChromeViews::View::ConvertPointToView(NULL, title_bar_, &p);
- if (!title_bar_->WillHandleMouseEvent(p.x, p.y) &&
- p.x >= 0 && p.y >= kTopResizeBarHeight &&
- p.x < title_bar_->width() &&
- p.y < title_bar_->height()) {
+ if (!title_bar_->WillHandleMouseEvent(p.x(), p.y()) &&
+ p.x() >= 0 && p.y() >= kTopResizeBarHeight &&
+ p.x() < title_bar_->width() &&
+ p.y() < title_bar_->height()) {
return HTCAPTION;
}
}
« no previous file with comments | « chrome/browser/views/location_bar_view.cc ('k') | chrome/browser/views/old_frames/vista_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698