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

Unified Diff: chrome/browser/views/bookmark_bar_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/history_view.cc ('k') | chrome/browser/views/bookmark_bar_view_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/bookmark_bar_view.cc
===================================================================
--- chrome/browser/views/bookmark_bar_view.cc (revision 3347)
+++ chrome/browser/views/bookmark_bar_view.cc (working copy)
@@ -242,10 +242,10 @@
}
bool GetTooltipText(int x, int y, std::wstring* tooltip) {
- CPoint location(x, y);
+ gfx::Point location(x, y);
ConvertPointToScreen(this, &location);
*tooltip = CreateToolTipForURLAndTitle(
- gfx::Point(location.x, location.y), url_, GetText(),
+ gfx::Point(location.x(), location.y()), url_, GetText(),
profile_->GetPrefs()->GetString(prefs::kAcceptLanguages));
return !tooltip->empty();
}
@@ -1403,12 +1403,12 @@
else
anchor_point = MenuItemView::TOPLEFT;
}
- CPoint screen_loc(x, 0);
+ gfx::Point screen_loc(x, 0);
View::ConvertPointToScreen(this, &screen_loc);
menu_runner_.reset(new MenuRunner(this, node, start_index));
HWND parent_hwnd = GetViewContainer()->GetHWND();
menu_runner_->RunMenuAt(parent_hwnd,
- gfx::Rect(screen_loc.x, screen_loc.y,
+ gfx::Rect(screen_loc.x(), screen_loc.y(),
view->width(), bar_height),
anchor_point,
false);
@@ -1586,11 +1586,11 @@
drop_info_->is_menu_showing = true;
drop_menu_runner_.reset(new MenuRunner(this, node, start_index));
- CPoint screen_loc(0, 0);
+ gfx::Point screen_loc;
View::ConvertPointToScreen(view_to_position_menu_from, &screen_loc);
drop_menu_runner_->RunMenuAt(
GetViewContainer()->GetHWND(),
- gfx::Rect(screen_loc.x, screen_loc.y,
+ gfx::Rect(screen_loc.x(), screen_loc.y(),
view_to_position_menu_from->width(),
view_to_position_menu_from->height()),
anchor, true);
« no previous file with comments | « chrome/browser/history_view.cc ('k') | chrome/browser/views/bookmark_bar_view_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698