]> khamidou — GitHub mirrors - electron.git/commitdiff
fix build
authorJoao Moreno <mail@joaomoreno.com>
Wed, 26 Nov 2014 14:28:03 +0000 (15:28 +0100)
committerJoao Moreno <mail@joaomoreno.com>
Wed, 26 Nov 2014 14:28:03 +0000 (15:28 +0100)
atom/browser/api/atom_api_menu_views.cc

index ed751e8dc03009c9fcd3e60f7deac8d45faf6f58..c8c7ceb50acbdb4e5808f49a72b01796e782cb06 100644 (file)
@@ -21,9 +21,10 @@ void MenuViews::Popup(Window* window) {
 }
 
 void MenuViews::PopupAt(Window* window, int x, int y) {
-  NativeWindow* nativeWindowViews = static_cast<NativeWindow*>(window->window());
-  content::RenderWidgetHostView* view = nativeWindowViews->GetWebContents()->GetRenderWidgetHostView();
-  gfx::Point viewOrigin = view->GetViewBounds().origin();
+  NativeWindow* nativeWindowViews =
+    static_cast<NativeWindow*>(window->window());
+  gfx::Point viewOrigin = nativeWindowViews->GetWebContents()
+    ->GetRenderWidgetHostView()->GetViewBounds().origin();
   PopupAtPoint(window, gfx::Point(viewOrigin.x() + x, viewOrigin.y() + y));
 }