Chromium Code Reviews| Index: chrome/browser/ui/views/action_box_menu.cc |
| diff --git a/chrome/browser/ui/views/action_box_menu.cc b/chrome/browser/ui/views/action_box_menu.cc |
| index 4412d03c87188462196e16303dceef1251d5d93b..d174ee3c166d8cb444fe14c52e151ea8d5405426 100644 |
| --- a/chrome/browser/ui/views/action_box_menu.cc |
| +++ b/chrome/browser/ui/views/action_box_menu.cc |
| @@ -40,9 +40,11 @@ void ActionBoxMenu::Init() { |
| PopulateMenu(); |
| } |
| -void ActionBoxMenu::RunMenu(views::MenuButton* menu_button) { |
| +void ActionBoxMenu::RunMenu(views::MenuButton* menu_button, |
| + gfx::Size menu_offset) { |
| gfx::Point screen_location; |
| views::View::ConvertPointToScreen(menu_button, &screen_location); |
| + screen_location.Offset(menu_offset.width(), menu_offset.height()); |
|
Peter Kasting
2012/09/14 22:21:38
If you pass in the offset as a point rather than a
yefimt
2012/09/14 22:46:35
Done.
|
| menu_runner_.reset(new views::MenuRunner(root_)); |
| // Ignore the result since we don't need to handle a deleted menu specially. |
| ignore_result( |