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

Unified Diff: ui/views/controls/menu/menu_runner_impl_cocoa.mm

Issue 1777653002: Prepare ui/ module for compilation with OS X 10.7 deployment target. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More compile errors. Created 4 years, 9 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 | « ui/views/cocoa/widget_owner_nswindow_adapter.mm ('k') | ui/views/test/event_generator_delegate_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/menu/menu_runner_impl_cocoa.mm
diff --git a/ui/views/controls/menu/menu_runner_impl_cocoa.mm b/ui/views/controls/menu/menu_runner_impl_cocoa.mm
index 47547814cf831b6d72bcb29a2e2ea02ad41e63fa..454c951817bbf6cba4efaf8acea43c8038dee911 100644
--- a/ui/views/controls/menu/menu_runner_impl_cocoa.mm
+++ b/ui/views/controls/menu/menu_runner_impl_cocoa.mm
@@ -4,6 +4,7 @@
#import "ui/views/controls/menu/menu_runner_impl_cocoa.h"
+#include "base/mac/sdk_forward_declarations.h"
#import "ui/base/cocoa/menu_controller.h"
#include "ui/base/models/menu_model.h"
#include "ui/events/event_utils.h"
@@ -41,7 +42,7 @@ base::scoped_nsobject<NSView> CreateMenuAnchorView(
const gfx::Rect& screen_bounds,
NSMenuItem* checked_item) {
NSRect rect = gfx::ScreenRectToNSRect(screen_bounds);
- rect.origin = [window convertScreenToBase:rect.origin];
+ rect = [window convertRectFromScreen:rect];
rect = [[window contentView] convertRect:rect fromView:nil];
// If there's no checked item (e.g. Combobox::STYLE_ACTION), NSMenu will
« no previous file with comments | « ui/views/cocoa/widget_owner_nswindow_adapter.mm ('k') | ui/views/test/event_generator_delegate_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698