Skip to content

Commit

Permalink
mac rebase fix
Browse files Browse the repository at this point in the history
  • Loading branch information
build committed Oct 9, 2015
1 parent be0d62a commit c81c882
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions patch/patches/webrtc_openssl.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
diff --git a/base/base.gyp b/base/base.gyp
diff --git base/base.gyp base/base.gyp
index 7bfa3e3..4685b0b 100644
--- a/base/base.gyp
+++ b/base/base.gyp
--- base/base.gyp
+++ base/base.gyp
@@ -548,7 +548,7 @@
'conditions': [
# On some platforms, the rest of NSS is bundled. On others,
Expand Down
7 changes: 3 additions & 4 deletions src/api/menu/menu_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#import <Cocoa/Cocoa.h>
#include "content/public/browser/web_contents.h"
#include "content/public/browser/render_widget_host_view.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/render_frame_host.h"
#include "content/nw/src/api/object_manager.h"
#include "content/nw/src/api/menu/menu_delegate_mac.h"
#include "content/nw/src/api/menuitem/menuitem.h"
Expand Down Expand Up @@ -57,10 +57,9 @@
[menu_ removeItem:menu_item->menu_item_];
}

void Menu::Popup(int x, int y, content::RenderViewHost* rvh) {
void Menu::Popup(int x, int y, content::RenderFrameHost* rfh) {
// Fake out a context menu event for our menu
NSView* web_view =
rvh->GetView()->GetNativeView();
NSView* web_view = rfh->GetNativeView();
NSWindow* window = [web_view window];
NSEvent* currentEvent = [NSApp currentEvent];
NSPoint position = { x, web_view.bounds.size.height - y };
Expand Down

0 comments on commit c81c882

Please sign in to comment.