1 // Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights 2 // reserved. Use of this source code is governed by a BSD-style license that 3 // can be found in the LICENSE file. 4 // 5 // --------------------------------------------------------------------------- 6 // 7 // This file was generated by the CEF translator tool. If making changes by 8 // hand only do so within the body of existing method and function 9 // implementations. See the translator.README.txt file in the tools directory 10 // for more information. 11 // 12 // $hash=c4370b0b3a14c9739b5a639eda06c286f6981e10$ 13 // 14 15 #ifndef CEF_LIBCEF_DLL_CTOCPP_CLIENT_CTOCPP_H_ 16 #define CEF_LIBCEF_DLL_CTOCPP_CLIENT_CTOCPP_H_ 17 #pragma once 18 19 #if !defined(BUILDING_CEF_SHARED) 20 #error This file can be included DLL-side only 21 #endif 22 23 #include "include/capi/cef_client_capi.h" 24 #include "include/cef_client.h" 25 #include "libcef_dll/ctocpp/ctocpp_ref_counted.h" 26 27 // Wrap a C structure with a C++ class. 28 // This class may be instantiated and accessed DLL-side only. 29 class CefClientCToCpp 30 : public CefCToCppRefCounted<CefClientCToCpp, CefClient, cef_client_t> { 31 public: 32 CefClientCToCpp(); 33 virtual ~CefClientCToCpp(); 34 35 // CefClient methods. 36 CefRefPtr<CefAudioHandler> GetAudioHandler() override; 37 CefRefPtr<CefContextMenuHandler> GetContextMenuHandler() override; 38 CefRefPtr<CefDialogHandler> GetDialogHandler() override; 39 CefRefPtr<CefDisplayHandler> GetDisplayHandler() override; 40 CefRefPtr<CefDownloadHandler> GetDownloadHandler() override; 41 CefRefPtr<CefDragHandler> GetDragHandler() override; 42 CefRefPtr<CefFindHandler> GetFindHandler() override; 43 CefRefPtr<CefFocusHandler> GetFocusHandler() override; 44 CefRefPtr<CefFrameHandler> GetFrameHandler() override; 45 CefRefPtr<CefJSDialogHandler> GetJSDialogHandler() override; 46 CefRefPtr<CefKeyboardHandler> GetKeyboardHandler() override; 47 CefRefPtr<CefLifeSpanHandler> GetLifeSpanHandler() override; 48 CefRefPtr<CefLoadHandler> GetLoadHandler() override; 49 CefRefPtr<CefPrintHandler> GetPrintHandler() override; 50 CefRefPtr<CefRenderHandler> GetRenderHandler() override; 51 CefRefPtr<CefRequestHandler> GetRequestHandler() override; 52 bool OnProcessMessageReceived(CefRefPtr<CefBrowser> browser, 53 CefRefPtr<CefFrame> frame, 54 CefProcessId source_process, 55 CefRefPtr<CefProcessMessage> message) override; 56 }; 57 58 #endif // CEF_LIBCEF_DLL_CTOCPP_CLIENT_CTOCPP_H_ 59