adds ipc send to disable external popups on macos
This commit is contained in:
parent
ff053bbe06
commit
6b33564056
1 changed files with 6 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
#include "atom/browser/osr/osr_web_contents_view.h"
|
#include "atom/browser/osr/osr_web_contents_view.h"
|
||||||
|
|
||||||
|
#include "content/common/worker_messages.h"
|
||||||
#include "content/public/browser/render_view_host.h"
|
#include "content/public/browser/render_view_host.h"
|
||||||
#include "third_party/WebKit/public/platform/WebScreenInfo.h"
|
#include "third_party/WebKit/public/platform/WebScreenInfo.h"
|
||||||
#include "ui/display/screen.h"
|
#include "ui/display/screen.h"
|
||||||
|
@ -124,6 +125,11 @@ void OffScreenWebContentsView::RenderViewCreated(
|
||||||
content::RenderViewHost* host) {
|
content::RenderViewHost* host) {
|
||||||
if (GetView())
|
if (GetView())
|
||||||
GetView()->InstallTransparency();
|
GetView()->InstallTransparency();
|
||||||
|
|
||||||
|
#if defined(OS_MACOSX)
|
||||||
|
host->Send(new WorkerProcessMsg_DisableExternalPopupMenus(
|
||||||
|
host->GetRoutingID()));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void OffScreenWebContentsView::RenderViewSwappedIn(
|
void OffScreenWebContentsView::RenderViewSwappedIn(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue