blob: 3e8703f5e34d177350c9b2ea666b0fe6a98101f5 [file]
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "extensions/shell/browser/shell_web_view_guest_delegate.h"
namespace extensions {
ShellWebViewGuestDelegate::ShellWebViewGuestDelegate() = default;
ShellWebViewGuestDelegate::~ShellWebViewGuestDelegate() = default;
bool ShellWebViewGuestDelegate::HandleContextMenu(
content::RenderFrameHost& render_frame_host,
const content::ContextMenuParams& params) {
// Eat the context menu request, as AppShell doesn't show context menus.
return true;
}
void ShellWebViewGuestDelegate::OnShowContextMenu(int request_id) {}
bool ShellWebViewGuestDelegate::NavigateToURLShouldBlock(const GURL& url) {
return false;
}
} // namespace extensions