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

Unified Diff: chrome/browser/views/toolbar_view.cc

Issue 14601: Some cleanup in view menu delegate (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 12 years 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/toolbar_view.h ('k') | chrome/views/checkbox.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/toolbar_view.cc
===================================================================
--- chrome/browser/views/toolbar_view.cc (revision 6997)
+++ chrome/browser/views/toolbar_view.cc (working copy)
@@ -462,7 +462,7 @@
return gfx::Size(0, locbar_height + 2 * kControlVertOffsetLocationOnly);
}
-void BrowserToolbarView::RunPageMenu(const CPoint& pt, HWND hwnd) {
+void BrowserToolbarView::RunPageMenu(const gfx::Point& pt, HWND hwnd) {
Menu::AnchorPoint anchor = Menu::TOPRIGHT;
if (UILayoutIsRightToLeft())
anchor = Menu::TOPLEFT;
@@ -526,10 +526,10 @@
menu.AppendMenuItemWithLabel(IDC_REPORT_BUG,
l10n_util::GetString(IDS_REPORT_BUG));
- menu.RunMenuAt(pt.x, pt.y);
+ menu.RunMenuAt(pt.x(), pt.y());
}
-void BrowserToolbarView::RunAppMenu(const CPoint& pt, HWND hwnd) {
+void BrowserToolbarView::RunAppMenu(const gfx::Point& pt, HWND hwnd) {
Menu::AnchorPoint anchor = Menu::TOPRIGHT;
if (UILayoutIsRightToLeft())
anchor = Menu::TOPLEFT;
@@ -573,7 +573,7 @@
menu.AppendSeparator();
menu.AppendMenuItemWithLabel(IDC_EXIT, l10n_util::GetString(IDS_EXIT));
- menu.RunMenuAt(pt.x, pt.y);
+ menu.RunMenuAt(pt.x(), pt.y());
// Menu is going away, so set the profiles menu pointer to NULL.
profiles_menu_ = NULL;
@@ -587,7 +587,7 @@
return EncodingMenuControllerDelegate::IsItemChecked(id);
}
-void BrowserToolbarView::RunMenu(views::View* source, const CPoint& pt,
+void BrowserToolbarView::RunMenu(views::View* source, const gfx::Point& pt,
HWND hwnd) {
switch (source->GetID()) {
case VIEW_ID_PAGE_MENU:
« no previous file with comments | « chrome/browser/views/toolbar_view.h ('k') | chrome/views/checkbox.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698