From c06e844ef4efaac3049f3ba5382c1dc6dc4f1365 Mon Sep 17 00:00:00 2001 From: Joao Moreno Date: Wed, 26 Nov 2014 15:28:03 +0100 Subject: [PATCH] fix build --- atom/browser/api/atom_api_menu_views.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/atom/browser/api/atom_api_menu_views.cc b/atom/browser/api/atom_api_menu_views.cc index ed751e8dc030..c8c7ceb50acb 100644 --- a/atom/browser/api/atom_api_menu_views.cc +++ b/atom/browser/api/atom_api_menu_views.cc @@ -21,9 +21,10 @@ void MenuViews::Popup(Window* window) { } void MenuViews::PopupAt(Window* window, int x, int y) { - NativeWindow* nativeWindowViews = static_cast(window->window()); - content::RenderWidgetHostView* view = nativeWindowViews->GetWebContents()->GetRenderWidgetHostView(); - gfx::Point viewOrigin = view->GetViewBounds().origin(); + NativeWindow* nativeWindowViews = + static_cast(window->window()); + gfx::Point viewOrigin = nativeWindowViews->GetWebContents() + ->GetRenderWidgetHostView()->GetViewBounds().origin(); PopupAtPoint(window, gfx::Point(viewOrigin.x() + x, viewOrigin.y() + y)); }