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

Unified Diff: chrome/browser/views/status_bubble.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/xp_frame.cc ('k') | chrome/browser/views/tabs/dragged_tab_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/status_bubble.cc
===================================================================
--- chrome/browser/views/status_bubble.cc (revision 3347)
+++ chrome/browser/views/status_bubble.cc (working copy)
@@ -567,12 +567,12 @@
GetCursorPos(&cursor_location);
// Get the position of the frame.
- CPoint top_left(0, 0);
+ gfx::Point top_left;
ChromeViews::View::ConvertPointToScreen(frame_->GetRootView(), &top_left);
// Get the cursor position relative to the popup.
- cursor_location.x -= (top_left.x + position_.x);
- cursor_location.y -= (top_left.y + position_.y);
+ cursor_location.x -= (top_left.x() + position_.x);
+ cursor_location.y -= (top_left.y() + position_.y);
// If the mouse is in a position where we think it would move the
// status bubble, figure out where and how the bubble should be moved.
@@ -605,15 +605,15 @@
}
offset_ = offset;
- popup_->MoveWindow(top_left.x + position_.x,
- top_left.y + position_.y + offset_,
+ popup_->MoveWindow(top_left.x() + position_.x,
+ top_left.y() + position_.y + offset_,
size_.cx,
size_.cy);
} else if (offset_ != 0) {
offset_ = 0;
view_->SetStyle(StatusView::STYLE_STANDARD);
- popup_->MoveWindow(top_left.x + position_.x,
- top_left.y + position_.y,
+ popup_->MoveWindow(top_left.x() + position_.x,
+ top_left.y() + position_.y,
size_.cx,
size_.cy);
}
@@ -621,11 +621,11 @@
void StatusBubble::Reposition() {
if (popup_) {
- CPoint top_left(0, 0);
+ gfx::Point top_left;
ChromeViews::View::ConvertPointToScreen(frame_->GetRootView(), &top_left);
- popup_->MoveWindow(top_left.x + position_.x,
- top_left.y + position_.y,
+ popup_->MoveWindow(top_left.x() + position_.x,
+ top_left.y() + position_.y,
size_.cx,
size_.cy);
}
« no previous file with comments | « chrome/browser/views/old_frames/xp_frame.cc ('k') | chrome/browser/views/tabs/dragged_tab_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698