2023-01-02 23:47:15 +01:00
|
|
|
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
|
2012-04-19 22:31:46 +02:00
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
//
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// This file was generated by the CEF translator tool. If making changes by
|
|
|
|
// hand only do so within the body of existing method and function
|
|
|
|
// implementations. See the translator.README.txt file in the tools directory
|
|
|
|
// for more information.
|
|
|
|
//
|
2023-01-02 23:47:15 +01:00
|
|
|
// $hash=200acf8c2308059416e4f920d66bb98c6f234ffe$
|
2017-05-17 11:29:28 +02:00
|
|
|
//
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
#ifndef CEF_LIBCEF_DLL_CTOCPP_CONTEXT_MENU_HANDLER_CTOCPP_H_
|
|
|
|
#define CEF_LIBCEF_DLL_CTOCPP_CONTEXT_MENU_HANDLER_CTOCPP_H_
|
|
|
|
#pragma once
|
|
|
|
|
2016-11-18 00:52:42 +01:00
|
|
|
#if !defined(BUILDING_CEF_SHARED)
|
|
|
|
#error This file can be included DLL-side only
|
|
|
|
#endif
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
#include "include/capi/cef_context_menu_handler_capi.h"
|
2017-05-17 11:29:28 +02:00
|
|
|
#include "include/cef_context_menu_handler.h"
|
2017-02-09 23:07:43 +01:00
|
|
|
#include "libcef_dll/ctocpp/ctocpp_ref_counted.h"
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Wrap a C structure with a C++ class.
|
|
|
|
// This class may be instantiated and accessed DLL-side only.
|
|
|
|
class CefContextMenuHandlerCToCpp
|
2017-02-09 23:07:43 +01:00
|
|
|
: public CefCToCppRefCounted<CefContextMenuHandlerCToCpp,
|
2017-05-17 11:29:28 +02:00
|
|
|
CefContextMenuHandler,
|
|
|
|
cef_context_menu_handler_t> {
|
2012-04-19 22:31:46 +02:00
|
|
|
public:
|
2015-04-26 20:40:01 +02:00
|
|
|
CefContextMenuHandlerCToCpp();
|
2019-01-23 16:42:12 +01:00
|
|
|
virtual ~CefContextMenuHandlerCToCpp();
|
2012-04-19 22:31:46 +02:00
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
// CefContextMenuHandler methods.
|
2014-11-12 20:25:15 +01:00
|
|
|
void OnBeforeContextMenu(CefRefPtr<CefBrowser> browser,
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefFrame> frame,
|
|
|
|
CefRefPtr<CefContextMenuParams> params,
|
|
|
|
CefRefPtr<CefMenuModel> model) override;
|
|
|
|
bool RunContextMenu(CefRefPtr<CefBrowser> browser,
|
|
|
|
CefRefPtr<CefFrame> frame,
|
|
|
|
CefRefPtr<CefContextMenuParams> params,
|
|
|
|
CefRefPtr<CefMenuModel> model,
|
|
|
|
CefRefPtr<CefRunContextMenuCallback> callback) override;
|
2014-11-12 20:25:15 +01:00
|
|
|
bool OnContextMenuCommand(CefRefPtr<CefBrowser> browser,
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefFrame> frame,
|
|
|
|
CefRefPtr<CefContextMenuParams> params,
|
|
|
|
int command_id,
|
|
|
|
EventFlags event_flags) override;
|
2014-11-12 20:25:15 +01:00
|
|
|
void OnContextMenuDismissed(CefRefPtr<CefBrowser> browser,
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefFrame> frame) override;
|
2022-05-27 11:03:31 +02:00
|
|
|
bool RunQuickMenu(CefRefPtr<CefBrowser> browser,
|
|
|
|
CefRefPtr<CefFrame> frame,
|
|
|
|
const CefPoint& location,
|
|
|
|
const CefSize& size,
|
|
|
|
QuickMenuEditStateFlags edit_state_flags,
|
|
|
|
CefRefPtr<CefRunQuickMenuCallback> callback) override;
|
|
|
|
bool OnQuickMenuCommand(CefRefPtr<CefBrowser> browser,
|
|
|
|
CefRefPtr<CefFrame> frame,
|
|
|
|
int command_id,
|
|
|
|
EventFlags event_flags) override;
|
|
|
|
void OnQuickMenuDismissed(CefRefPtr<CefBrowser> browser,
|
|
|
|
CefRefPtr<CefFrame> frame) override;
|
2012-04-19 22:31:46 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CEF_LIBCEF_DLL_CTOCPP_CONTEXT_MENU_HANDLER_CTOCPP_H_
|