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

Unified Diff: chrome/browser/views/download_item_view.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/bookmark_bar_view_test.cc ('k') | chrome/browser/views/download_tab_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/download_item_view.cc
===================================================================
--- chrome/browser/views/download_item_view.cc (revision 3347)
+++ chrome/browser/views/download_item_view.cc (working copy)
@@ -599,7 +599,7 @@
complete_animation_->End();
if (event.IsOnlyLeftMouseButton()) {
- WTL::CPoint point(event.x(), event.y());
+ gfx::Point point(event.location());
if (event.x() < drop_down_x_) {
SetState(PUSHED, NORMAL);
return true;
@@ -624,18 +624,18 @@
//
// TODO(idana): when bug# 1163334 is fixed the following check should be
// replaced with UILayoutIsRightToLeft().
- point.y = height();
+ point.set_y(height());
if (l10n_util::GetTextDirection() == l10n_util::RIGHT_TO_LEFT) {
- point.x = width();
+ point.set_x(width());
} else {
- point.x = drop_down_x_;
+ point.set_x(drop_down_x_);
}
ChromeViews::View::ConvertPointToScreen(this, &point);
download_util::DownloadShelfContextMenu menu(download_,
GetViewContainer()->GetHWND(),
model_.get(),
- point);
+ point.ToPOINT());
drop_down_pressed_ = false;
// Showing the menu blocks. Here we revert the state.
SetState(NORMAL, NORMAL);
« no previous file with comments | « chrome/browser/views/bookmark_bar_view_test.cc ('k') | chrome/browser/views/download_tab_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698