fix build

This commit is contained in:
Joao Moreno 2014-11-26 15:28:03 +01:00
parent c6a16161d9
commit c06e844ef4

View file

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