2021-04-09 01:15:51 +02:00
|
|
|
// Copyright (c) 2021 The Chromium Embedded Framework Authors. All rights
|
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that can
|
|
|
|
// be found in the LICENSE file.
|
|
|
|
|
|
|
|
#ifndef CEF_LIBCEF_BROWSER_CHROME_CHROME_CONTEXT_MENU_HANDLER_H_
|
|
|
|
#define CEF_LIBCEF_BROWSER_CHROME_CHROME_CONTEXT_MENU_HANDLER_H_
|
|
|
|
#pragma once
|
|
|
|
|
2024-04-17 18:01:26 +02:00
|
|
|
#include "content/public/browser/context_menu_params.h"
|
|
|
|
|
|
|
|
namespace content {
|
|
|
|
class WebContents;
|
|
|
|
}
|
|
|
|
|
2021-04-09 01:15:51 +02:00
|
|
|
namespace context_menu {
|
|
|
|
|
2024-04-17 18:01:26 +02:00
|
|
|
// Register RenderViewContextMenu callbacks.
|
|
|
|
void RegisterCallbacks();
|
|
|
|
|
|
|
|
// Returns true if the menu was handled.
|
|
|
|
bool HandleContextMenu(content::WebContents* opener,
|
|
|
|
const content::ContextMenuParams& params);
|
2021-04-09 01:15:51 +02:00
|
|
|
|
2024-06-12 23:12:50 +02:00
|
|
|
void MaybeResetContextMenu(content::WebContents* opener);
|
|
|
|
|
2021-04-09 01:15:51 +02:00
|
|
|
} // namespace context_menu
|
|
|
|
|
|
|
|
#endif // CEF_LIBCEF_BROWSER_CHROME_CHROME_CONTEXT_MENU_HANDLER_H_
|