mirror of
				https://bitbucket.org/chromiumembedded/cef
				synced 2025-06-05 21:39:12 +02:00 
			
		
		
		
	Don't check in files generated by the translator tool
This commit is contained in:
		@@ -1,100 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=9ce35c9de37d66355402b640df7068f40ff47d1c$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/accessibility_handler_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/ctocpp/value_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK accessibility_handler_on_accessibility_tree_change(
 | 
			
		||||
    struct _cef_accessibility_handler_t* self,
 | 
			
		||||
    struct _cef_value_t* value) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: value; type: refptr_diff
 | 
			
		||||
  DCHECK(value);
 | 
			
		||||
  if (!value) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefAccessibilityHandlerCppToC::Get(self)->OnAccessibilityTreeChange(
 | 
			
		||||
      CefValueCToCpp::Wrap(value));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK accessibility_handler_on_accessibility_location_change(
 | 
			
		||||
    struct _cef_accessibility_handler_t* self,
 | 
			
		||||
    struct _cef_value_t* value) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: value; type: refptr_diff
 | 
			
		||||
  DCHECK(value);
 | 
			
		||||
  if (!value) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefAccessibilityHandlerCppToC::Get(self)->OnAccessibilityLocationChange(
 | 
			
		||||
      CefValueCToCpp::Wrap(value));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefAccessibilityHandlerCppToC::CefAccessibilityHandlerCppToC() {
 | 
			
		||||
  GetStruct()->on_accessibility_tree_change =
 | 
			
		||||
      accessibility_handler_on_accessibility_tree_change;
 | 
			
		||||
  GetStruct()->on_accessibility_location_change =
 | 
			
		||||
      accessibility_handler_on_accessibility_location_change;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefAccessibilityHandlerCppToC::~CefAccessibilityHandlerCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefAccessibilityHandler> CefCppToCRefCounted<
 | 
			
		||||
    CefAccessibilityHandlerCppToC,
 | 
			
		||||
    CefAccessibilityHandler,
 | 
			
		||||
    cef_accessibility_handler_t>::UnwrapDerived(CefWrapperType type,
 | 
			
		||||
                                                cef_accessibility_handler_t*
 | 
			
		||||
                                                    s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefAccessibilityHandlerCppToC,
 | 
			
		||||
                                   CefAccessibilityHandler,
 | 
			
		||||
                                   cef_accessibility_handler_t>::kWrapperType =
 | 
			
		||||
    WT_ACCESSIBILITY_HANDLER;
 | 
			
		||||
@@ -1,38 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=dcb546161d26453a2fc10e0bedf1a7d0e2010def$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_ACCESSIBILITY_HANDLER_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_ACCESSIBILITY_HANDLER_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(WRAPPING_CEF_SHARED)
 | 
			
		||||
#error This file can be included wrapper-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_accessibility_handler_capi.h"
 | 
			
		||||
#include "include/cef_accessibility_handler.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed wrapper-side only.
 | 
			
		||||
class CefAccessibilityHandlerCppToC
 | 
			
		||||
    : public CefCppToCRefCounted<CefAccessibilityHandlerCppToC,
 | 
			
		||||
                                 CefAccessibilityHandler,
 | 
			
		||||
                                 cef_accessibility_handler_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefAccessibilityHandlerCppToC();
 | 
			
		||||
  virtual ~CefAccessibilityHandlerCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_ACCESSIBILITY_HANDLER_CPPTOC_H_
 | 
			
		||||
@@ -1,151 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=754b23bd4451df2b40e62a22e99652069422550d$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/app_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/browser_process_handler_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/render_process_handler_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/resource_bundle_handler_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/ctocpp/command_line_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/ctocpp/scheme_registrar_ctocpp.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK app_on_before_command_line_processing(
 | 
			
		||||
    struct _cef_app_t* self,
 | 
			
		||||
    const cef_string_t* process_type,
 | 
			
		||||
    struct _cef_command_line_t* command_line) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: command_line; type: refptr_diff
 | 
			
		||||
  DCHECK(command_line);
 | 
			
		||||
  if (!command_line) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Unverified params: process_type
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefAppCppToC::Get(self)->OnBeforeCommandLineProcessing(
 | 
			
		||||
      CefString(process_type), CefCommandLineCToCpp::Wrap(command_line));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
app_on_register_custom_schemes(struct _cef_app_t* self,
 | 
			
		||||
                               struct _cef_scheme_registrar_t* registrar) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: registrar; type: rawptr_diff
 | 
			
		||||
  DCHECK(registrar);
 | 
			
		||||
  if (!registrar) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Translate param: registrar; type: rawptr_diff
 | 
			
		||||
  CefOwnPtr<CefSchemeRegistrar> registrarPtr(
 | 
			
		||||
      CefSchemeRegistrarCToCpp::Wrap(registrar));
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefAppCppToC::Get(self)->OnRegisterCustomSchemes(registrarPtr.get());
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_resource_bundle_handler_t* CEF_CALLBACK
 | 
			
		||||
app_get_resource_bundle_handler(struct _cef_app_t* self) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefResourceBundleHandler> _retval =
 | 
			
		||||
      CefAppCppToC::Get(self)->GetResourceBundleHandler();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefResourceBundleHandlerCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_browser_process_handler_t* CEF_CALLBACK
 | 
			
		||||
app_get_browser_process_handler(struct _cef_app_t* self) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefBrowserProcessHandler> _retval =
 | 
			
		||||
      CefAppCppToC::Get(self)->GetBrowserProcessHandler();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefBrowserProcessHandlerCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_render_process_handler_t* CEF_CALLBACK
 | 
			
		||||
app_get_render_process_handler(struct _cef_app_t* self) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefRenderProcessHandler> _retval =
 | 
			
		||||
      CefAppCppToC::Get(self)->GetRenderProcessHandler();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefRenderProcessHandlerCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefAppCppToC::CefAppCppToC() {
 | 
			
		||||
  GetStruct()->on_before_command_line_processing =
 | 
			
		||||
      app_on_before_command_line_processing;
 | 
			
		||||
  GetStruct()->on_register_custom_schemes = app_on_register_custom_schemes;
 | 
			
		||||
  GetStruct()->get_resource_bundle_handler = app_get_resource_bundle_handler;
 | 
			
		||||
  GetStruct()->get_browser_process_handler = app_get_browser_process_handler;
 | 
			
		||||
  GetStruct()->get_render_process_handler = app_get_render_process_handler;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefAppCppToC::~CefAppCppToC() {}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefApp>
 | 
			
		||||
CefCppToCRefCounted<CefAppCppToC, CefApp, cef_app_t>::UnwrapDerived(
 | 
			
		||||
    CefWrapperType type,
 | 
			
		||||
    cef_app_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType
 | 
			
		||||
    CefCppToCRefCounted<CefAppCppToC, CefApp, cef_app_t>::kWrapperType = WT_APP;
 | 
			
		||||
@@ -1,36 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=f232ede960f84fea711628392351ae95e57af378$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_APP_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_APP_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(WRAPPING_CEF_SHARED)
 | 
			
		||||
#error This file can be included wrapper-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_app_capi.h"
 | 
			
		||||
#include "include/cef_app.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed wrapper-side only.
 | 
			
		||||
class CefAppCppToC
 | 
			
		||||
    : public CefCppToCRefCounted<CefAppCppToC, CefApp, cef_app_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefAppCppToC();
 | 
			
		||||
  virtual ~CefAppCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_APP_CPPTOC_H_
 | 
			
		||||
@@ -1,207 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=63f55ceeec4a649ad2331bb0304557b7c0e4cb31$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/audio_handler_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/ctocpp/browser_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
audio_handler_get_audio_parameters(struct _cef_audio_handler_t* self,
 | 
			
		||||
                                   struct _cef_browser_t* browser,
 | 
			
		||||
                                   cef_audio_parameters_t* params) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: params; type: simple_byref
 | 
			
		||||
  DCHECK(params);
 | 
			
		||||
  if (!params) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Translate param: params; type: simple_byref
 | 
			
		||||
  CefAudioParameters paramsVal = params ? *params : CefAudioParameters();
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefAudioHandlerCppToC::Get(self)->GetAudioParameters(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), paramsVal);
 | 
			
		||||
 | 
			
		||||
  // Restore param: params; type: simple_byref
 | 
			
		||||
  if (params) {
 | 
			
		||||
    *params = paramsVal;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
audio_handler_on_audio_stream_started(struct _cef_audio_handler_t* self,
 | 
			
		||||
                                      struct _cef_browser_t* browser,
 | 
			
		||||
                                      const cef_audio_parameters_t* params,
 | 
			
		||||
                                      int channels) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: params; type: simple_byref_const
 | 
			
		||||
  DCHECK(params);
 | 
			
		||||
  if (!params) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Translate param: params; type: simple_byref_const
 | 
			
		||||
  CefAudioParameters paramsVal = params ? *params : CefAudioParameters();
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefAudioHandlerCppToC::Get(self)->OnAudioStreamStarted(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), paramsVal, channels);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
audio_handler_on_audio_stream_packet(struct _cef_audio_handler_t* self,
 | 
			
		||||
                                     struct _cef_browser_t* browser,
 | 
			
		||||
                                     const float** data,
 | 
			
		||||
                                     int frames,
 | 
			
		||||
                                     int64_t pts) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: data; type: simple_byaddr
 | 
			
		||||
  DCHECK(data);
 | 
			
		||||
  if (!data) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefAudioHandlerCppToC::Get(self)->OnAudioStreamPacket(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), data, frames, pts);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
audio_handler_on_audio_stream_stopped(struct _cef_audio_handler_t* self,
 | 
			
		||||
                                      struct _cef_browser_t* browser) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefAudioHandlerCppToC::Get(self)->OnAudioStreamStopped(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
audio_handler_on_audio_stream_error(struct _cef_audio_handler_t* self,
 | 
			
		||||
                                    struct _cef_browser_t* browser,
 | 
			
		||||
                                    const cef_string_t* message) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: message; type: string_byref_const
 | 
			
		||||
  DCHECK(message);
 | 
			
		||||
  if (!message) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefAudioHandlerCppToC::Get(self)->OnAudioStreamError(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), CefString(message));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefAudioHandlerCppToC::CefAudioHandlerCppToC() {
 | 
			
		||||
  GetStruct()->get_audio_parameters = audio_handler_get_audio_parameters;
 | 
			
		||||
  GetStruct()->on_audio_stream_started = audio_handler_on_audio_stream_started;
 | 
			
		||||
  GetStruct()->on_audio_stream_packet = audio_handler_on_audio_stream_packet;
 | 
			
		||||
  GetStruct()->on_audio_stream_stopped = audio_handler_on_audio_stream_stopped;
 | 
			
		||||
  GetStruct()->on_audio_stream_error = audio_handler_on_audio_stream_error;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefAudioHandlerCppToC::~CefAudioHandlerCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefAudioHandler> CefCppToCRefCounted<
 | 
			
		||||
    CefAudioHandlerCppToC,
 | 
			
		||||
    CefAudioHandler,
 | 
			
		||||
    cef_audio_handler_t>::UnwrapDerived(CefWrapperType type,
 | 
			
		||||
                                        cef_audio_handler_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefAudioHandlerCppToC,
 | 
			
		||||
                                   CefAudioHandler,
 | 
			
		||||
                                   cef_audio_handler_t>::kWrapperType =
 | 
			
		||||
    WT_AUDIO_HANDLER;
 | 
			
		||||
@@ -1,37 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=d67e7dfa6bbb0a144d5199a8c8f0a31e91483d0e$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_AUDIO_HANDLER_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_AUDIO_HANDLER_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(WRAPPING_CEF_SHARED)
 | 
			
		||||
#error This file can be included wrapper-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_audio_handler_capi.h"
 | 
			
		||||
#include "include/cef_audio_handler.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed wrapper-side only.
 | 
			
		||||
class CefAudioHandlerCppToC : public CefCppToCRefCounted<CefAudioHandlerCppToC,
 | 
			
		||||
                                                         CefAudioHandler,
 | 
			
		||||
                                                         cef_audio_handler_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefAudioHandlerCppToC();
 | 
			
		||||
  virtual ~CefAudioHandlerCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_AUDIO_HANDLER_CPPTOC_H_
 | 
			
		||||
@@ -1,84 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=6e78f8db0e83e8c62612c00d7dd5ed20ab7898b6$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/auth_callback_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK auth_callback_cont(struct _cef_auth_callback_t* self,
 | 
			
		||||
                                     const cef_string_t* username,
 | 
			
		||||
                                     const cef_string_t* password) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Unverified params: username, password
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefAuthCallbackCppToC::Get(self)->Continue(CefString(username),
 | 
			
		||||
                                             CefString(password));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK auth_callback_cancel(struct _cef_auth_callback_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefAuthCallbackCppToC::Get(self)->Cancel();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefAuthCallbackCppToC::CefAuthCallbackCppToC() {
 | 
			
		||||
  GetStruct()->cont = auth_callback_cont;
 | 
			
		||||
  GetStruct()->cancel = auth_callback_cancel;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefAuthCallbackCppToC::~CefAuthCallbackCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefAuthCallback> CefCppToCRefCounted<
 | 
			
		||||
    CefAuthCallbackCppToC,
 | 
			
		||||
    CefAuthCallback,
 | 
			
		||||
    cef_auth_callback_t>::UnwrapDerived(CefWrapperType type,
 | 
			
		||||
                                        cef_auth_callback_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefAuthCallbackCppToC,
 | 
			
		||||
                                   CefAuthCallback,
 | 
			
		||||
                                   cef_auth_callback_t>::kWrapperType =
 | 
			
		||||
    WT_AUTH_CALLBACK;
 | 
			
		||||
@@ -1,37 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=c5e3d7f3c228ee0e1907f4a26532d15e973ee185$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_AUTH_CALLBACK_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_AUTH_CALLBACK_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(BUILDING_CEF_SHARED)
 | 
			
		||||
#error This file can be included DLL-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_auth_callback_capi.h"
 | 
			
		||||
#include "include/cef_auth_callback.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed DLL-side only.
 | 
			
		||||
class CefAuthCallbackCppToC : public CefCppToCRefCounted<CefAuthCallbackCppToC,
 | 
			
		||||
                                                         CefAuthCallback,
 | 
			
		||||
                                                         cef_auth_callback_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefAuthCallbackCppToC();
 | 
			
		||||
  virtual ~CefAuthCallbackCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_AUTH_CALLBACK_CPPTOC_H_
 | 
			
		||||
@@ -1,71 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=413df16faeb54035a8313957347188a958b4ee66$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/before_download_callback_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
before_download_callback_cont(struct _cef_before_download_callback_t* self,
 | 
			
		||||
                              const cef_string_t* download_path,
 | 
			
		||||
                              int show_dialog) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Unverified params: download_path
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefBeforeDownloadCallbackCppToC::Get(self)->Continue(
 | 
			
		||||
      CefString(download_path), show_dialog ? true : false);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefBeforeDownloadCallbackCppToC::CefBeforeDownloadCallbackCppToC() {
 | 
			
		||||
  GetStruct()->cont = before_download_callback_cont;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefBeforeDownloadCallbackCppToC::~CefBeforeDownloadCallbackCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefBeforeDownloadCallback>
 | 
			
		||||
CefCppToCRefCounted<CefBeforeDownloadCallbackCppToC,
 | 
			
		||||
                    CefBeforeDownloadCallback,
 | 
			
		||||
                    cef_before_download_callback_t>::
 | 
			
		||||
    UnwrapDerived(CefWrapperType type, cef_before_download_callback_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType
 | 
			
		||||
    CefCppToCRefCounted<CefBeforeDownloadCallbackCppToC,
 | 
			
		||||
                        CefBeforeDownloadCallback,
 | 
			
		||||
                        cef_before_download_callback_t>::kWrapperType =
 | 
			
		||||
        WT_BEFORE_DOWNLOAD_CALLBACK;
 | 
			
		||||
@@ -1,38 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=5d4c55aa042db07a6c77d055964fcc55568f73ff$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_BEFORE_DOWNLOAD_CALLBACK_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_BEFORE_DOWNLOAD_CALLBACK_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(BUILDING_CEF_SHARED)
 | 
			
		||||
#error This file can be included DLL-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_download_handler_capi.h"
 | 
			
		||||
#include "include/cef_download_handler.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed DLL-side only.
 | 
			
		||||
class CefBeforeDownloadCallbackCppToC
 | 
			
		||||
    : public CefCppToCRefCounted<CefBeforeDownloadCallbackCppToC,
 | 
			
		||||
                                 CefBeforeDownloadCallback,
 | 
			
		||||
                                 cef_before_download_callback_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefBeforeDownloadCallbackCppToC();
 | 
			
		||||
  virtual ~CefBeforeDownloadCallbackCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_BEFORE_DOWNLOAD_CALLBACK_CPPTOC_H_
 | 
			
		||||
@@ -1,238 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=a5ca27729a570de0318a9d15416fee153afaec32$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/binary_value_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
 | 
			
		||||
// GLOBAL FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
CEF_EXPORT cef_binary_value_t* cef_binary_value_create(const void* data,
 | 
			
		||||
                                                       size_t data_size) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  // Verify param: data; type: simple_byaddr
 | 
			
		||||
  DCHECK(data);
 | 
			
		||||
  if (!data) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefBinaryValue> _retval = CefBinaryValue::Create(data, data_size);
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefBinaryValueCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK binary_value_is_valid(struct _cef_binary_value_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefBinaryValueCppToC::Get(self)->IsValid();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK binary_value_is_owned(struct _cef_binary_value_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefBinaryValueCppToC::Get(self)->IsOwned();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK binary_value_is_same(struct _cef_binary_value_t* self,
 | 
			
		||||
                                      struct _cef_binary_value_t* that) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: that; type: refptr_same
 | 
			
		||||
  DCHECK(that);
 | 
			
		||||
  if (!that) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefBinaryValueCppToC::Get(self)->IsSame(
 | 
			
		||||
      CefBinaryValueCppToC::Unwrap(that));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK binary_value_is_equal(struct _cef_binary_value_t* self,
 | 
			
		||||
                                       struct _cef_binary_value_t* that) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: that; type: refptr_same
 | 
			
		||||
  DCHECK(that);
 | 
			
		||||
  if (!that) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefBinaryValueCppToC::Get(self)->IsEqual(
 | 
			
		||||
      CefBinaryValueCppToC::Unwrap(that));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_binary_value_t* CEF_CALLBACK
 | 
			
		||||
binary_value_copy(struct _cef_binary_value_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefBinaryValue> _retval = CefBinaryValueCppToC::Get(self)->Copy();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefBinaryValueCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
const void* CEF_CALLBACK
 | 
			
		||||
binary_value_get_raw_data(struct _cef_binary_value_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  const void* _retval = CefBinaryValueCppToC::Get(self)->GetRawData();
 | 
			
		||||
 | 
			
		||||
  // Return type: simple_byaddr
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
size_t CEF_CALLBACK binary_value_get_size(struct _cef_binary_value_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  size_t _retval = CefBinaryValueCppToC::Get(self)->GetSize();
 | 
			
		||||
 | 
			
		||||
  // Return type: simple
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
size_t CEF_CALLBACK binary_value_get_data(struct _cef_binary_value_t* self,
 | 
			
		||||
                                          void* buffer,
 | 
			
		||||
                                          size_t buffer_size,
 | 
			
		||||
                                          size_t data_offset) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: buffer; type: simple_byaddr
 | 
			
		||||
  DCHECK(buffer);
 | 
			
		||||
  if (!buffer) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  size_t _retval = CefBinaryValueCppToC::Get(self)->GetData(buffer, buffer_size,
 | 
			
		||||
                                                            data_offset);
 | 
			
		||||
 | 
			
		||||
  // Return type: simple
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefBinaryValueCppToC::CefBinaryValueCppToC() {
 | 
			
		||||
  GetStruct()->is_valid = binary_value_is_valid;
 | 
			
		||||
  GetStruct()->is_owned = binary_value_is_owned;
 | 
			
		||||
  GetStruct()->is_same = binary_value_is_same;
 | 
			
		||||
  GetStruct()->is_equal = binary_value_is_equal;
 | 
			
		||||
  GetStruct()->copy = binary_value_copy;
 | 
			
		||||
  GetStruct()->get_raw_data = binary_value_get_raw_data;
 | 
			
		||||
  GetStruct()->get_size = binary_value_get_size;
 | 
			
		||||
  GetStruct()->get_data = binary_value_get_data;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefBinaryValueCppToC::~CefBinaryValueCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefBinaryValue>
 | 
			
		||||
CefCppToCRefCounted<CefBinaryValueCppToC, CefBinaryValue, cef_binary_value_t>::
 | 
			
		||||
    UnwrapDerived(CefWrapperType type, cef_binary_value_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefBinaryValueCppToC,
 | 
			
		||||
                                   CefBinaryValue,
 | 
			
		||||
                                   cef_binary_value_t>::kWrapperType =
 | 
			
		||||
    WT_BINARY_VALUE;
 | 
			
		||||
@@ -1,37 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=318a89979d60f033cf43da261650963865a67b5c$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_BINARY_VALUE_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_BINARY_VALUE_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(BUILDING_CEF_SHARED)
 | 
			
		||||
#error This file can be included DLL-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_values_capi.h"
 | 
			
		||||
#include "include/cef_values.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed DLL-side only.
 | 
			
		||||
class CefBinaryValueCppToC : public CefCppToCRefCounted<CefBinaryValueCppToC,
 | 
			
		||||
                                                        CefBinaryValue,
 | 
			
		||||
                                                        cef_binary_value_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefBinaryValueCppToC();
 | 
			
		||||
  virtual ~CefBinaryValueCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_BINARY_VALUE_CPPTOC_H_
 | 
			
		||||
@@ -1,458 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=470bf9226f66658509ba704953b84f443ed77642$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/browser_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/browser_host_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/frame_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
#include "libcef_dll/transfer_util.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK browser_is_valid(struct _cef_browser_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefBrowserCppToC::Get(self)->IsValid();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_browser_host_t* CEF_CALLBACK
 | 
			
		||||
browser_get_host(struct _cef_browser_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefBrowserHost> _retval = CefBrowserCppToC::Get(self)->GetHost();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefBrowserHostCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK browser_can_go_back(struct _cef_browser_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefBrowserCppToC::Get(self)->CanGoBack();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK browser_go_back(struct _cef_browser_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefBrowserCppToC::Get(self)->GoBack();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK browser_can_go_forward(struct _cef_browser_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefBrowserCppToC::Get(self)->CanGoForward();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK browser_go_forward(struct _cef_browser_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefBrowserCppToC::Get(self)->GoForward();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK browser_is_loading(struct _cef_browser_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefBrowserCppToC::Get(self)->IsLoading();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK browser_reload(struct _cef_browser_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefBrowserCppToC::Get(self)->Reload();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK browser_reload_ignore_cache(struct _cef_browser_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefBrowserCppToC::Get(self)->ReloadIgnoreCache();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK browser_stop_load(struct _cef_browser_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefBrowserCppToC::Get(self)->StopLoad();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK browser_get_identifier(struct _cef_browser_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  int _retval = CefBrowserCppToC::Get(self)->GetIdentifier();
 | 
			
		||||
 | 
			
		||||
  // Return type: simple
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK browser_is_same(struct _cef_browser_t* self,
 | 
			
		||||
                                 struct _cef_browser_t* that) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: that; type: refptr_same
 | 
			
		||||
  DCHECK(that);
 | 
			
		||||
  if (!that) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval =
 | 
			
		||||
      CefBrowserCppToC::Get(self)->IsSame(CefBrowserCppToC::Unwrap(that));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK browser_is_popup(struct _cef_browser_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefBrowserCppToC::Get(self)->IsPopup();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK browser_has_document(struct _cef_browser_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefBrowserCppToC::Get(self)->HasDocument();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_frame_t* CEF_CALLBACK
 | 
			
		||||
browser_get_main_frame(struct _cef_browser_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefFrame> _retval = CefBrowserCppToC::Get(self)->GetMainFrame();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefFrameCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_frame_t* CEF_CALLBACK
 | 
			
		||||
browser_get_focused_frame(struct _cef_browser_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefFrame> _retval = CefBrowserCppToC::Get(self)->GetFocusedFrame();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefFrameCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_frame_t* CEF_CALLBACK
 | 
			
		||||
browser_get_frame_by_identifier(struct _cef_browser_t* self,
 | 
			
		||||
                                const cef_string_t* identifier) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: identifier; type: string_byref_const
 | 
			
		||||
  DCHECK(identifier);
 | 
			
		||||
  if (!identifier) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefFrame> _retval =
 | 
			
		||||
      CefBrowserCppToC::Get(self)->GetFrameByIdentifier(CefString(identifier));
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefFrameCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_frame_t* CEF_CALLBACK
 | 
			
		||||
browser_get_frame_by_name(struct _cef_browser_t* self,
 | 
			
		||||
                          const cef_string_t* name) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
  // Unverified params: name
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefFrame> _retval =
 | 
			
		||||
      CefBrowserCppToC::Get(self)->GetFrameByName(CefString(name));
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefFrameCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
size_t CEF_CALLBACK browser_get_frame_count(struct _cef_browser_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  size_t _retval = CefBrowserCppToC::Get(self)->GetFrameCount();
 | 
			
		||||
 | 
			
		||||
  // Return type: simple
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK browser_get_frame_identifiers(struct _cef_browser_t* self,
 | 
			
		||||
                                                cef_string_list_t identifiers) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: identifiers; type: string_vec_byref
 | 
			
		||||
  DCHECK(identifiers);
 | 
			
		||||
  if (!identifiers) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Translate param: identifiers; type: string_vec_byref
 | 
			
		||||
  std::vector<CefString> identifiersList;
 | 
			
		||||
  transfer_string_list_contents(identifiers, identifiersList);
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefBrowserCppToC::Get(self)->GetFrameIdentifiers(identifiersList);
 | 
			
		||||
 | 
			
		||||
  // Restore param: identifiers; type: string_vec_byref
 | 
			
		||||
  cef_string_list_clear(identifiers);
 | 
			
		||||
  transfer_string_list_contents(identifiersList, identifiers);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK browser_get_frame_names(struct _cef_browser_t* self,
 | 
			
		||||
                                          cef_string_list_t names) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: names; type: string_vec_byref
 | 
			
		||||
  DCHECK(names);
 | 
			
		||||
  if (!names) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Translate param: names; type: string_vec_byref
 | 
			
		||||
  std::vector<CefString> namesList;
 | 
			
		||||
  transfer_string_list_contents(names, namesList);
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefBrowserCppToC::Get(self)->GetFrameNames(namesList);
 | 
			
		||||
 | 
			
		||||
  // Restore param: names; type: string_vec_byref
 | 
			
		||||
  cef_string_list_clear(names);
 | 
			
		||||
  transfer_string_list_contents(namesList, names);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefBrowserCppToC::CefBrowserCppToC() {
 | 
			
		||||
  GetStruct()->is_valid = browser_is_valid;
 | 
			
		||||
  GetStruct()->get_host = browser_get_host;
 | 
			
		||||
  GetStruct()->can_go_back = browser_can_go_back;
 | 
			
		||||
  GetStruct()->go_back = browser_go_back;
 | 
			
		||||
  GetStruct()->can_go_forward = browser_can_go_forward;
 | 
			
		||||
  GetStruct()->go_forward = browser_go_forward;
 | 
			
		||||
  GetStruct()->is_loading = browser_is_loading;
 | 
			
		||||
  GetStruct()->reload = browser_reload;
 | 
			
		||||
  GetStruct()->reload_ignore_cache = browser_reload_ignore_cache;
 | 
			
		||||
  GetStruct()->stop_load = browser_stop_load;
 | 
			
		||||
  GetStruct()->get_identifier = browser_get_identifier;
 | 
			
		||||
  GetStruct()->is_same = browser_is_same;
 | 
			
		||||
  GetStruct()->is_popup = browser_is_popup;
 | 
			
		||||
  GetStruct()->has_document = browser_has_document;
 | 
			
		||||
  GetStruct()->get_main_frame = browser_get_main_frame;
 | 
			
		||||
  GetStruct()->get_focused_frame = browser_get_focused_frame;
 | 
			
		||||
  GetStruct()->get_frame_by_identifier = browser_get_frame_by_identifier;
 | 
			
		||||
  GetStruct()->get_frame_by_name = browser_get_frame_by_name;
 | 
			
		||||
  GetStruct()->get_frame_count = browser_get_frame_count;
 | 
			
		||||
  GetStruct()->get_frame_identifiers = browser_get_frame_identifiers;
 | 
			
		||||
  GetStruct()->get_frame_names = browser_get_frame_names;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefBrowserCppToC::~CefBrowserCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefBrowser>
 | 
			
		||||
CefCppToCRefCounted<CefBrowserCppToC, CefBrowser, cef_browser_t>::UnwrapDerived(
 | 
			
		||||
    CefWrapperType type,
 | 
			
		||||
    cef_browser_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefBrowserCppToC,
 | 
			
		||||
                                   CefBrowser,
 | 
			
		||||
                                   cef_browser_t>::kWrapperType = WT_BROWSER;
 | 
			
		||||
@@ -1,38 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=7297ea312359837784584bf0017c7674d756ce56$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_BROWSER_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_BROWSER_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(BUILDING_CEF_SHARED)
 | 
			
		||||
#error This file can be included DLL-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_browser_capi.h"
 | 
			
		||||
#include "include/capi/cef_client_capi.h"
 | 
			
		||||
#include "include/cef_browser.h"
 | 
			
		||||
#include "include/cef_client.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed DLL-side only.
 | 
			
		||||
class CefBrowserCppToC
 | 
			
		||||
    : public CefCppToCRefCounted<CefBrowserCppToC, CefBrowser, cef_browser_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefBrowserCppToC();
 | 
			
		||||
  virtual ~CefBrowserCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_BROWSER_CPPTOC_H_
 | 
			
		||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@@ -1,39 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=26286189ce3ea683e5c9fffca986db1d8042c5d9$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_BROWSER_HOST_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_BROWSER_HOST_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(BUILDING_CEF_SHARED)
 | 
			
		||||
#error This file can be included DLL-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_browser_capi.h"
 | 
			
		||||
#include "include/capi/cef_client_capi.h"
 | 
			
		||||
#include "include/cef_browser.h"
 | 
			
		||||
#include "include/cef_client.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed DLL-side only.
 | 
			
		||||
class CefBrowserHostCppToC : public CefCppToCRefCounted<CefBrowserHostCppToC,
 | 
			
		||||
                                                        CefBrowserHost,
 | 
			
		||||
                                                        cef_browser_host_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefBrowserHostCppToC();
 | 
			
		||||
  virtual ~CefBrowserHostCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_BROWSER_HOST_CPPTOC_H_
 | 
			
		||||
@@ -1,202 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=5703528ee112474079bd5d04f5ca9f2f290238fa$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/browser_process_handler_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/client_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/request_context_handler_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/ctocpp/command_line_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/ctocpp/preference_registrar_ctocpp.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK browser_process_handler_on_register_custom_preferences(
 | 
			
		||||
    struct _cef_browser_process_handler_t* self,
 | 
			
		||||
    cef_preferences_type_t type,
 | 
			
		||||
    struct _cef_preference_registrar_t* registrar) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: registrar; type: rawptr_diff
 | 
			
		||||
  DCHECK(registrar);
 | 
			
		||||
  if (!registrar) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Translate param: registrar; type: rawptr_diff
 | 
			
		||||
  CefOwnPtr<CefPreferenceRegistrar> registrarPtr(
 | 
			
		||||
      CefPreferenceRegistrarCToCpp::Wrap(registrar));
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefBrowserProcessHandlerCppToC::Get(self)->OnRegisterCustomPreferences(
 | 
			
		||||
      type, registrarPtr.get());
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK browser_process_handler_on_context_initialized(
 | 
			
		||||
    struct _cef_browser_process_handler_t* self) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefBrowserProcessHandlerCppToC::Get(self)->OnContextInitialized();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK browser_process_handler_on_before_child_process_launch(
 | 
			
		||||
    struct _cef_browser_process_handler_t* self,
 | 
			
		||||
    struct _cef_command_line_t* command_line) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: command_line; type: refptr_diff
 | 
			
		||||
  DCHECK(command_line);
 | 
			
		||||
  if (!command_line) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefBrowserProcessHandlerCppToC::Get(self)->OnBeforeChildProcessLaunch(
 | 
			
		||||
      CefCommandLineCToCpp::Wrap(command_line));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK browser_process_handler_on_already_running_app_relaunch(
 | 
			
		||||
    struct _cef_browser_process_handler_t* self,
 | 
			
		||||
    struct _cef_command_line_t* command_line,
 | 
			
		||||
    const cef_string_t* current_directory) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: command_line; type: refptr_diff
 | 
			
		||||
  DCHECK(command_line);
 | 
			
		||||
  if (!command_line) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Unverified params: current_directory
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval =
 | 
			
		||||
      CefBrowserProcessHandlerCppToC::Get(self)->OnAlreadyRunningAppRelaunch(
 | 
			
		||||
          CefCommandLineCToCpp::Wrap(command_line),
 | 
			
		||||
          CefString(current_directory));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK browser_process_handler_on_schedule_message_pump_work(
 | 
			
		||||
    struct _cef_browser_process_handler_t* self,
 | 
			
		||||
    int64_t delay_ms) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefBrowserProcessHandlerCppToC::Get(self)->OnScheduleMessagePumpWork(
 | 
			
		||||
      delay_ms);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_client_t* CEF_CALLBACK browser_process_handler_get_default_client(
 | 
			
		||||
    struct _cef_browser_process_handler_t* self) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefClient> _retval =
 | 
			
		||||
      CefBrowserProcessHandlerCppToC::Get(self)->GetDefaultClient();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefClientCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_request_context_handler_t* CEF_CALLBACK
 | 
			
		||||
browser_process_handler_get_default_request_context_handler(
 | 
			
		||||
    struct _cef_browser_process_handler_t* self) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefRequestContextHandler> _retval =
 | 
			
		||||
      CefBrowserProcessHandlerCppToC::Get(self)
 | 
			
		||||
          ->GetDefaultRequestContextHandler();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefRequestContextHandlerCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefBrowserProcessHandlerCppToC::CefBrowserProcessHandlerCppToC() {
 | 
			
		||||
  GetStruct()->on_register_custom_preferences =
 | 
			
		||||
      browser_process_handler_on_register_custom_preferences;
 | 
			
		||||
  GetStruct()->on_context_initialized =
 | 
			
		||||
      browser_process_handler_on_context_initialized;
 | 
			
		||||
  GetStruct()->on_before_child_process_launch =
 | 
			
		||||
      browser_process_handler_on_before_child_process_launch;
 | 
			
		||||
  GetStruct()->on_already_running_app_relaunch =
 | 
			
		||||
      browser_process_handler_on_already_running_app_relaunch;
 | 
			
		||||
  GetStruct()->on_schedule_message_pump_work =
 | 
			
		||||
      browser_process_handler_on_schedule_message_pump_work;
 | 
			
		||||
  GetStruct()->get_default_client = browser_process_handler_get_default_client;
 | 
			
		||||
  GetStruct()->get_default_request_context_handler =
 | 
			
		||||
      browser_process_handler_get_default_request_context_handler;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefBrowserProcessHandlerCppToC::~CefBrowserProcessHandlerCppToC() {}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefBrowserProcessHandler> CefCppToCRefCounted<
 | 
			
		||||
    CefBrowserProcessHandlerCppToC,
 | 
			
		||||
    CefBrowserProcessHandler,
 | 
			
		||||
    cef_browser_process_handler_t>::UnwrapDerived(CefWrapperType type,
 | 
			
		||||
                                                  cef_browser_process_handler_t*
 | 
			
		||||
                                                      s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType
 | 
			
		||||
    CefCppToCRefCounted<CefBrowserProcessHandlerCppToC,
 | 
			
		||||
                        CefBrowserProcessHandler,
 | 
			
		||||
                        cef_browser_process_handler_t>::kWrapperType =
 | 
			
		||||
        WT_BROWSER_PROCESS_HANDLER;
 | 
			
		||||
@@ -1,38 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=e49e094aa0de70a8f685b5e3fc3955396b4e8ccf$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_BROWSER_PROCESS_HANDLER_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_BROWSER_PROCESS_HANDLER_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(WRAPPING_CEF_SHARED)
 | 
			
		||||
#error This file can be included wrapper-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_browser_process_handler_capi.h"
 | 
			
		||||
#include "include/cef_browser_process_handler.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed wrapper-side only.
 | 
			
		||||
class CefBrowserProcessHandlerCppToC
 | 
			
		||||
    : public CefCppToCRefCounted<CefBrowserProcessHandlerCppToC,
 | 
			
		||||
                                 CefBrowserProcessHandler,
 | 
			
		||||
                                 cef_browser_process_handler_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefBrowserProcessHandlerCppToC();
 | 
			
		||||
  virtual ~CefBrowserProcessHandlerCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_BROWSER_PROCESS_HANDLER_CPPTOC_H_
 | 
			
		||||
@@ -1,77 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=cc374416cdd6e22f7713eaf4e973b918e428a44e$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/callback_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK callback_cont(struct _cef_callback_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefCallbackCppToC::Get(self)->Continue();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK callback_cancel(struct _cef_callback_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefCallbackCppToC::Get(self)->Cancel();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefCallbackCppToC::CefCallbackCppToC() {
 | 
			
		||||
  GetStruct()->cont = callback_cont;
 | 
			
		||||
  GetStruct()->cancel = callback_cancel;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefCallbackCppToC::~CefCallbackCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefCallback>
 | 
			
		||||
CefCppToCRefCounted<CefCallbackCppToC, CefCallback, cef_callback_t>::
 | 
			
		||||
    UnwrapDerived(CefWrapperType type, cef_callback_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefCallbackCppToC,
 | 
			
		||||
                                   CefCallback,
 | 
			
		||||
                                   cef_callback_t>::kWrapperType = WT_CALLBACK;
 | 
			
		||||
@@ -1,37 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=edb199ed0a0d6dd8776d342e9658e25958090bec$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_CALLBACK_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_CALLBACK_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(BUILDING_CEF_SHARED)
 | 
			
		||||
#error This file can be included DLL-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_callback_capi.h"
 | 
			
		||||
#include "include/cef_callback.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed DLL-side only.
 | 
			
		||||
class CefCallbackCppToC : public CefCppToCRefCounted<CefCallbackCppToC,
 | 
			
		||||
                                                     CefCallback,
 | 
			
		||||
                                                     cef_callback_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefCallbackCppToC();
 | 
			
		||||
  virtual ~CefCallbackCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_CALLBACK_CPPTOC_H_
 | 
			
		||||
@@ -1,427 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=5a69fbd03ecfdf175f6c7dce3611b2f63245a806$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/client_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/audio_handler_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/command_handler_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/context_menu_handler_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/dialog_handler_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/display_handler_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/download_handler_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/drag_handler_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/find_handler_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/focus_handler_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/frame_handler_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/jsdialog_handler_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/keyboard_handler_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/life_span_handler_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/load_handler_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/permission_handler_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/print_handler_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/render_handler_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/request_handler_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/ctocpp/browser_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/ctocpp/frame_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/ctocpp/process_message_ctocpp.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
cef_audio_handler_t* CEF_CALLBACK
 | 
			
		||||
client_get_audio_handler(struct _cef_client_t* self) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefAudioHandler> _retval =
 | 
			
		||||
      CefClientCppToC::Get(self)->GetAudioHandler();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefAudioHandlerCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_command_handler_t* CEF_CALLBACK
 | 
			
		||||
client_get_command_handler(struct _cef_client_t* self) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefCommandHandler> _retval =
 | 
			
		||||
      CefClientCppToC::Get(self)->GetCommandHandler();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefCommandHandlerCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_context_menu_handler_t* CEF_CALLBACK
 | 
			
		||||
client_get_context_menu_handler(struct _cef_client_t* self) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefContextMenuHandler> _retval =
 | 
			
		||||
      CefClientCppToC::Get(self)->GetContextMenuHandler();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefContextMenuHandlerCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_dialog_handler_t* CEF_CALLBACK
 | 
			
		||||
client_get_dialog_handler(struct _cef_client_t* self) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefDialogHandler> _retval =
 | 
			
		||||
      CefClientCppToC::Get(self)->GetDialogHandler();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefDialogHandlerCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_display_handler_t* CEF_CALLBACK
 | 
			
		||||
client_get_display_handler(struct _cef_client_t* self) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefDisplayHandler> _retval =
 | 
			
		||||
      CefClientCppToC::Get(self)->GetDisplayHandler();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefDisplayHandlerCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_download_handler_t* CEF_CALLBACK
 | 
			
		||||
client_get_download_handler(struct _cef_client_t* self) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefDownloadHandler> _retval =
 | 
			
		||||
      CefClientCppToC::Get(self)->GetDownloadHandler();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefDownloadHandlerCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_drag_handler_t* CEF_CALLBACK
 | 
			
		||||
client_get_drag_handler(struct _cef_client_t* self) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefDragHandler> _retval =
 | 
			
		||||
      CefClientCppToC::Get(self)->GetDragHandler();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefDragHandlerCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_find_handler_t* CEF_CALLBACK
 | 
			
		||||
client_get_find_handler(struct _cef_client_t* self) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefFindHandler> _retval =
 | 
			
		||||
      CefClientCppToC::Get(self)->GetFindHandler();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefFindHandlerCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_focus_handler_t* CEF_CALLBACK
 | 
			
		||||
client_get_focus_handler(struct _cef_client_t* self) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefFocusHandler> _retval =
 | 
			
		||||
      CefClientCppToC::Get(self)->GetFocusHandler();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefFocusHandlerCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_frame_handler_t* CEF_CALLBACK
 | 
			
		||||
client_get_frame_handler(struct _cef_client_t* self) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefFrameHandler> _retval =
 | 
			
		||||
      CefClientCppToC::Get(self)->GetFrameHandler();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefFrameHandlerCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_permission_handler_t* CEF_CALLBACK
 | 
			
		||||
client_get_permission_handler(struct _cef_client_t* self) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefPermissionHandler> _retval =
 | 
			
		||||
      CefClientCppToC::Get(self)->GetPermissionHandler();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefPermissionHandlerCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_jsdialog_handler_t* CEF_CALLBACK
 | 
			
		||||
client_get_jsdialog_handler(struct _cef_client_t* self) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefJSDialogHandler> _retval =
 | 
			
		||||
      CefClientCppToC::Get(self)->GetJSDialogHandler();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefJSDialogHandlerCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_keyboard_handler_t* CEF_CALLBACK
 | 
			
		||||
client_get_keyboard_handler(struct _cef_client_t* self) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefKeyboardHandler> _retval =
 | 
			
		||||
      CefClientCppToC::Get(self)->GetKeyboardHandler();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefKeyboardHandlerCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_life_span_handler_t* CEF_CALLBACK
 | 
			
		||||
client_get_life_span_handler(struct _cef_client_t* self) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefLifeSpanHandler> _retval =
 | 
			
		||||
      CefClientCppToC::Get(self)->GetLifeSpanHandler();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefLifeSpanHandlerCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_load_handler_t* CEF_CALLBACK
 | 
			
		||||
client_get_load_handler(struct _cef_client_t* self) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefLoadHandler> _retval =
 | 
			
		||||
      CefClientCppToC::Get(self)->GetLoadHandler();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefLoadHandlerCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_print_handler_t* CEF_CALLBACK
 | 
			
		||||
client_get_print_handler(struct _cef_client_t* self) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefPrintHandler> _retval =
 | 
			
		||||
      CefClientCppToC::Get(self)->GetPrintHandler();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefPrintHandlerCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_render_handler_t* CEF_CALLBACK
 | 
			
		||||
client_get_render_handler(struct _cef_client_t* self) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefRenderHandler> _retval =
 | 
			
		||||
      CefClientCppToC::Get(self)->GetRenderHandler();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefRenderHandlerCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_request_handler_t* CEF_CALLBACK
 | 
			
		||||
client_get_request_handler(struct _cef_client_t* self) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefRequestHandler> _retval =
 | 
			
		||||
      CefClientCppToC::Get(self)->GetRequestHandler();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefRequestHandlerCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
client_on_process_message_received(struct _cef_client_t* self,
 | 
			
		||||
                                   cef_browser_t* browser,
 | 
			
		||||
                                   struct _cef_frame_t* frame,
 | 
			
		||||
                                   cef_process_id_t source_process,
 | 
			
		||||
                                   struct _cef_process_message_t* message) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: frame; type: refptr_diff
 | 
			
		||||
  DCHECK(frame);
 | 
			
		||||
  if (!frame) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: message; type: refptr_diff
 | 
			
		||||
  DCHECK(message);
 | 
			
		||||
  if (!message) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefClientCppToC::Get(self)->OnProcessMessageReceived(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), CefFrameCToCpp::Wrap(frame),
 | 
			
		||||
      source_process, CefProcessMessageCToCpp::Wrap(message));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefClientCppToC::CefClientCppToC() {
 | 
			
		||||
  GetStruct()->get_audio_handler = client_get_audio_handler;
 | 
			
		||||
  GetStruct()->get_command_handler = client_get_command_handler;
 | 
			
		||||
  GetStruct()->get_context_menu_handler = client_get_context_menu_handler;
 | 
			
		||||
  GetStruct()->get_dialog_handler = client_get_dialog_handler;
 | 
			
		||||
  GetStruct()->get_display_handler = client_get_display_handler;
 | 
			
		||||
  GetStruct()->get_download_handler = client_get_download_handler;
 | 
			
		||||
  GetStruct()->get_drag_handler = client_get_drag_handler;
 | 
			
		||||
  GetStruct()->get_find_handler = client_get_find_handler;
 | 
			
		||||
  GetStruct()->get_focus_handler = client_get_focus_handler;
 | 
			
		||||
  GetStruct()->get_frame_handler = client_get_frame_handler;
 | 
			
		||||
  GetStruct()->get_permission_handler = client_get_permission_handler;
 | 
			
		||||
  GetStruct()->get_jsdialog_handler = client_get_jsdialog_handler;
 | 
			
		||||
  GetStruct()->get_keyboard_handler = client_get_keyboard_handler;
 | 
			
		||||
  GetStruct()->get_life_span_handler = client_get_life_span_handler;
 | 
			
		||||
  GetStruct()->get_load_handler = client_get_load_handler;
 | 
			
		||||
  GetStruct()->get_print_handler = client_get_print_handler;
 | 
			
		||||
  GetStruct()->get_render_handler = client_get_render_handler;
 | 
			
		||||
  GetStruct()->get_request_handler = client_get_request_handler;
 | 
			
		||||
  GetStruct()->on_process_message_received = client_on_process_message_received;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefClientCppToC::~CefClientCppToC() {}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefClient>
 | 
			
		||||
CefCppToCRefCounted<CefClientCppToC, CefClient, cef_client_t>::UnwrapDerived(
 | 
			
		||||
    CefWrapperType type,
 | 
			
		||||
    cef_client_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefClientCppToC, CefClient, cef_client_t>::
 | 
			
		||||
    kWrapperType = WT_CLIENT;
 | 
			
		||||
@@ -1,36 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=5760912f3c203c686bbb13176cd3dadf21c2c5bf$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_CLIENT_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_CLIENT_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(WRAPPING_CEF_SHARED)
 | 
			
		||||
#error This file can be included wrapper-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_client_capi.h"
 | 
			
		||||
#include "include/cef_client.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed wrapper-side only.
 | 
			
		||||
class CefClientCppToC
 | 
			
		||||
    : public CefCppToCRefCounted<CefClientCppToC, CefClient, cef_client_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefClientCppToC();
 | 
			
		||||
  virtual ~CefClientCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_CLIENT_CPPTOC_H_
 | 
			
		||||
@@ -1,181 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=f18efb5dc36f4cb87068f42e73370a57fc00d3c2$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/command_handler_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/ctocpp/browser_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
command_handler_on_chrome_command(struct _cef_command_handler_t* self,
 | 
			
		||||
                                  cef_browser_t* browser,
 | 
			
		||||
                                  int command_id,
 | 
			
		||||
                                  cef_window_open_disposition_t disposition) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefCommandHandlerCppToC::Get(self)->OnChromeCommand(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), command_id, disposition);
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK command_handler_is_chrome_app_menu_item_visible(
 | 
			
		||||
    struct _cef_command_handler_t* self,
 | 
			
		||||
    cef_browser_t* browser,
 | 
			
		||||
    int command_id) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefCommandHandlerCppToC::Get(self)->IsChromeAppMenuItemVisible(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), command_id);
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK command_handler_is_chrome_app_menu_item_enabled(
 | 
			
		||||
    struct _cef_command_handler_t* self,
 | 
			
		||||
    cef_browser_t* browser,
 | 
			
		||||
    int command_id) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefCommandHandlerCppToC::Get(self)->IsChromeAppMenuItemEnabled(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), command_id);
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK command_handler_is_chrome_page_action_icon_visible(
 | 
			
		||||
    struct _cef_command_handler_t* self,
 | 
			
		||||
    cef_chrome_page_action_icon_type_t icon_type) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval =
 | 
			
		||||
      CefCommandHandlerCppToC::Get(self)->IsChromePageActionIconVisible(
 | 
			
		||||
          icon_type);
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK command_handler_is_chrome_toolbar_button_visible(
 | 
			
		||||
    struct _cef_command_handler_t* self,
 | 
			
		||||
    cef_chrome_toolbar_button_type_t button_type) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval =
 | 
			
		||||
      CefCommandHandlerCppToC::Get(self)->IsChromeToolbarButtonVisible(
 | 
			
		||||
          button_type);
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefCommandHandlerCppToC::CefCommandHandlerCppToC() {
 | 
			
		||||
  GetStruct()->on_chrome_command = command_handler_on_chrome_command;
 | 
			
		||||
  GetStruct()->is_chrome_app_menu_item_visible =
 | 
			
		||||
      command_handler_is_chrome_app_menu_item_visible;
 | 
			
		||||
  GetStruct()->is_chrome_app_menu_item_enabled =
 | 
			
		||||
      command_handler_is_chrome_app_menu_item_enabled;
 | 
			
		||||
  GetStruct()->is_chrome_page_action_icon_visible =
 | 
			
		||||
      command_handler_is_chrome_page_action_icon_visible;
 | 
			
		||||
  GetStruct()->is_chrome_toolbar_button_visible =
 | 
			
		||||
      command_handler_is_chrome_toolbar_button_visible;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefCommandHandlerCppToC::~CefCommandHandlerCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefCommandHandler> CefCppToCRefCounted<
 | 
			
		||||
    CefCommandHandlerCppToC,
 | 
			
		||||
    CefCommandHandler,
 | 
			
		||||
    cef_command_handler_t>::UnwrapDerived(CefWrapperType type,
 | 
			
		||||
                                          cef_command_handler_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefCommandHandlerCppToC,
 | 
			
		||||
                                   CefCommandHandler,
 | 
			
		||||
                                   cef_command_handler_t>::kWrapperType =
 | 
			
		||||
    WT_COMMAND_HANDLER;
 | 
			
		||||
@@ -1,38 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=a08ddd5741375a18d7aad32e6da6fae896bc9121$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_COMMAND_HANDLER_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_COMMAND_HANDLER_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(WRAPPING_CEF_SHARED)
 | 
			
		||||
#error This file can be included wrapper-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_command_handler_capi.h"
 | 
			
		||||
#include "include/cef_command_handler.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed wrapper-side only.
 | 
			
		||||
class CefCommandHandlerCppToC
 | 
			
		||||
    : public CefCppToCRefCounted<CefCommandHandlerCppToC,
 | 
			
		||||
                                 CefCommandHandler,
 | 
			
		||||
                                 cef_command_handler_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefCommandHandlerCppToC();
 | 
			
		||||
  virtual ~CefCommandHandlerCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_COMMAND_HANDLER_CPPTOC_H_
 | 
			
		||||
@@ -1,466 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=5dc6935e9901872a9accf61ca8c9c6006c3302a9$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/command_line_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/transfer_util.h"
 | 
			
		||||
 | 
			
		||||
// GLOBAL FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
CEF_EXPORT cef_command_line_t* cef_command_line_create() {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefCommandLine> _retval = CefCommandLine::CreateCommandLine();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefCommandLineCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
CEF_EXPORT cef_command_line_t* cef_command_line_get_global() {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefCommandLine> _retval = CefCommandLine::GetGlobalCommandLine();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefCommandLineCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK command_line_is_valid(struct _cef_command_line_t* self) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefCommandLineCppToC::Get(self)->IsValid();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK command_line_is_read_only(struct _cef_command_line_t* self) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefCommandLineCppToC::Get(self)->IsReadOnly();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_command_line_t* CEF_CALLBACK
 | 
			
		||||
command_line_copy(struct _cef_command_line_t* self) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefCommandLine> _retval = CefCommandLineCppToC::Get(self)->Copy();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefCommandLineCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK command_line_init_from_argv(struct _cef_command_line_t* self,
 | 
			
		||||
                                              int argc,
 | 
			
		||||
                                              const char* const* argv) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: argv; type: simple_byaddr
 | 
			
		||||
  DCHECK(argv);
 | 
			
		||||
  if (!argv) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefCommandLineCppToC::Get(self)->InitFromArgv(argc, argv);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
command_line_init_from_string(struct _cef_command_line_t* self,
 | 
			
		||||
                              const cef_string_t* command_line) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: command_line; type: string_byref_const
 | 
			
		||||
  DCHECK(command_line);
 | 
			
		||||
  if (!command_line) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefCommandLineCppToC::Get(self)->InitFromString(CefString(command_line));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK command_line_reset(struct _cef_command_line_t* self) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefCommandLineCppToC::Get(self)->Reset();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK command_line_get_argv(struct _cef_command_line_t* self,
 | 
			
		||||
                                        cef_string_list_t argv) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: argv; type: string_vec_byref
 | 
			
		||||
  DCHECK(argv);
 | 
			
		||||
  if (!argv) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Translate param: argv; type: string_vec_byref
 | 
			
		||||
  std::vector<CefString> argvList;
 | 
			
		||||
  transfer_string_list_contents(argv, argvList);
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefCommandLineCppToC::Get(self)->GetArgv(argvList);
 | 
			
		||||
 | 
			
		||||
  // Restore param: argv; type: string_vec_byref
 | 
			
		||||
  cef_string_list_clear(argv);
 | 
			
		||||
  transfer_string_list_contents(argvList, argv);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK
 | 
			
		||||
command_line_get_command_line_string(struct _cef_command_line_t* self) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval = CefCommandLineCppToC::Get(self)->GetCommandLineString();
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK
 | 
			
		||||
command_line_get_program(struct _cef_command_line_t* self) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval = CefCommandLineCppToC::Get(self)->GetProgram();
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK command_line_set_program(struct _cef_command_line_t* self,
 | 
			
		||||
                                           const cef_string_t* program) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: program; type: string_byref_const
 | 
			
		||||
  DCHECK(program);
 | 
			
		||||
  if (!program) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefCommandLineCppToC::Get(self)->SetProgram(CefString(program));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK command_line_has_switches(struct _cef_command_line_t* self) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefCommandLineCppToC::Get(self)->HasSwitches();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK command_line_has_switch(struct _cef_command_line_t* self,
 | 
			
		||||
                                         const cef_string_t* name) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: name; type: string_byref_const
 | 
			
		||||
  DCHECK(name);
 | 
			
		||||
  if (!name) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefCommandLineCppToC::Get(self)->HasSwitch(CefString(name));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK
 | 
			
		||||
command_line_get_switch_value(struct _cef_command_line_t* self,
 | 
			
		||||
                              const cef_string_t* name) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: name; type: string_byref_const
 | 
			
		||||
  DCHECK(name);
 | 
			
		||||
  if (!name) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval =
 | 
			
		||||
      CefCommandLineCppToC::Get(self)->GetSwitchValue(CefString(name));
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK command_line_get_switches(struct _cef_command_line_t* self,
 | 
			
		||||
                                            cef_string_map_t switches) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: switches; type: string_map_single_byref
 | 
			
		||||
  DCHECK(switches);
 | 
			
		||||
  if (!switches) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Translate param: switches; type: string_map_single_byref
 | 
			
		||||
  std::map<CefString, CefString> switchesMap;
 | 
			
		||||
  transfer_string_map_contents(switches, switchesMap);
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefCommandLineCppToC::Get(self)->GetSwitches(switchesMap);
 | 
			
		||||
 | 
			
		||||
  // Restore param: switches; type: string_map_single_byref
 | 
			
		||||
  cef_string_map_clear(switches);
 | 
			
		||||
  transfer_string_map_contents(switchesMap, switches);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK command_line_append_switch(struct _cef_command_line_t* self,
 | 
			
		||||
                                             const cef_string_t* name) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: name; type: string_byref_const
 | 
			
		||||
  DCHECK(name);
 | 
			
		||||
  if (!name) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefCommandLineCppToC::Get(self)->AppendSwitch(CefString(name));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
command_line_append_switch_with_value(struct _cef_command_line_t* self,
 | 
			
		||||
                                      const cef_string_t* name,
 | 
			
		||||
                                      const cef_string_t* value) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: name; type: string_byref_const
 | 
			
		||||
  DCHECK(name);
 | 
			
		||||
  if (!name) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: value; type: string_byref_const
 | 
			
		||||
  DCHECK(value);
 | 
			
		||||
  if (!value) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefCommandLineCppToC::Get(self)->AppendSwitchWithValue(CefString(name),
 | 
			
		||||
                                                         CefString(value));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK command_line_has_arguments(struct _cef_command_line_t* self) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefCommandLineCppToC::Get(self)->HasArguments();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK command_line_get_arguments(struct _cef_command_line_t* self,
 | 
			
		||||
                                             cef_string_list_t arguments) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: arguments; type: string_vec_byref
 | 
			
		||||
  DCHECK(arguments);
 | 
			
		||||
  if (!arguments) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Translate param: arguments; type: string_vec_byref
 | 
			
		||||
  std::vector<CefString> argumentsList;
 | 
			
		||||
  transfer_string_list_contents(arguments, argumentsList);
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefCommandLineCppToC::Get(self)->GetArguments(argumentsList);
 | 
			
		||||
 | 
			
		||||
  // Restore param: arguments; type: string_vec_byref
 | 
			
		||||
  cef_string_list_clear(arguments);
 | 
			
		||||
  transfer_string_list_contents(argumentsList, arguments);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK command_line_append_argument(struct _cef_command_line_t* self,
 | 
			
		||||
                                               const cef_string_t* argument) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: argument; type: string_byref_const
 | 
			
		||||
  DCHECK(argument);
 | 
			
		||||
  if (!argument) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefCommandLineCppToC::Get(self)->AppendArgument(CefString(argument));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK command_line_prepend_wrapper(struct _cef_command_line_t* self,
 | 
			
		||||
                                               const cef_string_t* wrapper) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: wrapper; type: string_byref_const
 | 
			
		||||
  DCHECK(wrapper);
 | 
			
		||||
  if (!wrapper) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefCommandLineCppToC::Get(self)->PrependWrapper(CefString(wrapper));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefCommandLineCppToC::CefCommandLineCppToC() {
 | 
			
		||||
  GetStruct()->is_valid = command_line_is_valid;
 | 
			
		||||
  GetStruct()->is_read_only = command_line_is_read_only;
 | 
			
		||||
  GetStruct()->copy = command_line_copy;
 | 
			
		||||
  GetStruct()->init_from_argv = command_line_init_from_argv;
 | 
			
		||||
  GetStruct()->init_from_string = command_line_init_from_string;
 | 
			
		||||
  GetStruct()->reset = command_line_reset;
 | 
			
		||||
  GetStruct()->get_argv = command_line_get_argv;
 | 
			
		||||
  GetStruct()->get_command_line_string = command_line_get_command_line_string;
 | 
			
		||||
  GetStruct()->get_program = command_line_get_program;
 | 
			
		||||
  GetStruct()->set_program = command_line_set_program;
 | 
			
		||||
  GetStruct()->has_switches = command_line_has_switches;
 | 
			
		||||
  GetStruct()->has_switch = command_line_has_switch;
 | 
			
		||||
  GetStruct()->get_switch_value = command_line_get_switch_value;
 | 
			
		||||
  GetStruct()->get_switches = command_line_get_switches;
 | 
			
		||||
  GetStruct()->append_switch = command_line_append_switch;
 | 
			
		||||
  GetStruct()->append_switch_with_value = command_line_append_switch_with_value;
 | 
			
		||||
  GetStruct()->has_arguments = command_line_has_arguments;
 | 
			
		||||
  GetStruct()->get_arguments = command_line_get_arguments;
 | 
			
		||||
  GetStruct()->append_argument = command_line_append_argument;
 | 
			
		||||
  GetStruct()->prepend_wrapper = command_line_prepend_wrapper;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefCommandLineCppToC::~CefCommandLineCppToC() {}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefCommandLine>
 | 
			
		||||
CefCppToCRefCounted<CefCommandLineCppToC, CefCommandLine, cef_command_line_t>::
 | 
			
		||||
    UnwrapDerived(CefWrapperType type, cef_command_line_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefCommandLineCppToC,
 | 
			
		||||
                                   CefCommandLine,
 | 
			
		||||
                                   cef_command_line_t>::kWrapperType =
 | 
			
		||||
    WT_COMMAND_LINE;
 | 
			
		||||
@@ -1,37 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=e81fded40d316f81fae6158d04a9d11dd461be83$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_COMMAND_LINE_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_COMMAND_LINE_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(BUILDING_CEF_SHARED)
 | 
			
		||||
#error This file can be included DLL-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_command_line_capi.h"
 | 
			
		||||
#include "include/cef_command_line.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed DLL-side only.
 | 
			
		||||
class CefCommandLineCppToC : public CefCppToCRefCounted<CefCommandLineCppToC,
 | 
			
		||||
                                                        CefCommandLine,
 | 
			
		||||
                                                        cef_command_line_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefCommandLineCppToC();
 | 
			
		||||
  virtual ~CefCommandLineCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_COMMAND_LINE_CPPTOC_H_
 | 
			
		||||
@@ -1,66 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=0b1eec74eb4e40370f04f75a2fb7ef67e288c9a4$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/completion_callback_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
completion_callback_on_complete(struct _cef_completion_callback_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefCompletionCallbackCppToC::Get(self)->OnComplete();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefCompletionCallbackCppToC::CefCompletionCallbackCppToC() {
 | 
			
		||||
  GetStruct()->on_complete = completion_callback_on_complete;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefCompletionCallbackCppToC::~CefCompletionCallbackCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefCompletionCallback> CefCppToCRefCounted<
 | 
			
		||||
    CefCompletionCallbackCppToC,
 | 
			
		||||
    CefCompletionCallback,
 | 
			
		||||
    cef_completion_callback_t>::UnwrapDerived(CefWrapperType type,
 | 
			
		||||
                                              cef_completion_callback_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefCompletionCallbackCppToC,
 | 
			
		||||
                                   CefCompletionCallback,
 | 
			
		||||
                                   cef_completion_callback_t>::kWrapperType =
 | 
			
		||||
    WT_COMPLETION_CALLBACK;
 | 
			
		||||
@@ -1,38 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=5088996d4826f6e907e90515b854bf1725a24614$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_COMPLETION_CALLBACK_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_COMPLETION_CALLBACK_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(WRAPPING_CEF_SHARED)
 | 
			
		||||
#error This file can be included wrapper-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_callback_capi.h"
 | 
			
		||||
#include "include/cef_callback.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed wrapper-side only.
 | 
			
		||||
class CefCompletionCallbackCppToC
 | 
			
		||||
    : public CefCppToCRefCounted<CefCompletionCallbackCppToC,
 | 
			
		||||
                                 CefCompletionCallback,
 | 
			
		||||
                                 cef_completion_callback_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefCompletionCallbackCppToC();
 | 
			
		||||
  virtual ~CefCompletionCallbackCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_COMPLETION_CALLBACK_CPPTOC_H_
 | 
			
		||||
@@ -1,347 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=078b4a154c1021906b8ee3084107203f058127dc$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/context_menu_handler_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/ctocpp/browser_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/ctocpp/context_menu_params_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/ctocpp/frame_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/ctocpp/menu_model_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/ctocpp/run_context_menu_callback_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/ctocpp/run_quick_menu_callback_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK context_menu_handler_on_before_context_menu(
 | 
			
		||||
    struct _cef_context_menu_handler_t* self,
 | 
			
		||||
    cef_browser_t* browser,
 | 
			
		||||
    struct _cef_frame_t* frame,
 | 
			
		||||
    struct _cef_context_menu_params_t* params,
 | 
			
		||||
    struct _cef_menu_model_t* model) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: frame; type: refptr_diff
 | 
			
		||||
  DCHECK(frame);
 | 
			
		||||
  if (!frame) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: params; type: refptr_diff
 | 
			
		||||
  DCHECK(params);
 | 
			
		||||
  if (!params) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: model; type: refptr_diff
 | 
			
		||||
  DCHECK(model);
 | 
			
		||||
  if (!model) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefContextMenuHandlerCppToC::Get(self)->OnBeforeContextMenu(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), CefFrameCToCpp::Wrap(frame),
 | 
			
		||||
      CefContextMenuParamsCToCpp::Wrap(params),
 | 
			
		||||
      CefMenuModelCToCpp::Wrap(model));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK context_menu_handler_run_context_menu(
 | 
			
		||||
    struct _cef_context_menu_handler_t* self,
 | 
			
		||||
    cef_browser_t* browser,
 | 
			
		||||
    struct _cef_frame_t* frame,
 | 
			
		||||
    struct _cef_context_menu_params_t* params,
 | 
			
		||||
    struct _cef_menu_model_t* model,
 | 
			
		||||
    cef_run_context_menu_callback_t* callback) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: frame; type: refptr_diff
 | 
			
		||||
  DCHECK(frame);
 | 
			
		||||
  if (!frame) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: params; type: refptr_diff
 | 
			
		||||
  DCHECK(params);
 | 
			
		||||
  if (!params) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: model; type: refptr_diff
 | 
			
		||||
  DCHECK(model);
 | 
			
		||||
  if (!model) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: callback; type: refptr_diff
 | 
			
		||||
  DCHECK(callback);
 | 
			
		||||
  if (!callback) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefContextMenuHandlerCppToC::Get(self)->RunContextMenu(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), CefFrameCToCpp::Wrap(frame),
 | 
			
		||||
      CefContextMenuParamsCToCpp::Wrap(params), CefMenuModelCToCpp::Wrap(model),
 | 
			
		||||
      CefRunContextMenuCallbackCToCpp::Wrap(callback));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK context_menu_handler_on_context_menu_command(
 | 
			
		||||
    struct _cef_context_menu_handler_t* self,
 | 
			
		||||
    cef_browser_t* browser,
 | 
			
		||||
    struct _cef_frame_t* frame,
 | 
			
		||||
    struct _cef_context_menu_params_t* params,
 | 
			
		||||
    int command_id,
 | 
			
		||||
    cef_event_flags_t event_flags) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: frame; type: refptr_diff
 | 
			
		||||
  DCHECK(frame);
 | 
			
		||||
  if (!frame) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: params; type: refptr_diff
 | 
			
		||||
  DCHECK(params);
 | 
			
		||||
  if (!params) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefContextMenuHandlerCppToC::Get(self)->OnContextMenuCommand(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), CefFrameCToCpp::Wrap(frame),
 | 
			
		||||
      CefContextMenuParamsCToCpp::Wrap(params), command_id, event_flags);
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK context_menu_handler_on_context_menu_dismissed(
 | 
			
		||||
    struct _cef_context_menu_handler_t* self,
 | 
			
		||||
    cef_browser_t* browser,
 | 
			
		||||
    struct _cef_frame_t* frame) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: frame; type: refptr_diff
 | 
			
		||||
  DCHECK(frame);
 | 
			
		||||
  if (!frame) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefContextMenuHandlerCppToC::Get(self)->OnContextMenuDismissed(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), CefFrameCToCpp::Wrap(frame));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK context_menu_handler_run_quick_menu(
 | 
			
		||||
    struct _cef_context_menu_handler_t* self,
 | 
			
		||||
    cef_browser_t* browser,
 | 
			
		||||
    struct _cef_frame_t* frame,
 | 
			
		||||
    const cef_point_t* location,
 | 
			
		||||
    const cef_size_t* size,
 | 
			
		||||
    cef_quick_menu_edit_state_flags_t edit_state_flags,
 | 
			
		||||
    cef_run_quick_menu_callback_t* callback) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: frame; type: refptr_diff
 | 
			
		||||
  DCHECK(frame);
 | 
			
		||||
  if (!frame) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: location; type: simple_byref_const
 | 
			
		||||
  DCHECK(location);
 | 
			
		||||
  if (!location) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: size; type: simple_byref_const
 | 
			
		||||
  DCHECK(size);
 | 
			
		||||
  if (!size) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: callback; type: refptr_diff
 | 
			
		||||
  DCHECK(callback);
 | 
			
		||||
  if (!callback) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Translate param: location; type: simple_byref_const
 | 
			
		||||
  CefPoint locationVal = location ? *location : CefPoint();
 | 
			
		||||
  // Translate param: size; type: simple_byref_const
 | 
			
		||||
  CefSize sizeVal = size ? *size : CefSize();
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefContextMenuHandlerCppToC::Get(self)->RunQuickMenu(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), CefFrameCToCpp::Wrap(frame), locationVal,
 | 
			
		||||
      sizeVal, edit_state_flags, CefRunQuickMenuCallbackCToCpp::Wrap(callback));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK context_menu_handler_on_quick_menu_command(
 | 
			
		||||
    struct _cef_context_menu_handler_t* self,
 | 
			
		||||
    cef_browser_t* browser,
 | 
			
		||||
    struct _cef_frame_t* frame,
 | 
			
		||||
    int command_id,
 | 
			
		||||
    cef_event_flags_t event_flags) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: frame; type: refptr_diff
 | 
			
		||||
  DCHECK(frame);
 | 
			
		||||
  if (!frame) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefContextMenuHandlerCppToC::Get(self)->OnQuickMenuCommand(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), CefFrameCToCpp::Wrap(frame), command_id,
 | 
			
		||||
      event_flags);
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK context_menu_handler_on_quick_menu_dismissed(
 | 
			
		||||
    struct _cef_context_menu_handler_t* self,
 | 
			
		||||
    cef_browser_t* browser,
 | 
			
		||||
    struct _cef_frame_t* frame) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: frame; type: refptr_diff
 | 
			
		||||
  DCHECK(frame);
 | 
			
		||||
  if (!frame) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefContextMenuHandlerCppToC::Get(self)->OnQuickMenuDismissed(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), CefFrameCToCpp::Wrap(frame));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefContextMenuHandlerCppToC::CefContextMenuHandlerCppToC() {
 | 
			
		||||
  GetStruct()->on_before_context_menu =
 | 
			
		||||
      context_menu_handler_on_before_context_menu;
 | 
			
		||||
  GetStruct()->run_context_menu = context_menu_handler_run_context_menu;
 | 
			
		||||
  GetStruct()->on_context_menu_command =
 | 
			
		||||
      context_menu_handler_on_context_menu_command;
 | 
			
		||||
  GetStruct()->on_context_menu_dismissed =
 | 
			
		||||
      context_menu_handler_on_context_menu_dismissed;
 | 
			
		||||
  GetStruct()->run_quick_menu = context_menu_handler_run_quick_menu;
 | 
			
		||||
  GetStruct()->on_quick_menu_command =
 | 
			
		||||
      context_menu_handler_on_quick_menu_command;
 | 
			
		||||
  GetStruct()->on_quick_menu_dismissed =
 | 
			
		||||
      context_menu_handler_on_quick_menu_dismissed;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefContextMenuHandlerCppToC::~CefContextMenuHandlerCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefContextMenuHandler> CefCppToCRefCounted<
 | 
			
		||||
    CefContextMenuHandlerCppToC,
 | 
			
		||||
    CefContextMenuHandler,
 | 
			
		||||
    cef_context_menu_handler_t>::UnwrapDerived(CefWrapperType type,
 | 
			
		||||
                                               cef_context_menu_handler_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefContextMenuHandlerCppToC,
 | 
			
		||||
                                   CefContextMenuHandler,
 | 
			
		||||
                                   cef_context_menu_handler_t>::kWrapperType =
 | 
			
		||||
    WT_CONTEXT_MENU_HANDLER;
 | 
			
		||||
@@ -1,38 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=4d68d0d638934d43988f7a689fb089650dce67a0$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_CONTEXT_MENU_HANDLER_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_CONTEXT_MENU_HANDLER_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(WRAPPING_CEF_SHARED)
 | 
			
		||||
#error This file can be included wrapper-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_context_menu_handler_capi.h"
 | 
			
		||||
#include "include/cef_context_menu_handler.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed wrapper-side only.
 | 
			
		||||
class CefContextMenuHandlerCppToC
 | 
			
		||||
    : public CefCppToCRefCounted<CefContextMenuHandlerCppToC,
 | 
			
		||||
                                 CefContextMenuHandler,
 | 
			
		||||
                                 cef_context_menu_handler_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefContextMenuHandlerCppToC();
 | 
			
		||||
  virtual ~CefContextMenuHandlerCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_CONTEXT_MENU_HANDLER_CPPTOC_H_
 | 
			
		||||
@@ -1,459 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=4443e4353cc88c89717a37ad62b2b6b157d59e41$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/context_menu_params_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
#include "libcef_dll/transfer_util.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
context_menu_params_get_xcoord(struct _cef_context_menu_params_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  int _retval = CefContextMenuParamsCppToC::Get(self)->GetXCoord();
 | 
			
		||||
 | 
			
		||||
  // Return type: simple
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
context_menu_params_get_ycoord(struct _cef_context_menu_params_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  int _retval = CefContextMenuParamsCppToC::Get(self)->GetYCoord();
 | 
			
		||||
 | 
			
		||||
  // Return type: simple
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_context_menu_type_flags_t CEF_CALLBACK
 | 
			
		||||
context_menu_params_get_type_flags(struct _cef_context_menu_params_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return CM_TYPEFLAG_NONE;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  cef_context_menu_type_flags_t _retval =
 | 
			
		||||
      CefContextMenuParamsCppToC::Get(self)->GetTypeFlags();
 | 
			
		||||
 | 
			
		||||
  // Return type: simple
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK
 | 
			
		||||
context_menu_params_get_link_url(struct _cef_context_menu_params_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval = CefContextMenuParamsCppToC::Get(self)->GetLinkUrl();
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK context_menu_params_get_unfiltered_link_url(
 | 
			
		||||
    struct _cef_context_menu_params_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval =
 | 
			
		||||
      CefContextMenuParamsCppToC::Get(self)->GetUnfilteredLinkUrl();
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK
 | 
			
		||||
context_menu_params_get_source_url(struct _cef_context_menu_params_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval = CefContextMenuParamsCppToC::Get(self)->GetSourceUrl();
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK context_menu_params_has_image_contents(
 | 
			
		||||
    struct _cef_context_menu_params_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefContextMenuParamsCppToC::Get(self)->HasImageContents();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK
 | 
			
		||||
context_menu_params_get_title_text(struct _cef_context_menu_params_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval = CefContextMenuParamsCppToC::Get(self)->GetTitleText();
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK
 | 
			
		||||
context_menu_params_get_page_url(struct _cef_context_menu_params_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval = CefContextMenuParamsCppToC::Get(self)->GetPageUrl();
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK
 | 
			
		||||
context_menu_params_get_frame_url(struct _cef_context_menu_params_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval = CefContextMenuParamsCppToC::Get(self)->GetFrameUrl();
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK
 | 
			
		||||
context_menu_params_get_frame_charset(struct _cef_context_menu_params_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval = CefContextMenuParamsCppToC::Get(self)->GetFrameCharset();
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_context_menu_media_type_t CEF_CALLBACK
 | 
			
		||||
context_menu_params_get_media_type(struct _cef_context_menu_params_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return CM_MEDIATYPE_NONE;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  cef_context_menu_media_type_t _retval =
 | 
			
		||||
      CefContextMenuParamsCppToC::Get(self)->GetMediaType();
 | 
			
		||||
 | 
			
		||||
  // Return type: simple
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_context_menu_media_state_flags_t CEF_CALLBACK
 | 
			
		||||
context_menu_params_get_media_state_flags(
 | 
			
		||||
    struct _cef_context_menu_params_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return CM_MEDIAFLAG_NONE;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  cef_context_menu_media_state_flags_t _retval =
 | 
			
		||||
      CefContextMenuParamsCppToC::Get(self)->GetMediaStateFlags();
 | 
			
		||||
 | 
			
		||||
  // Return type: simple
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK context_menu_params_get_selection_text(
 | 
			
		||||
    struct _cef_context_menu_params_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval = CefContextMenuParamsCppToC::Get(self)->GetSelectionText();
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK context_menu_params_get_misspelled_word(
 | 
			
		||||
    struct _cef_context_menu_params_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval =
 | 
			
		||||
      CefContextMenuParamsCppToC::Get(self)->GetMisspelledWord();
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK context_menu_params_get_dictionary_suggestions(
 | 
			
		||||
    struct _cef_context_menu_params_t* self,
 | 
			
		||||
    cef_string_list_t suggestions) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: suggestions; type: string_vec_byref
 | 
			
		||||
  DCHECK(suggestions);
 | 
			
		||||
  if (!suggestions) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Translate param: suggestions; type: string_vec_byref
 | 
			
		||||
  std::vector<CefString> suggestionsList;
 | 
			
		||||
  transfer_string_list_contents(suggestions, suggestionsList);
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval =
 | 
			
		||||
      CefContextMenuParamsCppToC::Get(self)->GetDictionarySuggestions(
 | 
			
		||||
          suggestionsList);
 | 
			
		||||
 | 
			
		||||
  // Restore param: suggestions; type: string_vec_byref
 | 
			
		||||
  cef_string_list_clear(suggestions);
 | 
			
		||||
  transfer_string_list_contents(suggestionsList, suggestions);
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
context_menu_params_is_editable(struct _cef_context_menu_params_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefContextMenuParamsCppToC::Get(self)->IsEditable();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK context_menu_params_is_spell_check_enabled(
 | 
			
		||||
    struct _cef_context_menu_params_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefContextMenuParamsCppToC::Get(self)->IsSpellCheckEnabled();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_context_menu_edit_state_flags_t CEF_CALLBACK
 | 
			
		||||
context_menu_params_get_edit_state_flags(
 | 
			
		||||
    struct _cef_context_menu_params_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return CM_EDITFLAG_NONE;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  cef_context_menu_edit_state_flags_t _retval =
 | 
			
		||||
      CefContextMenuParamsCppToC::Get(self)->GetEditStateFlags();
 | 
			
		||||
 | 
			
		||||
  // Return type: simple
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
context_menu_params_is_custom_menu(struct _cef_context_menu_params_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefContextMenuParamsCppToC::Get(self)->IsCustomMenu();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefContextMenuParamsCppToC::CefContextMenuParamsCppToC() {
 | 
			
		||||
  GetStruct()->get_xcoord = context_menu_params_get_xcoord;
 | 
			
		||||
  GetStruct()->get_ycoord = context_menu_params_get_ycoord;
 | 
			
		||||
  GetStruct()->get_type_flags = context_menu_params_get_type_flags;
 | 
			
		||||
  GetStruct()->get_link_url = context_menu_params_get_link_url;
 | 
			
		||||
  GetStruct()->get_unfiltered_link_url =
 | 
			
		||||
      context_menu_params_get_unfiltered_link_url;
 | 
			
		||||
  GetStruct()->get_source_url = context_menu_params_get_source_url;
 | 
			
		||||
  GetStruct()->has_image_contents = context_menu_params_has_image_contents;
 | 
			
		||||
  GetStruct()->get_title_text = context_menu_params_get_title_text;
 | 
			
		||||
  GetStruct()->get_page_url = context_menu_params_get_page_url;
 | 
			
		||||
  GetStruct()->get_frame_url = context_menu_params_get_frame_url;
 | 
			
		||||
  GetStruct()->get_frame_charset = context_menu_params_get_frame_charset;
 | 
			
		||||
  GetStruct()->get_media_type = context_menu_params_get_media_type;
 | 
			
		||||
  GetStruct()->get_media_state_flags =
 | 
			
		||||
      context_menu_params_get_media_state_flags;
 | 
			
		||||
  GetStruct()->get_selection_text = context_menu_params_get_selection_text;
 | 
			
		||||
  GetStruct()->get_misspelled_word = context_menu_params_get_misspelled_word;
 | 
			
		||||
  GetStruct()->get_dictionary_suggestions =
 | 
			
		||||
      context_menu_params_get_dictionary_suggestions;
 | 
			
		||||
  GetStruct()->is_editable = context_menu_params_is_editable;
 | 
			
		||||
  GetStruct()->is_spell_check_enabled =
 | 
			
		||||
      context_menu_params_is_spell_check_enabled;
 | 
			
		||||
  GetStruct()->get_edit_state_flags = context_menu_params_get_edit_state_flags;
 | 
			
		||||
  GetStruct()->is_custom_menu = context_menu_params_is_custom_menu;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefContextMenuParamsCppToC::~CefContextMenuParamsCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefContextMenuParams> CefCppToCRefCounted<
 | 
			
		||||
    CefContextMenuParamsCppToC,
 | 
			
		||||
    CefContextMenuParams,
 | 
			
		||||
    cef_context_menu_params_t>::UnwrapDerived(CefWrapperType type,
 | 
			
		||||
                                              cef_context_menu_params_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefContextMenuParamsCppToC,
 | 
			
		||||
                                   CefContextMenuParams,
 | 
			
		||||
                                   cef_context_menu_params_t>::kWrapperType =
 | 
			
		||||
    WT_CONTEXT_MENU_PARAMS;
 | 
			
		||||
@@ -1,38 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=49fe28d43cbb6a1bb43449873699e7472d7bc8a4$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_CONTEXT_MENU_PARAMS_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_CONTEXT_MENU_PARAMS_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(BUILDING_CEF_SHARED)
 | 
			
		||||
#error This file can be included DLL-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_context_menu_handler_capi.h"
 | 
			
		||||
#include "include/cef_context_menu_handler.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed DLL-side only.
 | 
			
		||||
class CefContextMenuParamsCppToC
 | 
			
		||||
    : public CefCppToCRefCounted<CefContextMenuParamsCppToC,
 | 
			
		||||
                                 CefContextMenuParams,
 | 
			
		||||
                                 cef_context_menu_params_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefContextMenuParamsCppToC();
 | 
			
		||||
  virtual ~CefContextMenuParamsCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_CONTEXT_MENU_PARAMS_CPPTOC_H_
 | 
			
		||||
@@ -1,147 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=e78a8da0160d6167a98c97463ebc1cb171c94a06$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/cookie_access_filter_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/ctocpp/browser_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/ctocpp/frame_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/ctocpp/request_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/ctocpp/response_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/template_util.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
cookie_access_filter_can_send_cookie(struct _cef_cookie_access_filter_t* self,
 | 
			
		||||
                                     cef_browser_t* browser,
 | 
			
		||||
                                     cef_frame_t* frame,
 | 
			
		||||
                                     cef_request_t* request,
 | 
			
		||||
                                     const struct _cef_cookie_t* cookie) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: request; type: refptr_diff
 | 
			
		||||
  DCHECK(request);
 | 
			
		||||
  if (!request) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: cookie; type: struct_byref_const
 | 
			
		||||
  DCHECK(cookie);
 | 
			
		||||
  if (!cookie) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  if (!template_util::has_valid_size(cookie)) {
 | 
			
		||||
    DCHECK(false) << "invalid cookie->[base.]size";
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Unverified params: browser, frame
 | 
			
		||||
 | 
			
		||||
  // Translate param: cookie; type: struct_byref_const
 | 
			
		||||
  CefCookie cookieObj;
 | 
			
		||||
  if (cookie) {
 | 
			
		||||
    cookieObj.Set(*cookie, false);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefCookieAccessFilterCppToC::Get(self)->CanSendCookie(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), CefFrameCToCpp::Wrap(frame),
 | 
			
		||||
      CefRequestCToCpp::Wrap(request), cookieObj);
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
cookie_access_filter_can_save_cookie(struct _cef_cookie_access_filter_t* self,
 | 
			
		||||
                                     cef_browser_t* browser,
 | 
			
		||||
                                     cef_frame_t* frame,
 | 
			
		||||
                                     cef_request_t* request,
 | 
			
		||||
                                     struct _cef_response_t* response,
 | 
			
		||||
                                     const struct _cef_cookie_t* cookie) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: request; type: refptr_diff
 | 
			
		||||
  DCHECK(request);
 | 
			
		||||
  if (!request) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: response; type: refptr_diff
 | 
			
		||||
  DCHECK(response);
 | 
			
		||||
  if (!response) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: cookie; type: struct_byref_const
 | 
			
		||||
  DCHECK(cookie);
 | 
			
		||||
  if (!cookie) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  if (!template_util::has_valid_size(cookie)) {
 | 
			
		||||
    DCHECK(false) << "invalid cookie->[base.]size";
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Unverified params: browser, frame
 | 
			
		||||
 | 
			
		||||
  // Translate param: cookie; type: struct_byref_const
 | 
			
		||||
  CefCookie cookieObj;
 | 
			
		||||
  if (cookie) {
 | 
			
		||||
    cookieObj.Set(*cookie, false);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefCookieAccessFilterCppToC::Get(self)->CanSaveCookie(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), CefFrameCToCpp::Wrap(frame),
 | 
			
		||||
      CefRequestCToCpp::Wrap(request), CefResponseCToCpp::Wrap(response),
 | 
			
		||||
      cookieObj);
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefCookieAccessFilterCppToC::CefCookieAccessFilterCppToC() {
 | 
			
		||||
  GetStruct()->can_send_cookie = cookie_access_filter_can_send_cookie;
 | 
			
		||||
  GetStruct()->can_save_cookie = cookie_access_filter_can_save_cookie;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefCookieAccessFilterCppToC::~CefCookieAccessFilterCppToC() {}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefCookieAccessFilter> CefCppToCRefCounted<
 | 
			
		||||
    CefCookieAccessFilterCppToC,
 | 
			
		||||
    CefCookieAccessFilter,
 | 
			
		||||
    cef_cookie_access_filter_t>::UnwrapDerived(CefWrapperType type,
 | 
			
		||||
                                               cef_cookie_access_filter_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefCookieAccessFilterCppToC,
 | 
			
		||||
                                   CefCookieAccessFilter,
 | 
			
		||||
                                   cef_cookie_access_filter_t>::kWrapperType =
 | 
			
		||||
    WT_COOKIE_ACCESS_FILTER;
 | 
			
		||||
@@ -1,38 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=c9db573e2bf3ef3523d2127c32e260bd61aa4e82$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_COOKIE_ACCESS_FILTER_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_COOKIE_ACCESS_FILTER_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(WRAPPING_CEF_SHARED)
 | 
			
		||||
#error This file can be included wrapper-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_resource_request_handler_capi.h"
 | 
			
		||||
#include "include/cef_resource_request_handler.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed wrapper-side only.
 | 
			
		||||
class CefCookieAccessFilterCppToC
 | 
			
		||||
    : public CefCppToCRefCounted<CefCookieAccessFilterCppToC,
 | 
			
		||||
                                 CefCookieAccessFilter,
 | 
			
		||||
                                 cef_cookie_access_filter_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefCookieAccessFilterCppToC();
 | 
			
		||||
  virtual ~CefCookieAccessFilterCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_COOKIE_ACCESS_FILTER_CPPTOC_H_
 | 
			
		||||
@@ -1,209 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=7880ec31fa770eb0093a5320c8e2bca5279d03a2$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/cookie_manager_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/ctocpp/completion_callback_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/ctocpp/cookie_visitor_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/ctocpp/delete_cookies_callback_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/ctocpp/set_cookie_callback_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/template_util.h"
 | 
			
		||||
 | 
			
		||||
// GLOBAL FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
CEF_EXPORT cef_cookie_manager_t* cef_cookie_manager_get_global_manager(
 | 
			
		||||
    cef_completion_callback_t* callback) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  // Unverified params: callback
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefCookieManager> _retval = CefCookieManager::GetGlobalManager(
 | 
			
		||||
      CefCompletionCallbackCToCpp::Wrap(callback));
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefCookieManagerCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
cookie_manager_visit_all_cookies(struct _cef_cookie_manager_t* self,
 | 
			
		||||
                                 struct _cef_cookie_visitor_t* visitor) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: visitor; type: refptr_diff
 | 
			
		||||
  DCHECK(visitor);
 | 
			
		||||
  if (!visitor) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefCookieManagerCppToC::Get(self)->VisitAllCookies(
 | 
			
		||||
      CefCookieVisitorCToCpp::Wrap(visitor));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
cookie_manager_visit_url_cookies(struct _cef_cookie_manager_t* self,
 | 
			
		||||
                                 const cef_string_t* url,
 | 
			
		||||
                                 int includeHttpOnly,
 | 
			
		||||
                                 struct _cef_cookie_visitor_t* visitor) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: url; type: string_byref_const
 | 
			
		||||
  DCHECK(url);
 | 
			
		||||
  if (!url) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: visitor; type: refptr_diff
 | 
			
		||||
  DCHECK(visitor);
 | 
			
		||||
  if (!visitor) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefCookieManagerCppToC::Get(self)->VisitUrlCookies(
 | 
			
		||||
      CefString(url), includeHttpOnly ? true : false,
 | 
			
		||||
      CefCookieVisitorCToCpp::Wrap(visitor));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
cookie_manager_set_cookie(struct _cef_cookie_manager_t* self,
 | 
			
		||||
                          const cef_string_t* url,
 | 
			
		||||
                          const struct _cef_cookie_t* cookie,
 | 
			
		||||
                          struct _cef_set_cookie_callback_t* callback) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: url; type: string_byref_const
 | 
			
		||||
  DCHECK(url);
 | 
			
		||||
  if (!url) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: cookie; type: struct_byref_const
 | 
			
		||||
  DCHECK(cookie);
 | 
			
		||||
  if (!cookie) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  if (!template_util::has_valid_size(cookie)) {
 | 
			
		||||
    DCHECK(false) << "invalid cookie->[base.]size";
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Unverified params: callback
 | 
			
		||||
 | 
			
		||||
  // Translate param: cookie; type: struct_byref_const
 | 
			
		||||
  CefCookie cookieObj;
 | 
			
		||||
  if (cookie) {
 | 
			
		||||
    cookieObj.Set(*cookie, false);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefCookieManagerCppToC::Get(self)->SetCookie(
 | 
			
		||||
      CefString(url), cookieObj, CefSetCookieCallbackCToCpp::Wrap(callback));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
cookie_manager_delete_cookies(struct _cef_cookie_manager_t* self,
 | 
			
		||||
                              const cef_string_t* url,
 | 
			
		||||
                              const cef_string_t* cookie_name,
 | 
			
		||||
                              struct _cef_delete_cookies_callback_t* callback) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Unverified params: url, cookie_name, callback
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefCookieManagerCppToC::Get(self)->DeleteCookies(
 | 
			
		||||
      CefString(url), CefString(cookie_name),
 | 
			
		||||
      CefDeleteCookiesCallbackCToCpp::Wrap(callback));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
cookie_manager_flush_store(struct _cef_cookie_manager_t* self,
 | 
			
		||||
                           cef_completion_callback_t* callback) {
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Unverified params: callback
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefCookieManagerCppToC::Get(self)->FlushStore(
 | 
			
		||||
      CefCompletionCallbackCToCpp::Wrap(callback));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefCookieManagerCppToC::CefCookieManagerCppToC() {
 | 
			
		||||
  GetStruct()->visit_all_cookies = cookie_manager_visit_all_cookies;
 | 
			
		||||
  GetStruct()->visit_url_cookies = cookie_manager_visit_url_cookies;
 | 
			
		||||
  GetStruct()->set_cookie = cookie_manager_set_cookie;
 | 
			
		||||
  GetStruct()->delete_cookies = cookie_manager_delete_cookies;
 | 
			
		||||
  GetStruct()->flush_store = cookie_manager_flush_store;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefCookieManagerCppToC::~CefCookieManagerCppToC() {}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefCookieManager> CefCppToCRefCounted<
 | 
			
		||||
    CefCookieManagerCppToC,
 | 
			
		||||
    CefCookieManager,
 | 
			
		||||
    cef_cookie_manager_t>::UnwrapDerived(CefWrapperType type,
 | 
			
		||||
                                         cef_cookie_manager_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefCookieManagerCppToC,
 | 
			
		||||
                                   CefCookieManager,
 | 
			
		||||
                                   cef_cookie_manager_t>::kWrapperType =
 | 
			
		||||
    WT_COOKIE_MANAGER;
 | 
			
		||||
@@ -1,38 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=512fc1313311906bac16d24754a46d85fd029939$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_COOKIE_MANAGER_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_COOKIE_MANAGER_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(BUILDING_CEF_SHARED)
 | 
			
		||||
#error This file can be included DLL-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_cookie_capi.h"
 | 
			
		||||
#include "include/cef_cookie.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed DLL-side only.
 | 
			
		||||
class CefCookieManagerCppToC
 | 
			
		||||
    : public CefCppToCRefCounted<CefCookieManagerCppToC,
 | 
			
		||||
                                 CefCookieManager,
 | 
			
		||||
                                 cef_cookie_manager_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefCookieManagerCppToC();
 | 
			
		||||
  virtual ~CefCookieManagerCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_COOKIE_MANAGER_CPPTOC_H_
 | 
			
		||||
@@ -1,101 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=15c0d95a3a8228b58f57e4350c5060ba7a1b41f3$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/cookie_visitor_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
#include "libcef_dll/template_util.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK cookie_visitor_visit(struct _cef_cookie_visitor_t* self,
 | 
			
		||||
                                      const struct _cef_cookie_t* cookie,
 | 
			
		||||
                                      int count,
 | 
			
		||||
                                      int total,
 | 
			
		||||
                                      int* deleteCookie) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: cookie; type: struct_byref_const
 | 
			
		||||
  DCHECK(cookie);
 | 
			
		||||
  if (!cookie) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  if (!template_util::has_valid_size(cookie)) {
 | 
			
		||||
    DCHECK(false) << "invalid cookie->[base.]size";
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: deleteCookie; type: bool_byref
 | 
			
		||||
  DCHECK(deleteCookie);
 | 
			
		||||
  if (!deleteCookie) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Translate param: cookie; type: struct_byref_const
 | 
			
		||||
  CefCookie cookieObj;
 | 
			
		||||
  if (cookie) {
 | 
			
		||||
    cookieObj.Set(*cookie, false);
 | 
			
		||||
  }
 | 
			
		||||
  // Translate param: deleteCookie; type: bool_byref
 | 
			
		||||
  bool deleteCookieBool = (deleteCookie && *deleteCookie) ? true : false;
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefCookieVisitorCppToC::Get(self)->Visit(
 | 
			
		||||
      cookieObj, count, total, deleteCookieBool);
 | 
			
		||||
 | 
			
		||||
  // Restore param: deleteCookie; type: bool_byref
 | 
			
		||||
  if (deleteCookie) {
 | 
			
		||||
    *deleteCookie = deleteCookieBool ? true : false;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefCookieVisitorCppToC::CefCookieVisitorCppToC() {
 | 
			
		||||
  GetStruct()->visit = cookie_visitor_visit;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefCookieVisitorCppToC::~CefCookieVisitorCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefCookieVisitor> CefCppToCRefCounted<
 | 
			
		||||
    CefCookieVisitorCppToC,
 | 
			
		||||
    CefCookieVisitor,
 | 
			
		||||
    cef_cookie_visitor_t>::UnwrapDerived(CefWrapperType type,
 | 
			
		||||
                                         cef_cookie_visitor_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefCookieVisitorCppToC,
 | 
			
		||||
                                   CefCookieVisitor,
 | 
			
		||||
                                   cef_cookie_visitor_t>::kWrapperType =
 | 
			
		||||
    WT_COOKIE_VISITOR;
 | 
			
		||||
@@ -1,38 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=1b36e4d8ae64af865423ab907e36a0cf29200bd8$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_COOKIE_VISITOR_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_COOKIE_VISITOR_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(WRAPPING_CEF_SHARED)
 | 
			
		||||
#error This file can be included wrapper-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_cookie_capi.h"
 | 
			
		||||
#include "include/cef_cookie.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed wrapper-side only.
 | 
			
		||||
class CefCookieVisitorCppToC
 | 
			
		||||
    : public CefCppToCRefCounted<CefCookieVisitorCppToC,
 | 
			
		||||
                                 CefCookieVisitor,
 | 
			
		||||
                                 cef_cookie_visitor_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefCookieVisitorCppToC();
 | 
			
		||||
  virtual ~CefCookieVisitorCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_COOKIE_VISITOR_CPPTOC_H_
 | 
			
		||||
@@ -1,69 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=f2245c2b49be3224592b77ad22c66ac95181332a$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/delete_cookies_callback_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
delete_cookies_callback_on_complete(struct _cef_delete_cookies_callback_t* self,
 | 
			
		||||
                                    int num_deleted) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefDeleteCookiesCallbackCppToC::Get(self)->OnComplete(num_deleted);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefDeleteCookiesCallbackCppToC::CefDeleteCookiesCallbackCppToC() {
 | 
			
		||||
  GetStruct()->on_complete = delete_cookies_callback_on_complete;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefDeleteCookiesCallbackCppToC::~CefDeleteCookiesCallbackCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefDeleteCookiesCallback> CefCppToCRefCounted<
 | 
			
		||||
    CefDeleteCookiesCallbackCppToC,
 | 
			
		||||
    CefDeleteCookiesCallback,
 | 
			
		||||
    cef_delete_cookies_callback_t>::UnwrapDerived(CefWrapperType type,
 | 
			
		||||
                                                  cef_delete_cookies_callback_t*
 | 
			
		||||
                                                      s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType
 | 
			
		||||
    CefCppToCRefCounted<CefDeleteCookiesCallbackCppToC,
 | 
			
		||||
                        CefDeleteCookiesCallback,
 | 
			
		||||
                        cef_delete_cookies_callback_t>::kWrapperType =
 | 
			
		||||
        WT_DELETE_COOKIES_CALLBACK;
 | 
			
		||||
@@ -1,38 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=cde461484eb69bfd0cd2245c2fcc3fb295d602ac$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_DELETE_COOKIES_CALLBACK_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_DELETE_COOKIES_CALLBACK_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(WRAPPING_CEF_SHARED)
 | 
			
		||||
#error This file can be included wrapper-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_cookie_capi.h"
 | 
			
		||||
#include "include/cef_cookie.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed wrapper-side only.
 | 
			
		||||
class CefDeleteCookiesCallbackCppToC
 | 
			
		||||
    : public CefCppToCRefCounted<CefDeleteCookiesCallbackCppToC,
 | 
			
		||||
                                 CefDeleteCookiesCallback,
 | 
			
		||||
                                 cef_delete_cookies_callback_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefDeleteCookiesCallbackCppToC();
 | 
			
		||||
  virtual ~CefDeleteCookiesCallbackCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_DELETE_COOKIES_CALLBACK_CPPTOC_H_
 | 
			
		||||
@@ -1,197 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=28fb82efb43251449255e957b818bad7fe520728$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/dev_tools_message_observer_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/ctocpp/browser_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK dev_tools_message_observer_on_dev_tools_message(
 | 
			
		||||
    struct _cef_dev_tools_message_observer_t* self,
 | 
			
		||||
    cef_browser_t* browser,
 | 
			
		||||
    const void* message,
 | 
			
		||||
    size_t message_size) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: message; type: simple_byaddr
 | 
			
		||||
  DCHECK(message);
 | 
			
		||||
  if (!message) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDevToolsMessageObserverCppToC::Get(self)->OnDevToolsMessage(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), message, message_size);
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK dev_tools_message_observer_on_dev_tools_method_result(
 | 
			
		||||
    struct _cef_dev_tools_message_observer_t* self,
 | 
			
		||||
    cef_browser_t* browser,
 | 
			
		||||
    int message_id,
 | 
			
		||||
    int success,
 | 
			
		||||
    const void* result,
 | 
			
		||||
    size_t result_size) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Unverified params: result
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefDevToolsMessageObserverCppToC::Get(self)->OnDevToolsMethodResult(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), message_id, success ? true : false,
 | 
			
		||||
      result, result_size);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK dev_tools_message_observer_on_dev_tools_event(
 | 
			
		||||
    struct _cef_dev_tools_message_observer_t* self,
 | 
			
		||||
    cef_browser_t* browser,
 | 
			
		||||
    const cef_string_t* method,
 | 
			
		||||
    const void* params,
 | 
			
		||||
    size_t params_size) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: method; type: string_byref_const
 | 
			
		||||
  DCHECK(method);
 | 
			
		||||
  if (!method) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Unverified params: params
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefDevToolsMessageObserverCppToC::Get(self)->OnDevToolsEvent(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), CefString(method), params, params_size);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK dev_tools_message_observer_on_dev_tools_agent_attached(
 | 
			
		||||
    struct _cef_dev_tools_message_observer_t* self,
 | 
			
		||||
    cef_browser_t* browser) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefDevToolsMessageObserverCppToC::Get(self)->OnDevToolsAgentAttached(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK dev_tools_message_observer_on_dev_tools_agent_detached(
 | 
			
		||||
    struct _cef_dev_tools_message_observer_t* self,
 | 
			
		||||
    cef_browser_t* browser) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefDevToolsMessageObserverCppToC::Get(self)->OnDevToolsAgentDetached(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefDevToolsMessageObserverCppToC::CefDevToolsMessageObserverCppToC() {
 | 
			
		||||
  GetStruct()->on_dev_tools_message =
 | 
			
		||||
      dev_tools_message_observer_on_dev_tools_message;
 | 
			
		||||
  GetStruct()->on_dev_tools_method_result =
 | 
			
		||||
      dev_tools_message_observer_on_dev_tools_method_result;
 | 
			
		||||
  GetStruct()->on_dev_tools_event =
 | 
			
		||||
      dev_tools_message_observer_on_dev_tools_event;
 | 
			
		||||
  GetStruct()->on_dev_tools_agent_attached =
 | 
			
		||||
      dev_tools_message_observer_on_dev_tools_agent_attached;
 | 
			
		||||
  GetStruct()->on_dev_tools_agent_detached =
 | 
			
		||||
      dev_tools_message_observer_on_dev_tools_agent_detached;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefDevToolsMessageObserverCppToC::~CefDevToolsMessageObserverCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefDevToolsMessageObserver>
 | 
			
		||||
CefCppToCRefCounted<CefDevToolsMessageObserverCppToC,
 | 
			
		||||
                    CefDevToolsMessageObserver,
 | 
			
		||||
                    cef_dev_tools_message_observer_t>::
 | 
			
		||||
    UnwrapDerived(CefWrapperType type, cef_dev_tools_message_observer_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType
 | 
			
		||||
    CefCppToCRefCounted<CefDevToolsMessageObserverCppToC,
 | 
			
		||||
                        CefDevToolsMessageObserver,
 | 
			
		||||
                        cef_dev_tools_message_observer_t>::kWrapperType =
 | 
			
		||||
        WT_DEV_TOOLS_MESSAGE_OBSERVER;
 | 
			
		||||
@@ -1,40 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=c6c991988013c8b1264c40695a67f91eddae8978$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_DEV_TOOLS_MESSAGE_OBSERVER_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_DEV_TOOLS_MESSAGE_OBSERVER_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(WRAPPING_CEF_SHARED)
 | 
			
		||||
#error This file can be included wrapper-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_browser_capi.h"
 | 
			
		||||
#include "include/capi/cef_devtools_message_observer_capi.h"
 | 
			
		||||
#include "include/cef_browser.h"
 | 
			
		||||
#include "include/cef_devtools_message_observer.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed wrapper-side only.
 | 
			
		||||
class CefDevToolsMessageObserverCppToC
 | 
			
		||||
    : public CefCppToCRefCounted<CefDevToolsMessageObserverCppToC,
 | 
			
		||||
                                 CefDevToolsMessageObserver,
 | 
			
		||||
                                 cef_dev_tools_message_observer_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefDevToolsMessageObserverCppToC();
 | 
			
		||||
  virtual ~CefDevToolsMessageObserverCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_DEV_TOOLS_MESSAGE_OBSERVER_CPPTOC_H_
 | 
			
		||||
@@ -1,105 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=3c95f12406eee58308a2c019e8081e0710769e0d$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/dialog_handler_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/ctocpp/browser_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/ctocpp/file_dialog_callback_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
#include "libcef_dll/transfer_util.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
dialog_handler_on_file_dialog(struct _cef_dialog_handler_t* self,
 | 
			
		||||
                              cef_browser_t* browser,
 | 
			
		||||
                              cef_file_dialog_mode_t mode,
 | 
			
		||||
                              const cef_string_t* title,
 | 
			
		||||
                              const cef_string_t* default_file_path,
 | 
			
		||||
                              cef_string_list_t accept_filters,
 | 
			
		||||
                              cef_string_list_t accept_extensions,
 | 
			
		||||
                              cef_string_list_t accept_descriptions,
 | 
			
		||||
                              cef_file_dialog_callback_t* callback) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: callback; type: refptr_diff
 | 
			
		||||
  DCHECK(callback);
 | 
			
		||||
  if (!callback) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Unverified params: title, default_file_path, accept_filters,
 | 
			
		||||
  // accept_extensions, accept_descriptions
 | 
			
		||||
 | 
			
		||||
  // Translate param: accept_filters; type: string_vec_byref_const
 | 
			
		||||
  std::vector<CefString> accept_filtersList;
 | 
			
		||||
  transfer_string_list_contents(accept_filters, accept_filtersList);
 | 
			
		||||
  // Translate param: accept_extensions; type: string_vec_byref_const
 | 
			
		||||
  std::vector<CefString> accept_extensionsList;
 | 
			
		||||
  transfer_string_list_contents(accept_extensions, accept_extensionsList);
 | 
			
		||||
  // Translate param: accept_descriptions; type: string_vec_byref_const
 | 
			
		||||
  std::vector<CefString> accept_descriptionsList;
 | 
			
		||||
  transfer_string_list_contents(accept_descriptions, accept_descriptionsList);
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDialogHandlerCppToC::Get(self)->OnFileDialog(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), mode, CefString(title),
 | 
			
		||||
      CefString(default_file_path), accept_filtersList, accept_extensionsList,
 | 
			
		||||
      accept_descriptionsList, CefFileDialogCallbackCToCpp::Wrap(callback));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefDialogHandlerCppToC::CefDialogHandlerCppToC() {
 | 
			
		||||
  GetStruct()->on_file_dialog = dialog_handler_on_file_dialog;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefDialogHandlerCppToC::~CefDialogHandlerCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefDialogHandler> CefCppToCRefCounted<
 | 
			
		||||
    CefDialogHandlerCppToC,
 | 
			
		||||
    CefDialogHandler,
 | 
			
		||||
    cef_dialog_handler_t>::UnwrapDerived(CefWrapperType type,
 | 
			
		||||
                                         cef_dialog_handler_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefDialogHandlerCppToC,
 | 
			
		||||
                                   CefDialogHandler,
 | 
			
		||||
                                   cef_dialog_handler_t>::kWrapperType =
 | 
			
		||||
    WT_DIALOG_HANDLER;
 | 
			
		||||
@@ -1,38 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=e42aa17177f1a1d9ae667659ce6bce3b6a1360db$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_DIALOG_HANDLER_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_DIALOG_HANDLER_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(WRAPPING_CEF_SHARED)
 | 
			
		||||
#error This file can be included wrapper-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_dialog_handler_capi.h"
 | 
			
		||||
#include "include/cef_dialog_handler.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed wrapper-side only.
 | 
			
		||||
class CefDialogHandlerCppToC
 | 
			
		||||
    : public CefCppToCRefCounted<CefDialogHandlerCppToC,
 | 
			
		||||
                                 CefDialogHandler,
 | 
			
		||||
                                 cef_dialog_handler_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefDialogHandlerCppToC();
 | 
			
		||||
  virtual ~CefDialogHandlerCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_DIALOG_HANDLER_CPPTOC_H_
 | 
			
		||||
@@ -1,804 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=1258f3661dc3092f1b3d050e69cb2c97f6a12b85$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/dictionary_value_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/binary_value_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/list_value_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/value_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
#include "libcef_dll/transfer_util.h"
 | 
			
		||||
 | 
			
		||||
// GLOBAL FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
CEF_EXPORT cef_dictionary_value_t* cef_dictionary_value_create() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefDictionaryValue> _retval = CefDictionaryValue::Create();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefDictionaryValueCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
dictionary_value_is_valid(struct _cef_dictionary_value_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDictionaryValueCppToC::Get(self)->IsValid();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
dictionary_value_is_owned(struct _cef_dictionary_value_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDictionaryValueCppToC::Get(self)->IsOwned();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
dictionary_value_is_read_only(struct _cef_dictionary_value_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDictionaryValueCppToC::Get(self)->IsReadOnly();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
dictionary_value_is_same(struct _cef_dictionary_value_t* self,
 | 
			
		||||
                         struct _cef_dictionary_value_t* that) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: that; type: refptr_same
 | 
			
		||||
  DCHECK(that);
 | 
			
		||||
  if (!that) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDictionaryValueCppToC::Get(self)->IsSame(
 | 
			
		||||
      CefDictionaryValueCppToC::Unwrap(that));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
dictionary_value_is_equal(struct _cef_dictionary_value_t* self,
 | 
			
		||||
                          struct _cef_dictionary_value_t* that) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: that; type: refptr_same
 | 
			
		||||
  DCHECK(that);
 | 
			
		||||
  if (!that) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDictionaryValueCppToC::Get(self)->IsEqual(
 | 
			
		||||
      CefDictionaryValueCppToC::Unwrap(that));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_dictionary_value_t* CEF_CALLBACK
 | 
			
		||||
dictionary_value_copy(struct _cef_dictionary_value_t* self,
 | 
			
		||||
                      int exclude_empty_children) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefDictionaryValue> _retval =
 | 
			
		||||
      CefDictionaryValueCppToC::Get(self)->Copy(exclude_empty_children ? true
 | 
			
		||||
                                                                       : false);
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefDictionaryValueCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
size_t CEF_CALLBACK
 | 
			
		||||
dictionary_value_get_size(struct _cef_dictionary_value_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  size_t _retval = CefDictionaryValueCppToC::Get(self)->GetSize();
 | 
			
		||||
 | 
			
		||||
  // Return type: simple
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK dictionary_value_clear(struct _cef_dictionary_value_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDictionaryValueCppToC::Get(self)->Clear();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK dictionary_value_has_key(struct _cef_dictionary_value_t* self,
 | 
			
		||||
                                          const cef_string_t* key) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: key; type: string_byref_const
 | 
			
		||||
  DCHECK(key);
 | 
			
		||||
  if (!key) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDictionaryValueCppToC::Get(self)->HasKey(CefString(key));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK dictionary_value_get_keys(struct _cef_dictionary_value_t* self,
 | 
			
		||||
                                           cef_string_list_t keys) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: keys; type: string_vec_byref
 | 
			
		||||
  DCHECK(keys);
 | 
			
		||||
  if (!keys) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Translate param: keys; type: string_vec_byref
 | 
			
		||||
  std::vector<CefString> keysList;
 | 
			
		||||
  transfer_string_list_contents(keys, keysList);
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDictionaryValueCppToC::Get(self)->GetKeys(keysList);
 | 
			
		||||
 | 
			
		||||
  // Restore param: keys; type: string_vec_byref
 | 
			
		||||
  cef_string_list_clear(keys);
 | 
			
		||||
  transfer_string_list_contents(keysList, keys);
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK dictionary_value_remove(struct _cef_dictionary_value_t* self,
 | 
			
		||||
                                         const cef_string_t* key) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: key; type: string_byref_const
 | 
			
		||||
  DCHECK(key);
 | 
			
		||||
  if (!key) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDictionaryValueCppToC::Get(self)->Remove(CefString(key));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_value_type_t CEF_CALLBACK
 | 
			
		||||
dictionary_value_get_type(struct _cef_dictionary_value_t* self,
 | 
			
		||||
                          const cef_string_t* key) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return VTYPE_INVALID;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: key; type: string_byref_const
 | 
			
		||||
  DCHECK(key);
 | 
			
		||||
  if (!key) {
 | 
			
		||||
    return VTYPE_INVALID;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  cef_value_type_t _retval =
 | 
			
		||||
      CefDictionaryValueCppToC::Get(self)->GetType(CefString(key));
 | 
			
		||||
 | 
			
		||||
  // Return type: simple
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_value_t* CEF_CALLBACK
 | 
			
		||||
dictionary_value_get_value(struct _cef_dictionary_value_t* self,
 | 
			
		||||
                           const cef_string_t* key) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: key; type: string_byref_const
 | 
			
		||||
  DCHECK(key);
 | 
			
		||||
  if (!key) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefValue> _retval =
 | 
			
		||||
      CefDictionaryValueCppToC::Get(self)->GetValue(CefString(key));
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefValueCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK dictionary_value_get_bool(struct _cef_dictionary_value_t* self,
 | 
			
		||||
                                           const cef_string_t* key) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: key; type: string_byref_const
 | 
			
		||||
  DCHECK(key);
 | 
			
		||||
  if (!key) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDictionaryValueCppToC::Get(self)->GetBool(CefString(key));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK dictionary_value_get_int(struct _cef_dictionary_value_t* self,
 | 
			
		||||
                                          const cef_string_t* key) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: key; type: string_byref_const
 | 
			
		||||
  DCHECK(key);
 | 
			
		||||
  if (!key) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  int _retval = CefDictionaryValueCppToC::Get(self)->GetInt(CefString(key));
 | 
			
		||||
 | 
			
		||||
  // Return type: simple
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
double CEF_CALLBACK
 | 
			
		||||
dictionary_value_get_double(struct _cef_dictionary_value_t* self,
 | 
			
		||||
                            const cef_string_t* key) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: key; type: string_byref_const
 | 
			
		||||
  DCHECK(key);
 | 
			
		||||
  if (!key) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  double _retval =
 | 
			
		||||
      CefDictionaryValueCppToC::Get(self)->GetDouble(CefString(key));
 | 
			
		||||
 | 
			
		||||
  // Return type: simple
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK
 | 
			
		||||
dictionary_value_get_string(struct _cef_dictionary_value_t* self,
 | 
			
		||||
                            const cef_string_t* key) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: key; type: string_byref_const
 | 
			
		||||
  DCHECK(key);
 | 
			
		||||
  if (!key) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval =
 | 
			
		||||
      CefDictionaryValueCppToC::Get(self)->GetString(CefString(key));
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_binary_value_t* CEF_CALLBACK
 | 
			
		||||
dictionary_value_get_binary(struct _cef_dictionary_value_t* self,
 | 
			
		||||
                            const cef_string_t* key) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: key; type: string_byref_const
 | 
			
		||||
  DCHECK(key);
 | 
			
		||||
  if (!key) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefBinaryValue> _retval =
 | 
			
		||||
      CefDictionaryValueCppToC::Get(self)->GetBinary(CefString(key));
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefBinaryValueCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_dictionary_value_t* CEF_CALLBACK
 | 
			
		||||
dictionary_value_get_dictionary(struct _cef_dictionary_value_t* self,
 | 
			
		||||
                                const cef_string_t* key) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: key; type: string_byref_const
 | 
			
		||||
  DCHECK(key);
 | 
			
		||||
  if (!key) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefDictionaryValue> _retval =
 | 
			
		||||
      CefDictionaryValueCppToC::Get(self)->GetDictionary(CefString(key));
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefDictionaryValueCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_list_value_t* CEF_CALLBACK
 | 
			
		||||
dictionary_value_get_list(struct _cef_dictionary_value_t* self,
 | 
			
		||||
                          const cef_string_t* key) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: key; type: string_byref_const
 | 
			
		||||
  DCHECK(key);
 | 
			
		||||
  if (!key) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefListValue> _retval =
 | 
			
		||||
      CefDictionaryValueCppToC::Get(self)->GetList(CefString(key));
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefListValueCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
dictionary_value_set_value(struct _cef_dictionary_value_t* self,
 | 
			
		||||
                           const cef_string_t* key,
 | 
			
		||||
                           cef_value_t* value) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: key; type: string_byref_const
 | 
			
		||||
  DCHECK(key);
 | 
			
		||||
  if (!key) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: value; type: refptr_same
 | 
			
		||||
  DCHECK(value);
 | 
			
		||||
  if (!value) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDictionaryValueCppToC::Get(self)->SetValue(
 | 
			
		||||
      CefString(key), CefValueCppToC::Unwrap(value));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK dictionary_value_set_null(struct _cef_dictionary_value_t* self,
 | 
			
		||||
                                           const cef_string_t* key) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: key; type: string_byref_const
 | 
			
		||||
  DCHECK(key);
 | 
			
		||||
  if (!key) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDictionaryValueCppToC::Get(self)->SetNull(CefString(key));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK dictionary_value_set_bool(struct _cef_dictionary_value_t* self,
 | 
			
		||||
                                           const cef_string_t* key,
 | 
			
		||||
                                           int value) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: key; type: string_byref_const
 | 
			
		||||
  DCHECK(key);
 | 
			
		||||
  if (!key) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDictionaryValueCppToC::Get(self)->SetBool(
 | 
			
		||||
      CefString(key), value ? true : false);
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK dictionary_value_set_int(struct _cef_dictionary_value_t* self,
 | 
			
		||||
                                          const cef_string_t* key,
 | 
			
		||||
                                          int value) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: key; type: string_byref_const
 | 
			
		||||
  DCHECK(key);
 | 
			
		||||
  if (!key) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval =
 | 
			
		||||
      CefDictionaryValueCppToC::Get(self)->SetInt(CefString(key), value);
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
dictionary_value_set_double(struct _cef_dictionary_value_t* self,
 | 
			
		||||
                            const cef_string_t* key,
 | 
			
		||||
                            double value) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: key; type: string_byref_const
 | 
			
		||||
  DCHECK(key);
 | 
			
		||||
  if (!key) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval =
 | 
			
		||||
      CefDictionaryValueCppToC::Get(self)->SetDouble(CefString(key), value);
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
dictionary_value_set_string(struct _cef_dictionary_value_t* self,
 | 
			
		||||
                            const cef_string_t* key,
 | 
			
		||||
                            const cef_string_t* value) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: key; type: string_byref_const
 | 
			
		||||
  DCHECK(key);
 | 
			
		||||
  if (!key) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Unverified params: value
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDictionaryValueCppToC::Get(self)->SetString(
 | 
			
		||||
      CefString(key), CefString(value));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
dictionary_value_set_binary(struct _cef_dictionary_value_t* self,
 | 
			
		||||
                            const cef_string_t* key,
 | 
			
		||||
                            cef_binary_value_t* value) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: key; type: string_byref_const
 | 
			
		||||
  DCHECK(key);
 | 
			
		||||
  if (!key) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: value; type: refptr_same
 | 
			
		||||
  DCHECK(value);
 | 
			
		||||
  if (!value) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDictionaryValueCppToC::Get(self)->SetBinary(
 | 
			
		||||
      CefString(key), CefBinaryValueCppToC::Unwrap(value));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
dictionary_value_set_dictionary(struct _cef_dictionary_value_t* self,
 | 
			
		||||
                                const cef_string_t* key,
 | 
			
		||||
                                struct _cef_dictionary_value_t* value) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: key; type: string_byref_const
 | 
			
		||||
  DCHECK(key);
 | 
			
		||||
  if (!key) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: value; type: refptr_same
 | 
			
		||||
  DCHECK(value);
 | 
			
		||||
  if (!value) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDictionaryValueCppToC::Get(self)->SetDictionary(
 | 
			
		||||
      CefString(key), CefDictionaryValueCppToC::Unwrap(value));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK dictionary_value_set_list(struct _cef_dictionary_value_t* self,
 | 
			
		||||
                                           const cef_string_t* key,
 | 
			
		||||
                                           struct _cef_list_value_t* value) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: key; type: string_byref_const
 | 
			
		||||
  DCHECK(key);
 | 
			
		||||
  if (!key) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: value; type: refptr_same
 | 
			
		||||
  DCHECK(value);
 | 
			
		||||
  if (!value) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDictionaryValueCppToC::Get(self)->SetList(
 | 
			
		||||
      CefString(key), CefListValueCppToC::Unwrap(value));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefDictionaryValueCppToC::CefDictionaryValueCppToC() {
 | 
			
		||||
  GetStruct()->is_valid = dictionary_value_is_valid;
 | 
			
		||||
  GetStruct()->is_owned = dictionary_value_is_owned;
 | 
			
		||||
  GetStruct()->is_read_only = dictionary_value_is_read_only;
 | 
			
		||||
  GetStruct()->is_same = dictionary_value_is_same;
 | 
			
		||||
  GetStruct()->is_equal = dictionary_value_is_equal;
 | 
			
		||||
  GetStruct()->copy = dictionary_value_copy;
 | 
			
		||||
  GetStruct()->get_size = dictionary_value_get_size;
 | 
			
		||||
  GetStruct()->clear = dictionary_value_clear;
 | 
			
		||||
  GetStruct()->has_key = dictionary_value_has_key;
 | 
			
		||||
  GetStruct()->get_keys = dictionary_value_get_keys;
 | 
			
		||||
  GetStruct()->remove = dictionary_value_remove;
 | 
			
		||||
  GetStruct()->get_type = dictionary_value_get_type;
 | 
			
		||||
  GetStruct()->get_value = dictionary_value_get_value;
 | 
			
		||||
  GetStruct()->get_bool = dictionary_value_get_bool;
 | 
			
		||||
  GetStruct()->get_int = dictionary_value_get_int;
 | 
			
		||||
  GetStruct()->get_double = dictionary_value_get_double;
 | 
			
		||||
  GetStruct()->get_string = dictionary_value_get_string;
 | 
			
		||||
  GetStruct()->get_binary = dictionary_value_get_binary;
 | 
			
		||||
  GetStruct()->get_dictionary = dictionary_value_get_dictionary;
 | 
			
		||||
  GetStruct()->get_list = dictionary_value_get_list;
 | 
			
		||||
  GetStruct()->set_value = dictionary_value_set_value;
 | 
			
		||||
  GetStruct()->set_null = dictionary_value_set_null;
 | 
			
		||||
  GetStruct()->set_bool = dictionary_value_set_bool;
 | 
			
		||||
  GetStruct()->set_int = dictionary_value_set_int;
 | 
			
		||||
  GetStruct()->set_double = dictionary_value_set_double;
 | 
			
		||||
  GetStruct()->set_string = dictionary_value_set_string;
 | 
			
		||||
  GetStruct()->set_binary = dictionary_value_set_binary;
 | 
			
		||||
  GetStruct()->set_dictionary = dictionary_value_set_dictionary;
 | 
			
		||||
  GetStruct()->set_list = dictionary_value_set_list;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefDictionaryValueCppToC::~CefDictionaryValueCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefDictionaryValue> CefCppToCRefCounted<
 | 
			
		||||
    CefDictionaryValueCppToC,
 | 
			
		||||
    CefDictionaryValue,
 | 
			
		||||
    cef_dictionary_value_t>::UnwrapDerived(CefWrapperType type,
 | 
			
		||||
                                           cef_dictionary_value_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefDictionaryValueCppToC,
 | 
			
		||||
                                   CefDictionaryValue,
 | 
			
		||||
                                   cef_dictionary_value_t>::kWrapperType =
 | 
			
		||||
    WT_DICTIONARY_VALUE;
 | 
			
		||||
@@ -1,38 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=21b84eabe9724ce9a5a88b8bef7044b83254baa9$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_DICTIONARY_VALUE_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_DICTIONARY_VALUE_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(BUILDING_CEF_SHARED)
 | 
			
		||||
#error This file can be included DLL-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_values_capi.h"
 | 
			
		||||
#include "include/cef_values.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed DLL-side only.
 | 
			
		||||
class CefDictionaryValueCppToC
 | 
			
		||||
    : public CefCppToCRefCounted<CefDictionaryValueCppToC,
 | 
			
		||||
                                 CefDictionaryValue,
 | 
			
		||||
                                 cef_dictionary_value_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefDictionaryValueCppToC();
 | 
			
		||||
  virtual ~CefDictionaryValueCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_DICTIONARY_VALUE_CPPTOC_H_
 | 
			
		||||
@@ -1,379 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=eca79cd972c29f1615ddbecf0e0689ff6609da66$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/display_handler_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/ctocpp/browser_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/ctocpp/frame_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
#include "libcef_dll/transfer_util.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
display_handler_on_address_change(struct _cef_display_handler_t* self,
 | 
			
		||||
                                  cef_browser_t* browser,
 | 
			
		||||
                                  struct _cef_frame_t* frame,
 | 
			
		||||
                                  const cef_string_t* url) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: frame; type: refptr_diff
 | 
			
		||||
  DCHECK(frame);
 | 
			
		||||
  if (!frame) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: url; type: string_byref_const
 | 
			
		||||
  DCHECK(url);
 | 
			
		||||
  if (!url) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefDisplayHandlerCppToC::Get(self)->OnAddressChange(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), CefFrameCToCpp::Wrap(frame),
 | 
			
		||||
      CefString(url));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
display_handler_on_title_change(struct _cef_display_handler_t* self,
 | 
			
		||||
                                cef_browser_t* browser,
 | 
			
		||||
                                const cef_string_t* title) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Unverified params: title
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefDisplayHandlerCppToC::Get(self)->OnTitleChange(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), CefString(title));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
display_handler_on_favicon_urlchange(struct _cef_display_handler_t* self,
 | 
			
		||||
                                     cef_browser_t* browser,
 | 
			
		||||
                                     cef_string_list_t icon_urls) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Unverified params: icon_urls
 | 
			
		||||
 | 
			
		||||
  // Translate param: icon_urls; type: string_vec_byref_const
 | 
			
		||||
  std::vector<CefString> icon_urlsList;
 | 
			
		||||
  transfer_string_list_contents(icon_urls, icon_urlsList);
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefDisplayHandlerCppToC::Get(self)->OnFaviconURLChange(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), icon_urlsList);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
display_handler_on_fullscreen_mode_change(struct _cef_display_handler_t* self,
 | 
			
		||||
                                          cef_browser_t* browser,
 | 
			
		||||
                                          int fullscreen) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefDisplayHandlerCppToC::Get(self)->OnFullscreenModeChange(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), fullscreen ? true : false);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK display_handler_on_tooltip(struct _cef_display_handler_t* self,
 | 
			
		||||
                                            cef_browser_t* browser,
 | 
			
		||||
                                            cef_string_t* text) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Unverified params: text
 | 
			
		||||
 | 
			
		||||
  // Translate param: text; type: string_byref
 | 
			
		||||
  CefString textStr(text);
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDisplayHandlerCppToC::Get(self)->OnTooltip(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), textStr);
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
display_handler_on_status_message(struct _cef_display_handler_t* self,
 | 
			
		||||
                                  cef_browser_t* browser,
 | 
			
		||||
                                  const cef_string_t* value) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Unverified params: value
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefDisplayHandlerCppToC::Get(self)->OnStatusMessage(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), CefString(value));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
display_handler_on_console_message(struct _cef_display_handler_t* self,
 | 
			
		||||
                                   cef_browser_t* browser,
 | 
			
		||||
                                   cef_log_severity_t level,
 | 
			
		||||
                                   const cef_string_t* message,
 | 
			
		||||
                                   const cef_string_t* source,
 | 
			
		||||
                                   int line) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Unverified params: message, source
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDisplayHandlerCppToC::Get(self)->OnConsoleMessage(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), level, CefString(message),
 | 
			
		||||
      CefString(source), line);
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
display_handler_on_auto_resize(struct _cef_display_handler_t* self,
 | 
			
		||||
                               cef_browser_t* browser,
 | 
			
		||||
                               const cef_size_t* new_size) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: new_size; type: simple_byref_const
 | 
			
		||||
  DCHECK(new_size);
 | 
			
		||||
  if (!new_size) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Translate param: new_size; type: simple_byref_const
 | 
			
		||||
  CefSize new_sizeVal = new_size ? *new_size : CefSize();
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDisplayHandlerCppToC::Get(self)->OnAutoResize(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), new_sizeVal);
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
display_handler_on_loading_progress_change(struct _cef_display_handler_t* self,
 | 
			
		||||
                                           cef_browser_t* browser,
 | 
			
		||||
                                           double progress) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefDisplayHandlerCppToC::Get(self)->OnLoadingProgressChange(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), progress);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
display_handler_on_cursor_change(struct _cef_display_handler_t* self,
 | 
			
		||||
                                 cef_browser_t* browser,
 | 
			
		||||
                                 cef_cursor_handle_t cursor,
 | 
			
		||||
                                 cef_cursor_type_t type,
 | 
			
		||||
                                 const cef_cursor_info_t* custom_cursor_info) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: custom_cursor_info; type: simple_byref_const
 | 
			
		||||
  DCHECK(custom_cursor_info);
 | 
			
		||||
  if (!custom_cursor_info) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Translate param: custom_cursor_info; type: simple_byref_const
 | 
			
		||||
  CefCursorInfo custom_cursor_infoVal =
 | 
			
		||||
      custom_cursor_info ? *custom_cursor_info : CefCursorInfo();
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDisplayHandlerCppToC::Get(self)->OnCursorChange(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), cursor, type, custom_cursor_infoVal);
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
display_handler_on_media_access_change(struct _cef_display_handler_t* self,
 | 
			
		||||
                                       cef_browser_t* browser,
 | 
			
		||||
                                       int has_video_access,
 | 
			
		||||
                                       int has_audio_access) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefDisplayHandlerCppToC::Get(self)->OnMediaAccessChange(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), has_video_access ? true : false,
 | 
			
		||||
      has_audio_access ? true : false);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefDisplayHandlerCppToC::CefDisplayHandlerCppToC() {
 | 
			
		||||
  GetStruct()->on_address_change = display_handler_on_address_change;
 | 
			
		||||
  GetStruct()->on_title_change = display_handler_on_title_change;
 | 
			
		||||
  GetStruct()->on_favicon_urlchange = display_handler_on_favicon_urlchange;
 | 
			
		||||
  GetStruct()->on_fullscreen_mode_change =
 | 
			
		||||
      display_handler_on_fullscreen_mode_change;
 | 
			
		||||
  GetStruct()->on_tooltip = display_handler_on_tooltip;
 | 
			
		||||
  GetStruct()->on_status_message = display_handler_on_status_message;
 | 
			
		||||
  GetStruct()->on_console_message = display_handler_on_console_message;
 | 
			
		||||
  GetStruct()->on_auto_resize = display_handler_on_auto_resize;
 | 
			
		||||
  GetStruct()->on_loading_progress_change =
 | 
			
		||||
      display_handler_on_loading_progress_change;
 | 
			
		||||
  GetStruct()->on_cursor_change = display_handler_on_cursor_change;
 | 
			
		||||
  GetStruct()->on_media_access_change = display_handler_on_media_access_change;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefDisplayHandlerCppToC::~CefDisplayHandlerCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefDisplayHandler> CefCppToCRefCounted<
 | 
			
		||||
    CefDisplayHandlerCppToC,
 | 
			
		||||
    CefDisplayHandler,
 | 
			
		||||
    cef_display_handler_t>::UnwrapDerived(CefWrapperType type,
 | 
			
		||||
                                          cef_display_handler_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefDisplayHandlerCppToC,
 | 
			
		||||
                                   CefDisplayHandler,
 | 
			
		||||
                                   cef_display_handler_t>::kWrapperType =
 | 
			
		||||
    WT_DISPLAY_HANDLER;
 | 
			
		||||
@@ -1,38 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=7898edd74cb7e651635f1d21c23691c51f487be1$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_DISPLAY_HANDLER_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_DISPLAY_HANDLER_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(WRAPPING_CEF_SHARED)
 | 
			
		||||
#error This file can be included wrapper-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_display_handler_capi.h"
 | 
			
		||||
#include "include/cef_display_handler.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed wrapper-side only.
 | 
			
		||||
class CefDisplayHandlerCppToC
 | 
			
		||||
    : public CefCppToCRefCounted<CefDisplayHandlerCppToC,
 | 
			
		||||
                                 CefDisplayHandler,
 | 
			
		||||
                                 cef_display_handler_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefDisplayHandlerCppToC();
 | 
			
		||||
  virtual ~CefDisplayHandlerCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_DISPLAY_HANDLER_CPPTOC_H_
 | 
			
		||||
@@ -1,331 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=386898a039618f08058606af686341850b6e7bd0$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/domdocument_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/domnode_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
cef_dom_document_type_t CEF_CALLBACK
 | 
			
		||||
domdocument_get_type(struct _cef_domdocument_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return DOM_DOCUMENT_TYPE_UNKNOWN;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  cef_dom_document_type_t _retval = CefDOMDocumentCppToC::Get(self)->GetType();
 | 
			
		||||
 | 
			
		||||
  // Return type: simple
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_domnode_t* CEF_CALLBACK
 | 
			
		||||
domdocument_get_document(struct _cef_domdocument_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefDOMNode> _retval =
 | 
			
		||||
      CefDOMDocumentCppToC::Get(self)->GetDocument();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefDOMNodeCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_domnode_t* CEF_CALLBACK
 | 
			
		||||
domdocument_get_body(struct _cef_domdocument_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefDOMNode> _retval = CefDOMDocumentCppToC::Get(self)->GetBody();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefDOMNodeCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_domnode_t* CEF_CALLBACK
 | 
			
		||||
domdocument_get_head(struct _cef_domdocument_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefDOMNode> _retval = CefDOMDocumentCppToC::Get(self)->GetHead();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefDOMNodeCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK
 | 
			
		||||
domdocument_get_title(struct _cef_domdocument_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval = CefDOMDocumentCppToC::Get(self)->GetTitle();
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_domnode_t* CEF_CALLBACK
 | 
			
		||||
domdocument_get_element_by_id(struct _cef_domdocument_t* self,
 | 
			
		||||
                              const cef_string_t* id) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: id; type: string_byref_const
 | 
			
		||||
  DCHECK(id);
 | 
			
		||||
  if (!id) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefDOMNode> _retval =
 | 
			
		||||
      CefDOMDocumentCppToC::Get(self)->GetElementById(CefString(id));
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefDOMNodeCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_domnode_t* CEF_CALLBACK
 | 
			
		||||
domdocument_get_focused_node(struct _cef_domdocument_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefDOMNode> _retval =
 | 
			
		||||
      CefDOMDocumentCppToC::Get(self)->GetFocusedNode();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefDOMNodeCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK domdocument_has_selection(struct _cef_domdocument_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDOMDocumentCppToC::Get(self)->HasSelection();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
domdocument_get_selection_start_offset(struct _cef_domdocument_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  int _retval = CefDOMDocumentCppToC::Get(self)->GetSelectionStartOffset();
 | 
			
		||||
 | 
			
		||||
  // Return type: simple
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
domdocument_get_selection_end_offset(struct _cef_domdocument_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  int _retval = CefDOMDocumentCppToC::Get(self)->GetSelectionEndOffset();
 | 
			
		||||
 | 
			
		||||
  // Return type: simple
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK
 | 
			
		||||
domdocument_get_selection_as_markup(struct _cef_domdocument_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval = CefDOMDocumentCppToC::Get(self)->GetSelectionAsMarkup();
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK
 | 
			
		||||
domdocument_get_selection_as_text(struct _cef_domdocument_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval = CefDOMDocumentCppToC::Get(self)->GetSelectionAsText();
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK
 | 
			
		||||
domdocument_get_base_url(struct _cef_domdocument_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval = CefDOMDocumentCppToC::Get(self)->GetBaseURL();
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK
 | 
			
		||||
domdocument_get_complete_url(struct _cef_domdocument_t* self,
 | 
			
		||||
                             const cef_string_t* partialURL) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: partialURL; type: string_byref_const
 | 
			
		||||
  DCHECK(partialURL);
 | 
			
		||||
  if (!partialURL) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval =
 | 
			
		||||
      CefDOMDocumentCppToC::Get(self)->GetCompleteURL(CefString(partialURL));
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefDOMDocumentCppToC::CefDOMDocumentCppToC() {
 | 
			
		||||
  GetStruct()->get_type = domdocument_get_type;
 | 
			
		||||
  GetStruct()->get_document = domdocument_get_document;
 | 
			
		||||
  GetStruct()->get_body = domdocument_get_body;
 | 
			
		||||
  GetStruct()->get_head = domdocument_get_head;
 | 
			
		||||
  GetStruct()->get_title = domdocument_get_title;
 | 
			
		||||
  GetStruct()->get_element_by_id = domdocument_get_element_by_id;
 | 
			
		||||
  GetStruct()->get_focused_node = domdocument_get_focused_node;
 | 
			
		||||
  GetStruct()->has_selection = domdocument_has_selection;
 | 
			
		||||
  GetStruct()->get_selection_start_offset =
 | 
			
		||||
      domdocument_get_selection_start_offset;
 | 
			
		||||
  GetStruct()->get_selection_end_offset = domdocument_get_selection_end_offset;
 | 
			
		||||
  GetStruct()->get_selection_as_markup = domdocument_get_selection_as_markup;
 | 
			
		||||
  GetStruct()->get_selection_as_text = domdocument_get_selection_as_text;
 | 
			
		||||
  GetStruct()->get_base_url = domdocument_get_base_url;
 | 
			
		||||
  GetStruct()->get_complete_url = domdocument_get_complete_url;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefDOMDocumentCppToC::~CefDOMDocumentCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefDOMDocument>
 | 
			
		||||
CefCppToCRefCounted<CefDOMDocumentCppToC, CefDOMDocument, cef_domdocument_t>::
 | 
			
		||||
    UnwrapDerived(CefWrapperType type, cef_domdocument_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefDOMDocumentCppToC,
 | 
			
		||||
                                   CefDOMDocument,
 | 
			
		||||
                                   cef_domdocument_t>::kWrapperType =
 | 
			
		||||
    WT_DOMDOCUMENT;
 | 
			
		||||
@@ -1,37 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=fffbd23b71b8c0d8cc38a6968cb5833ac26d4499$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_DOMDOCUMENT_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_DOMDOCUMENT_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(BUILDING_CEF_SHARED)
 | 
			
		||||
#error This file can be included DLL-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_dom_capi.h"
 | 
			
		||||
#include "include/cef_dom.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed DLL-side only.
 | 
			
		||||
class CefDOMDocumentCppToC : public CefCppToCRefCounted<CefDOMDocumentCppToC,
 | 
			
		||||
                                                        CefDOMDocument,
 | 
			
		||||
                                                        cef_domdocument_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefDOMDocumentCppToC();
 | 
			
		||||
  virtual ~CefDOMDocumentCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_DOMDOCUMENT_CPPTOC_H_
 | 
			
		||||
@@ -1,587 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=608e3e6b4dd3aae0953c7a112276cfa0ddf1646d$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/domnode_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/domdocument_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
#include "libcef_dll/transfer_util.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
cef_dom_node_type_t CEF_CALLBACK domnode_get_type(struct _cef_domnode_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return DOM_NODE_TYPE_UNSUPPORTED;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  cef_dom_node_type_t _retval = CefDOMNodeCppToC::Get(self)->GetType();
 | 
			
		||||
 | 
			
		||||
  // Return type: simple
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK domnode_is_text(struct _cef_domnode_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDOMNodeCppToC::Get(self)->IsText();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK domnode_is_element(struct _cef_domnode_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDOMNodeCppToC::Get(self)->IsElement();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK domnode_is_editable(struct _cef_domnode_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDOMNodeCppToC::Get(self)->IsEditable();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK domnode_is_form_control_element(struct _cef_domnode_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return DOM_NODE_TYPE_UNSUPPORTED;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDOMNodeCppToC::Get(self)->IsFormControlElement();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_dom_form_control_type_t CEF_CALLBACK
 | 
			
		||||
domnode_get_form_control_element_type(struct _cef_domnode_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return DOM_FORM_CONTROL_TYPE_UNSUPPORTED;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  cef_dom_form_control_type_t _retval =
 | 
			
		||||
      CefDOMNodeCppToC::Get(self)->GetFormControlElementType();
 | 
			
		||||
 | 
			
		||||
  // Return type: simple
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK domnode_is_same(struct _cef_domnode_t* self,
 | 
			
		||||
                                 struct _cef_domnode_t* that) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: that; type: refptr_same
 | 
			
		||||
  DCHECK(that);
 | 
			
		||||
  if (!that) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval =
 | 
			
		||||
      CefDOMNodeCppToC::Get(self)->IsSame(CefDOMNodeCppToC::Unwrap(that));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK
 | 
			
		||||
domnode_get_name(struct _cef_domnode_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval = CefDOMNodeCppToC::Get(self)->GetName();
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK
 | 
			
		||||
domnode_get_value(struct _cef_domnode_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval = CefDOMNodeCppToC::Get(self)->GetValue();
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK domnode_set_value(struct _cef_domnode_t* self,
 | 
			
		||||
                                   const cef_string_t* value) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: value; type: string_byref_const
 | 
			
		||||
  DCHECK(value);
 | 
			
		||||
  if (!value) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDOMNodeCppToC::Get(self)->SetValue(CefString(value));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK
 | 
			
		||||
domnode_get_as_markup(struct _cef_domnode_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval = CefDOMNodeCppToC::Get(self)->GetAsMarkup();
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_domdocument_t* CEF_CALLBACK
 | 
			
		||||
domnode_get_document(struct _cef_domnode_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefDOMDocument> _retval =
 | 
			
		||||
      CefDOMNodeCppToC::Get(self)->GetDocument();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefDOMDocumentCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_domnode_t* CEF_CALLBACK
 | 
			
		||||
domnode_get_parent(struct _cef_domnode_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefDOMNode> _retval = CefDOMNodeCppToC::Get(self)->GetParent();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefDOMNodeCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_domnode_t* CEF_CALLBACK
 | 
			
		||||
domnode_get_previous_sibling(struct _cef_domnode_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefDOMNode> _retval =
 | 
			
		||||
      CefDOMNodeCppToC::Get(self)->GetPreviousSibling();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefDOMNodeCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_domnode_t* CEF_CALLBACK
 | 
			
		||||
domnode_get_next_sibling(struct _cef_domnode_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefDOMNode> _retval = CefDOMNodeCppToC::Get(self)->GetNextSibling();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefDOMNodeCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK domnode_has_children(struct _cef_domnode_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDOMNodeCppToC::Get(self)->HasChildren();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_domnode_t* CEF_CALLBACK
 | 
			
		||||
domnode_get_first_child(struct _cef_domnode_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefDOMNode> _retval = CefDOMNodeCppToC::Get(self)->GetFirstChild();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefDOMNodeCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_domnode_t* CEF_CALLBACK
 | 
			
		||||
domnode_get_last_child(struct _cef_domnode_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefDOMNode> _retval = CefDOMNodeCppToC::Get(self)->GetLastChild();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefDOMNodeCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK
 | 
			
		||||
domnode_get_element_tag_name(struct _cef_domnode_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval = CefDOMNodeCppToC::Get(self)->GetElementTagName();
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK domnode_has_element_attributes(struct _cef_domnode_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDOMNodeCppToC::Get(self)->HasElementAttributes();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK domnode_has_element_attribute(struct _cef_domnode_t* self,
 | 
			
		||||
                                               const cef_string_t* attrName) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: attrName; type: string_byref_const
 | 
			
		||||
  DCHECK(attrName);
 | 
			
		||||
  if (!attrName) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval =
 | 
			
		||||
      CefDOMNodeCppToC::Get(self)->HasElementAttribute(CefString(attrName));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK
 | 
			
		||||
domnode_get_element_attribute(struct _cef_domnode_t* self,
 | 
			
		||||
                              const cef_string_t* attrName) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: attrName; type: string_byref_const
 | 
			
		||||
  DCHECK(attrName);
 | 
			
		||||
  if (!attrName) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval =
 | 
			
		||||
      CefDOMNodeCppToC::Get(self)->GetElementAttribute(CefString(attrName));
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK domnode_get_element_attributes(struct _cef_domnode_t* self,
 | 
			
		||||
                                                 cef_string_map_t attrMap) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: attrMap; type: string_map_single_byref
 | 
			
		||||
  DCHECK(attrMap);
 | 
			
		||||
  if (!attrMap) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Translate param: attrMap; type: string_map_single_byref
 | 
			
		||||
  std::map<CefString, CefString> attrMapMap;
 | 
			
		||||
  transfer_string_map_contents(attrMap, attrMapMap);
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefDOMNodeCppToC::Get(self)->GetElementAttributes(attrMapMap);
 | 
			
		||||
 | 
			
		||||
  // Restore param: attrMap; type: string_map_single_byref
 | 
			
		||||
  cef_string_map_clear(attrMap);
 | 
			
		||||
  transfer_string_map_contents(attrMapMap, attrMap);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK domnode_set_element_attribute(struct _cef_domnode_t* self,
 | 
			
		||||
                                               const cef_string_t* attrName,
 | 
			
		||||
                                               const cef_string_t* value) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: attrName; type: string_byref_const
 | 
			
		||||
  DCHECK(attrName);
 | 
			
		||||
  if (!attrName) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: value; type: string_byref_const
 | 
			
		||||
  DCHECK(value);
 | 
			
		||||
  if (!value) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDOMNodeCppToC::Get(self)->SetElementAttribute(
 | 
			
		||||
      CefString(attrName), CefString(value));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK
 | 
			
		||||
domnode_get_element_inner_text(struct _cef_domnode_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval = CefDOMNodeCppToC::Get(self)->GetElementInnerText();
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_rect_t CEF_CALLBACK
 | 
			
		||||
domnode_get_element_bounds(struct _cef_domnode_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return CefRect();
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  cef_rect_t _retval = CefDOMNodeCppToC::Get(self)->GetElementBounds();
 | 
			
		||||
 | 
			
		||||
  // Return type: simple
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefDOMNodeCppToC::CefDOMNodeCppToC() {
 | 
			
		||||
  GetStruct()->get_type = domnode_get_type;
 | 
			
		||||
  GetStruct()->is_text = domnode_is_text;
 | 
			
		||||
  GetStruct()->is_element = domnode_is_element;
 | 
			
		||||
  GetStruct()->is_editable = domnode_is_editable;
 | 
			
		||||
  GetStruct()->is_form_control_element = domnode_is_form_control_element;
 | 
			
		||||
  GetStruct()->get_form_control_element_type =
 | 
			
		||||
      domnode_get_form_control_element_type;
 | 
			
		||||
  GetStruct()->is_same = domnode_is_same;
 | 
			
		||||
  GetStruct()->get_name = domnode_get_name;
 | 
			
		||||
  GetStruct()->get_value = domnode_get_value;
 | 
			
		||||
  GetStruct()->set_value = domnode_set_value;
 | 
			
		||||
  GetStruct()->get_as_markup = domnode_get_as_markup;
 | 
			
		||||
  GetStruct()->get_document = domnode_get_document;
 | 
			
		||||
  GetStruct()->get_parent = domnode_get_parent;
 | 
			
		||||
  GetStruct()->get_previous_sibling = domnode_get_previous_sibling;
 | 
			
		||||
  GetStruct()->get_next_sibling = domnode_get_next_sibling;
 | 
			
		||||
  GetStruct()->has_children = domnode_has_children;
 | 
			
		||||
  GetStruct()->get_first_child = domnode_get_first_child;
 | 
			
		||||
  GetStruct()->get_last_child = domnode_get_last_child;
 | 
			
		||||
  GetStruct()->get_element_tag_name = domnode_get_element_tag_name;
 | 
			
		||||
  GetStruct()->has_element_attributes = domnode_has_element_attributes;
 | 
			
		||||
  GetStruct()->has_element_attribute = domnode_has_element_attribute;
 | 
			
		||||
  GetStruct()->get_element_attribute = domnode_get_element_attribute;
 | 
			
		||||
  GetStruct()->get_element_attributes = domnode_get_element_attributes;
 | 
			
		||||
  GetStruct()->set_element_attribute = domnode_set_element_attribute;
 | 
			
		||||
  GetStruct()->get_element_inner_text = domnode_get_element_inner_text;
 | 
			
		||||
  GetStruct()->get_element_bounds = domnode_get_element_bounds;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefDOMNodeCppToC::~CefDOMNodeCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefDOMNode>
 | 
			
		||||
CefCppToCRefCounted<CefDOMNodeCppToC, CefDOMNode, cef_domnode_t>::UnwrapDerived(
 | 
			
		||||
    CefWrapperType type,
 | 
			
		||||
    cef_domnode_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefDOMNodeCppToC,
 | 
			
		||||
                                   CefDOMNode,
 | 
			
		||||
                                   cef_domnode_t>::kWrapperType = WT_DOMNODE;
 | 
			
		||||
@@ -1,36 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=b35d85f2b8bbab6bf6f99401444335c6a427fda0$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_DOMNODE_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_DOMNODE_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(BUILDING_CEF_SHARED)
 | 
			
		||||
#error This file can be included DLL-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_dom_capi.h"
 | 
			
		||||
#include "include/cef_dom.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed DLL-side only.
 | 
			
		||||
class CefDOMNodeCppToC
 | 
			
		||||
    : public CefCppToCRefCounted<CefDOMNodeCppToC, CefDOMNode, cef_domnode_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefDOMNodeCppToC();
 | 
			
		||||
  virtual ~CefDOMNodeCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_DOMNODE_CPPTOC_H_
 | 
			
		||||
@@ -1,70 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=d9d0689947b6b9b85f65188ffeff60212563a2da$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/domvisitor_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/ctocpp/domdocument_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK domvisitor_visit(struct _cef_domvisitor_t* self,
 | 
			
		||||
                                   struct _cef_domdocument_t* document) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: document; type: refptr_diff
 | 
			
		||||
  DCHECK(document);
 | 
			
		||||
  if (!document) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefDOMVisitorCppToC::Get(self)->Visit(CefDOMDocumentCToCpp::Wrap(document));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefDOMVisitorCppToC::CefDOMVisitorCppToC() {
 | 
			
		||||
  GetStruct()->visit = domvisitor_visit;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefDOMVisitorCppToC::~CefDOMVisitorCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefDOMVisitor>
 | 
			
		||||
CefCppToCRefCounted<CefDOMVisitorCppToC, CefDOMVisitor, cef_domvisitor_t>::
 | 
			
		||||
    UnwrapDerived(CefWrapperType type, cef_domvisitor_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefDOMVisitorCppToC,
 | 
			
		||||
                                   CefDOMVisitor,
 | 
			
		||||
                                   cef_domvisitor_t>::kWrapperType =
 | 
			
		||||
    WT_DOMVISITOR;
 | 
			
		||||
@@ -1,37 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=557ec8ba69f8f58e0eb87bffe750a27444439520$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_DOMVISITOR_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_DOMVISITOR_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(WRAPPING_CEF_SHARED)
 | 
			
		||||
#error This file can be included wrapper-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_dom_capi.h"
 | 
			
		||||
#include "include/cef_dom.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed wrapper-side only.
 | 
			
		||||
class CefDOMVisitorCppToC : public CefCppToCRefCounted<CefDOMVisitorCppToC,
 | 
			
		||||
                                                       CefDOMVisitor,
 | 
			
		||||
                                                       cef_domvisitor_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefDOMVisitorCppToC();
 | 
			
		||||
  virtual ~CefDOMVisitorCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_DOMVISITOR_CPPTOC_H_
 | 
			
		||||
@@ -1,176 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=f310399ebf0026717b1d733a34dd51b90623c452$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/download_handler_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/ctocpp/before_download_callback_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/ctocpp/browser_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/ctocpp/download_item_callback_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/ctocpp/download_item_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
download_handler_can_download(struct _cef_download_handler_t* self,
 | 
			
		||||
                              cef_browser_t* browser,
 | 
			
		||||
                              const cef_string_t* url,
 | 
			
		||||
                              const cef_string_t* request_method) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: url; type: string_byref_const
 | 
			
		||||
  DCHECK(url);
 | 
			
		||||
  if (!url) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: request_method; type: string_byref_const
 | 
			
		||||
  DCHECK(request_method);
 | 
			
		||||
  if (!request_method) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDownloadHandlerCppToC::Get(self)->CanDownload(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), CefString(url),
 | 
			
		||||
      CefString(request_method));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
download_handler_on_before_download(struct _cef_download_handler_t* self,
 | 
			
		||||
                                    cef_browser_t* browser,
 | 
			
		||||
                                    struct _cef_download_item_t* download_item,
 | 
			
		||||
                                    const cef_string_t* suggested_name,
 | 
			
		||||
                                    cef_before_download_callback_t* callback) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: download_item; type: refptr_diff
 | 
			
		||||
  DCHECK(download_item);
 | 
			
		||||
  if (!download_item) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: suggested_name; type: string_byref_const
 | 
			
		||||
  DCHECK(suggested_name);
 | 
			
		||||
  if (!suggested_name) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: callback; type: refptr_diff
 | 
			
		||||
  DCHECK(callback);
 | 
			
		||||
  if (!callback) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDownloadHandlerCppToC::Get(self)->OnBeforeDownload(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser),
 | 
			
		||||
      CefDownloadItemCToCpp::Wrap(download_item), CefString(suggested_name),
 | 
			
		||||
      CefBeforeDownloadCallbackCToCpp::Wrap(callback));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
download_handler_on_download_updated(struct _cef_download_handler_t* self,
 | 
			
		||||
                                     cef_browser_t* browser,
 | 
			
		||||
                                     struct _cef_download_item_t* download_item,
 | 
			
		||||
                                     cef_download_item_callback_t* callback) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: download_item; type: refptr_diff
 | 
			
		||||
  DCHECK(download_item);
 | 
			
		||||
  if (!download_item) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: callback; type: refptr_diff
 | 
			
		||||
  DCHECK(callback);
 | 
			
		||||
  if (!callback) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefDownloadHandlerCppToC::Get(self)->OnDownloadUpdated(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser),
 | 
			
		||||
      CefDownloadItemCToCpp::Wrap(download_item),
 | 
			
		||||
      CefDownloadItemCallbackCToCpp::Wrap(callback));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefDownloadHandlerCppToC::CefDownloadHandlerCppToC() {
 | 
			
		||||
  GetStruct()->can_download = download_handler_can_download;
 | 
			
		||||
  GetStruct()->on_before_download = download_handler_on_before_download;
 | 
			
		||||
  GetStruct()->on_download_updated = download_handler_on_download_updated;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefDownloadHandlerCppToC::~CefDownloadHandlerCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefDownloadHandler> CefCppToCRefCounted<
 | 
			
		||||
    CefDownloadHandlerCppToC,
 | 
			
		||||
    CefDownloadHandler,
 | 
			
		||||
    cef_download_handler_t>::UnwrapDerived(CefWrapperType type,
 | 
			
		||||
                                           cef_download_handler_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefDownloadHandlerCppToC,
 | 
			
		||||
                                   CefDownloadHandler,
 | 
			
		||||
                                   cef_download_handler_t>::kWrapperType =
 | 
			
		||||
    WT_DOWNLOAD_HANDLER;
 | 
			
		||||
@@ -1,38 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=609d9d0d61198eca50e23703f17366dc1aded94d$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_DOWNLOAD_HANDLER_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_DOWNLOAD_HANDLER_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(WRAPPING_CEF_SHARED)
 | 
			
		||||
#error This file can be included wrapper-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_download_handler_capi.h"
 | 
			
		||||
#include "include/cef_download_handler.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed wrapper-side only.
 | 
			
		||||
class CefDownloadHandlerCppToC
 | 
			
		||||
    : public CefCppToCRefCounted<CefDownloadHandlerCppToC,
 | 
			
		||||
                                 CefDownloadHandler,
 | 
			
		||||
                                 cef_download_handler_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefDownloadHandlerCppToC();
 | 
			
		||||
  virtual ~CefDownloadHandlerCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_DOWNLOAD_HANDLER_CPPTOC_H_
 | 
			
		||||
@@ -1,80 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=2fc7e28909287ddaf20efa9f3ded39c65d3ff8be$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/download_image_callback_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/ctocpp/image_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK download_image_callback_on_download_image_finished(
 | 
			
		||||
    struct _cef_download_image_callback_t* self,
 | 
			
		||||
    const cef_string_t* image_url,
 | 
			
		||||
    int http_status_code,
 | 
			
		||||
    struct _cef_image_t* image) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: image_url; type: string_byref_const
 | 
			
		||||
  DCHECK(image_url);
 | 
			
		||||
  if (!image_url) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Unverified params: image
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefDownloadImageCallbackCppToC::Get(self)->OnDownloadImageFinished(
 | 
			
		||||
      CefString(image_url), http_status_code, CefImageCToCpp::Wrap(image));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefDownloadImageCallbackCppToC::CefDownloadImageCallbackCppToC() {
 | 
			
		||||
  GetStruct()->on_download_image_finished =
 | 
			
		||||
      download_image_callback_on_download_image_finished;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefDownloadImageCallbackCppToC::~CefDownloadImageCallbackCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefDownloadImageCallback> CefCppToCRefCounted<
 | 
			
		||||
    CefDownloadImageCallbackCppToC,
 | 
			
		||||
    CefDownloadImageCallback,
 | 
			
		||||
    cef_download_image_callback_t>::UnwrapDerived(CefWrapperType type,
 | 
			
		||||
                                                  cef_download_image_callback_t*
 | 
			
		||||
                                                      s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType
 | 
			
		||||
    CefCppToCRefCounted<CefDownloadImageCallbackCppToC,
 | 
			
		||||
                        CefDownloadImageCallback,
 | 
			
		||||
                        cef_download_image_callback_t>::kWrapperType =
 | 
			
		||||
        WT_DOWNLOAD_IMAGE_CALLBACK;
 | 
			
		||||
@@ -1,40 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=657af36d921feba0bab26102ebc1c976e47918ae$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_DOWNLOAD_IMAGE_CALLBACK_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_DOWNLOAD_IMAGE_CALLBACK_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(WRAPPING_CEF_SHARED)
 | 
			
		||||
#error This file can be included wrapper-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_browser_capi.h"
 | 
			
		||||
#include "include/capi/cef_client_capi.h"
 | 
			
		||||
#include "include/cef_browser.h"
 | 
			
		||||
#include "include/cef_client.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed wrapper-side only.
 | 
			
		||||
class CefDownloadImageCallbackCppToC
 | 
			
		||||
    : public CefCppToCRefCounted<CefDownloadImageCallbackCppToC,
 | 
			
		||||
                                 CefDownloadImageCallback,
 | 
			
		||||
                                 cef_download_image_callback_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefDownloadImageCallbackCppToC();
 | 
			
		||||
  virtual ~CefDownloadImageCallbackCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_DOWNLOAD_IMAGE_CALLBACK_CPPTOC_H_
 | 
			
		||||
@@ -1,99 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=0c1f3063958f60318fcae0c6b76b5da4fa207ccd$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/download_item_callback_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
download_item_callback_cancel(struct _cef_download_item_callback_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefDownloadItemCallbackCppToC::Get(self)->Cancel();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
download_item_callback_pause(struct _cef_download_item_callback_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefDownloadItemCallbackCppToC::Get(self)->Pause();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
download_item_callback_resume(struct _cef_download_item_callback_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefDownloadItemCallbackCppToC::Get(self)->Resume();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefDownloadItemCallbackCppToC::CefDownloadItemCallbackCppToC() {
 | 
			
		||||
  GetStruct()->cancel = download_item_callback_cancel;
 | 
			
		||||
  GetStruct()->pause = download_item_callback_pause;
 | 
			
		||||
  GetStruct()->resume = download_item_callback_resume;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefDownloadItemCallbackCppToC::~CefDownloadItemCallbackCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefDownloadItemCallback> CefCppToCRefCounted<
 | 
			
		||||
    CefDownloadItemCallbackCppToC,
 | 
			
		||||
    CefDownloadItemCallback,
 | 
			
		||||
    cef_download_item_callback_t>::UnwrapDerived(CefWrapperType type,
 | 
			
		||||
                                                 cef_download_item_callback_t*
 | 
			
		||||
                                                     s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefDownloadItemCallbackCppToC,
 | 
			
		||||
                                   CefDownloadItemCallback,
 | 
			
		||||
                                   cef_download_item_callback_t>::kWrapperType =
 | 
			
		||||
    WT_DOWNLOAD_ITEM_CALLBACK;
 | 
			
		||||
@@ -1,38 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=9292fa12ac1e2ae08a13e93f83eb8c15f3e9b49a$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_DOWNLOAD_ITEM_CALLBACK_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_DOWNLOAD_ITEM_CALLBACK_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(BUILDING_CEF_SHARED)
 | 
			
		||||
#error This file can be included DLL-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_download_handler_capi.h"
 | 
			
		||||
#include "include/cef_download_handler.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed DLL-side only.
 | 
			
		||||
class CefDownloadItemCallbackCppToC
 | 
			
		||||
    : public CefCppToCRefCounted<CefDownloadItemCallbackCppToC,
 | 
			
		||||
                                 CefDownloadItemCallback,
 | 
			
		||||
                                 cef_download_item_callback_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefDownloadItemCallbackCppToC();
 | 
			
		||||
  virtual ~CefDownloadItemCallbackCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_DOWNLOAD_ITEM_CALLBACK_CPPTOC_H_
 | 
			
		||||
@@ -1,408 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=5160d214e700202d344ac83c7979e890419ac810$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/download_item_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK download_item_is_valid(struct _cef_download_item_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDownloadItemCppToC::Get(self)->IsValid();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
download_item_is_in_progress(struct _cef_download_item_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDownloadItemCppToC::Get(self)->IsInProgress();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK download_item_is_complete(struct _cef_download_item_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDownloadItemCppToC::Get(self)->IsComplete();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK download_item_is_canceled(struct _cef_download_item_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDownloadItemCppToC::Get(self)->IsCanceled();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
download_item_is_interrupted(struct _cef_download_item_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDownloadItemCppToC::Get(self)->IsInterrupted();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_download_interrupt_reason_t CEF_CALLBACK
 | 
			
		||||
download_item_get_interrupt_reason(struct _cef_download_item_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return CEF_DOWNLOAD_INTERRUPT_REASON_NONE;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  cef_download_interrupt_reason_t _retval =
 | 
			
		||||
      CefDownloadItemCppToC::Get(self)->GetInterruptReason();
 | 
			
		||||
 | 
			
		||||
  // Return type: simple
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int64_t CEF_CALLBACK
 | 
			
		||||
download_item_get_current_speed(struct _cef_download_item_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  int64_t _retval = CefDownloadItemCppToC::Get(self)->GetCurrentSpeed();
 | 
			
		||||
 | 
			
		||||
  // Return type: simple
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
download_item_get_percent_complete(struct _cef_download_item_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  int _retval = CefDownloadItemCppToC::Get(self)->GetPercentComplete();
 | 
			
		||||
 | 
			
		||||
  // Return type: simple
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int64_t CEF_CALLBACK
 | 
			
		||||
download_item_get_total_bytes(struct _cef_download_item_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  int64_t _retval = CefDownloadItemCppToC::Get(self)->GetTotalBytes();
 | 
			
		||||
 | 
			
		||||
  // Return type: simple
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int64_t CEF_CALLBACK
 | 
			
		||||
download_item_get_received_bytes(struct _cef_download_item_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  int64_t _retval = CefDownloadItemCppToC::Get(self)->GetReceivedBytes();
 | 
			
		||||
 | 
			
		||||
  // Return type: simple
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_basetime_t CEF_CALLBACK
 | 
			
		||||
download_item_get_start_time(struct _cef_download_item_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return CefBaseTime();
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  cef_basetime_t _retval = CefDownloadItemCppToC::Get(self)->GetStartTime();
 | 
			
		||||
 | 
			
		||||
  // Return type: simple
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_basetime_t CEF_CALLBACK
 | 
			
		||||
download_item_get_end_time(struct _cef_download_item_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return CefBaseTime();
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  cef_basetime_t _retval = CefDownloadItemCppToC::Get(self)->GetEndTime();
 | 
			
		||||
 | 
			
		||||
  // Return type: simple
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK
 | 
			
		||||
download_item_get_full_path(struct _cef_download_item_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval = CefDownloadItemCppToC::Get(self)->GetFullPath();
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
uint32_t CEF_CALLBACK download_item_get_id(struct _cef_download_item_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  uint32_t _retval = CefDownloadItemCppToC::Get(self)->GetId();
 | 
			
		||||
 | 
			
		||||
  // Return type: simple
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK
 | 
			
		||||
download_item_get_url(struct _cef_download_item_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval = CefDownloadItemCppToC::Get(self)->GetURL();
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK
 | 
			
		||||
download_item_get_original_url(struct _cef_download_item_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval = CefDownloadItemCppToC::Get(self)->GetOriginalUrl();
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK
 | 
			
		||||
download_item_get_suggested_file_name(struct _cef_download_item_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval = CefDownloadItemCppToC::Get(self)->GetSuggestedFileName();
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK
 | 
			
		||||
download_item_get_content_disposition(struct _cef_download_item_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval = CefDownloadItemCppToC::Get(self)->GetContentDisposition();
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK
 | 
			
		||||
download_item_get_mime_type(struct _cef_download_item_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval = CefDownloadItemCppToC::Get(self)->GetMimeType();
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefDownloadItemCppToC::CefDownloadItemCppToC() {
 | 
			
		||||
  GetStruct()->is_valid = download_item_is_valid;
 | 
			
		||||
  GetStruct()->is_in_progress = download_item_is_in_progress;
 | 
			
		||||
  GetStruct()->is_complete = download_item_is_complete;
 | 
			
		||||
  GetStruct()->is_canceled = download_item_is_canceled;
 | 
			
		||||
  GetStruct()->is_interrupted = download_item_is_interrupted;
 | 
			
		||||
  GetStruct()->get_interrupt_reason = download_item_get_interrupt_reason;
 | 
			
		||||
  GetStruct()->get_current_speed = download_item_get_current_speed;
 | 
			
		||||
  GetStruct()->get_percent_complete = download_item_get_percent_complete;
 | 
			
		||||
  GetStruct()->get_total_bytes = download_item_get_total_bytes;
 | 
			
		||||
  GetStruct()->get_received_bytes = download_item_get_received_bytes;
 | 
			
		||||
  GetStruct()->get_start_time = download_item_get_start_time;
 | 
			
		||||
  GetStruct()->get_end_time = download_item_get_end_time;
 | 
			
		||||
  GetStruct()->get_full_path = download_item_get_full_path;
 | 
			
		||||
  GetStruct()->get_id = download_item_get_id;
 | 
			
		||||
  GetStruct()->get_url = download_item_get_url;
 | 
			
		||||
  GetStruct()->get_original_url = download_item_get_original_url;
 | 
			
		||||
  GetStruct()->get_suggested_file_name = download_item_get_suggested_file_name;
 | 
			
		||||
  GetStruct()->get_content_disposition = download_item_get_content_disposition;
 | 
			
		||||
  GetStruct()->get_mime_type = download_item_get_mime_type;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefDownloadItemCppToC::~CefDownloadItemCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefDownloadItem> CefCppToCRefCounted<
 | 
			
		||||
    CefDownloadItemCppToC,
 | 
			
		||||
    CefDownloadItem,
 | 
			
		||||
    cef_download_item_t>::UnwrapDerived(CefWrapperType type,
 | 
			
		||||
                                        cef_download_item_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefDownloadItemCppToC,
 | 
			
		||||
                                   CefDownloadItem,
 | 
			
		||||
                                   cef_download_item_t>::kWrapperType =
 | 
			
		||||
    WT_DOWNLOAD_ITEM;
 | 
			
		||||
@@ -1,37 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=ec7ea413a9954d71a6bff0e6251022b8ee75827d$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_DOWNLOAD_ITEM_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_DOWNLOAD_ITEM_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(BUILDING_CEF_SHARED)
 | 
			
		||||
#error This file can be included DLL-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_download_item_capi.h"
 | 
			
		||||
#include "include/cef_download_item.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed DLL-side only.
 | 
			
		||||
class CefDownloadItemCppToC : public CefCppToCRefCounted<CefDownloadItemCppToC,
 | 
			
		||||
                                                         CefDownloadItem,
 | 
			
		||||
                                                         cef_download_item_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefDownloadItemCppToC();
 | 
			
		||||
  virtual ~CefDownloadItemCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_DOWNLOAD_ITEM_CPPTOC_H_
 | 
			
		||||
@@ -1,588 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=1042df299c2edfdf8925380a03bac4663cd9be82$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/drag_data_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/image_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/stream_writer_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
#include "libcef_dll/transfer_util.h"
 | 
			
		||||
 | 
			
		||||
// GLOBAL FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
CEF_EXPORT cef_drag_data_t* cef_drag_data_create() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefDragData> _retval = CefDragData::Create();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefDragDataCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
struct _cef_drag_data_t* CEF_CALLBACK
 | 
			
		||||
drag_data_clone(struct _cef_drag_data_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefDragData> _retval = CefDragDataCppToC::Get(self)->Clone();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefDragDataCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK drag_data_is_read_only(struct _cef_drag_data_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDragDataCppToC::Get(self)->IsReadOnly();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK drag_data_is_link(struct _cef_drag_data_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDragDataCppToC::Get(self)->IsLink();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK drag_data_is_fragment(struct _cef_drag_data_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDragDataCppToC::Get(self)->IsFragment();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK drag_data_is_file(struct _cef_drag_data_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDragDataCppToC::Get(self)->IsFile();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK
 | 
			
		||||
drag_data_get_link_url(struct _cef_drag_data_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval = CefDragDataCppToC::Get(self)->GetLinkURL();
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK
 | 
			
		||||
drag_data_get_link_title(struct _cef_drag_data_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval = CefDragDataCppToC::Get(self)->GetLinkTitle();
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK
 | 
			
		||||
drag_data_get_link_metadata(struct _cef_drag_data_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval = CefDragDataCppToC::Get(self)->GetLinkMetadata();
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK
 | 
			
		||||
drag_data_get_fragment_text(struct _cef_drag_data_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval = CefDragDataCppToC::Get(self)->GetFragmentText();
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK
 | 
			
		||||
drag_data_get_fragment_html(struct _cef_drag_data_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval = CefDragDataCppToC::Get(self)->GetFragmentHtml();
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK
 | 
			
		||||
drag_data_get_fragment_base_url(struct _cef_drag_data_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval = CefDragDataCppToC::Get(self)->GetFragmentBaseURL();
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK
 | 
			
		||||
drag_data_get_file_name(struct _cef_drag_data_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval = CefDragDataCppToC::Get(self)->GetFileName();
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
size_t CEF_CALLBACK
 | 
			
		||||
drag_data_get_file_contents(struct _cef_drag_data_t* self,
 | 
			
		||||
                            struct _cef_stream_writer_t* writer) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Unverified params: writer
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  size_t _retval = CefDragDataCppToC::Get(self)->GetFileContents(
 | 
			
		||||
      CefStreamWriterCppToC::Unwrap(writer));
 | 
			
		||||
 | 
			
		||||
  // Return type: simple
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK drag_data_get_file_names(struct _cef_drag_data_t* self,
 | 
			
		||||
                                          cef_string_list_t names) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: names; type: string_vec_byref
 | 
			
		||||
  DCHECK(names);
 | 
			
		||||
  if (!names) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Translate param: names; type: string_vec_byref
 | 
			
		||||
  std::vector<CefString> namesList;
 | 
			
		||||
  transfer_string_list_contents(names, namesList);
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDragDataCppToC::Get(self)->GetFileNames(namesList);
 | 
			
		||||
 | 
			
		||||
  // Restore param: names; type: string_vec_byref
 | 
			
		||||
  cef_string_list_clear(names);
 | 
			
		||||
  transfer_string_list_contents(namesList, names);
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK drag_data_get_file_paths(struct _cef_drag_data_t* self,
 | 
			
		||||
                                          cef_string_list_t paths) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: paths; type: string_vec_byref
 | 
			
		||||
  DCHECK(paths);
 | 
			
		||||
  if (!paths) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Translate param: paths; type: string_vec_byref
 | 
			
		||||
  std::vector<CefString> pathsList;
 | 
			
		||||
  transfer_string_list_contents(paths, pathsList);
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDragDataCppToC::Get(self)->GetFilePaths(pathsList);
 | 
			
		||||
 | 
			
		||||
  // Restore param: paths; type: string_vec_byref
 | 
			
		||||
  cef_string_list_clear(paths);
 | 
			
		||||
  transfer_string_list_contents(pathsList, paths);
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK drag_data_set_link_url(struct _cef_drag_data_t* self,
 | 
			
		||||
                                         const cef_string_t* url) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Unverified params: url
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefDragDataCppToC::Get(self)->SetLinkURL(CefString(url));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK drag_data_set_link_title(struct _cef_drag_data_t* self,
 | 
			
		||||
                                           const cef_string_t* title) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Unverified params: title
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefDragDataCppToC::Get(self)->SetLinkTitle(CefString(title));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK drag_data_set_link_metadata(struct _cef_drag_data_t* self,
 | 
			
		||||
                                              const cef_string_t* data) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Unverified params: data
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefDragDataCppToC::Get(self)->SetLinkMetadata(CefString(data));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK drag_data_set_fragment_text(struct _cef_drag_data_t* self,
 | 
			
		||||
                                              const cef_string_t* text) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Unverified params: text
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefDragDataCppToC::Get(self)->SetFragmentText(CefString(text));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK drag_data_set_fragment_html(struct _cef_drag_data_t* self,
 | 
			
		||||
                                              const cef_string_t* html) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Unverified params: html
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefDragDataCppToC::Get(self)->SetFragmentHtml(CefString(html));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
drag_data_set_fragment_base_url(struct _cef_drag_data_t* self,
 | 
			
		||||
                                const cef_string_t* base_url) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Unverified params: base_url
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefDragDataCppToC::Get(self)->SetFragmentBaseURL(CefString(base_url));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK drag_data_reset_file_contents(struct _cef_drag_data_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefDragDataCppToC::Get(self)->ResetFileContents();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK drag_data_add_file(struct _cef_drag_data_t* self,
 | 
			
		||||
                                     const cef_string_t* path,
 | 
			
		||||
                                     const cef_string_t* display_name) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: path; type: string_byref_const
 | 
			
		||||
  DCHECK(path);
 | 
			
		||||
  if (!path) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Unverified params: display_name
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefDragDataCppToC::Get(self)->AddFile(CefString(path),
 | 
			
		||||
                                        CefString(display_name));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK drag_data_clear_filenames(struct _cef_drag_data_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefDragDataCppToC::Get(self)->ClearFilenames();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_image_t* CEF_CALLBACK
 | 
			
		||||
drag_data_get_image(struct _cef_drag_data_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefImage> _retval = CefDragDataCppToC::Get(self)->GetImage();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefImageCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_point_t CEF_CALLBACK
 | 
			
		||||
drag_data_get_image_hotspot(struct _cef_drag_data_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return CefPoint();
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  cef_point_t _retval = CefDragDataCppToC::Get(self)->GetImageHotspot();
 | 
			
		||||
 | 
			
		||||
  // Return type: simple
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK drag_data_has_image(struct _cef_drag_data_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDragDataCppToC::Get(self)->HasImage();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefDragDataCppToC::CefDragDataCppToC() {
 | 
			
		||||
  GetStruct()->clone = drag_data_clone;
 | 
			
		||||
  GetStruct()->is_read_only = drag_data_is_read_only;
 | 
			
		||||
  GetStruct()->is_link = drag_data_is_link;
 | 
			
		||||
  GetStruct()->is_fragment = drag_data_is_fragment;
 | 
			
		||||
  GetStruct()->is_file = drag_data_is_file;
 | 
			
		||||
  GetStruct()->get_link_url = drag_data_get_link_url;
 | 
			
		||||
  GetStruct()->get_link_title = drag_data_get_link_title;
 | 
			
		||||
  GetStruct()->get_link_metadata = drag_data_get_link_metadata;
 | 
			
		||||
  GetStruct()->get_fragment_text = drag_data_get_fragment_text;
 | 
			
		||||
  GetStruct()->get_fragment_html = drag_data_get_fragment_html;
 | 
			
		||||
  GetStruct()->get_fragment_base_url = drag_data_get_fragment_base_url;
 | 
			
		||||
  GetStruct()->get_file_name = drag_data_get_file_name;
 | 
			
		||||
  GetStruct()->get_file_contents = drag_data_get_file_contents;
 | 
			
		||||
  GetStruct()->get_file_names = drag_data_get_file_names;
 | 
			
		||||
  GetStruct()->get_file_paths = drag_data_get_file_paths;
 | 
			
		||||
  GetStruct()->set_link_url = drag_data_set_link_url;
 | 
			
		||||
  GetStruct()->set_link_title = drag_data_set_link_title;
 | 
			
		||||
  GetStruct()->set_link_metadata = drag_data_set_link_metadata;
 | 
			
		||||
  GetStruct()->set_fragment_text = drag_data_set_fragment_text;
 | 
			
		||||
  GetStruct()->set_fragment_html = drag_data_set_fragment_html;
 | 
			
		||||
  GetStruct()->set_fragment_base_url = drag_data_set_fragment_base_url;
 | 
			
		||||
  GetStruct()->reset_file_contents = drag_data_reset_file_contents;
 | 
			
		||||
  GetStruct()->add_file = drag_data_add_file;
 | 
			
		||||
  GetStruct()->clear_filenames = drag_data_clear_filenames;
 | 
			
		||||
  GetStruct()->get_image = drag_data_get_image;
 | 
			
		||||
  GetStruct()->get_image_hotspot = drag_data_get_image_hotspot;
 | 
			
		||||
  GetStruct()->has_image = drag_data_has_image;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefDragDataCppToC::~CefDragDataCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefDragData>
 | 
			
		||||
CefCppToCRefCounted<CefDragDataCppToC, CefDragData, cef_drag_data_t>::
 | 
			
		||||
    UnwrapDerived(CefWrapperType type, cef_drag_data_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefDragDataCppToC,
 | 
			
		||||
                                   CefDragData,
 | 
			
		||||
                                   cef_drag_data_t>::kWrapperType =
 | 
			
		||||
    WT_DRAG_DATA;
 | 
			
		||||
@@ -1,37 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=36bd6eba9e2d98b2274881e26158f7f9005822ce$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_DRAG_DATA_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_DRAG_DATA_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(BUILDING_CEF_SHARED)
 | 
			
		||||
#error This file can be included DLL-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_drag_data_capi.h"
 | 
			
		||||
#include "include/cef_drag_data.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed DLL-side only.
 | 
			
		||||
class CefDragDataCppToC : public CefCppToCRefCounted<CefDragDataCppToC,
 | 
			
		||||
                                                     CefDragData,
 | 
			
		||||
                                                     cef_drag_data_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefDragDataCppToC();
 | 
			
		||||
  virtual ~CefDragDataCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_DRAG_DATA_CPPTOC_H_
 | 
			
		||||
@@ -1,130 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=489fa0cfe92ff9ca22430794766344151175e27b$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/drag_handler_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/ctocpp/browser_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/ctocpp/drag_data_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/ctocpp/frame_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK drag_handler_on_drag_enter(struct _cef_drag_handler_t* self,
 | 
			
		||||
                                            cef_browser_t* browser,
 | 
			
		||||
                                            cef_drag_data_t* dragData,
 | 
			
		||||
                                            cef_drag_operations_mask_t mask) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: dragData; type: refptr_diff
 | 
			
		||||
  DCHECK(dragData);
 | 
			
		||||
  if (!dragData) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefDragHandlerCppToC::Get(self)->OnDragEnter(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), CefDragDataCToCpp::Wrap(dragData), mask);
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK drag_handler_on_draggable_regions_changed(
 | 
			
		||||
    struct _cef_drag_handler_t* self,
 | 
			
		||||
    cef_browser_t* browser,
 | 
			
		||||
    struct _cef_frame_t* frame,
 | 
			
		||||
    size_t regionsCount,
 | 
			
		||||
    cef_draggable_region_t const* regions) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: frame; type: refptr_diff
 | 
			
		||||
  DCHECK(frame);
 | 
			
		||||
  if (!frame) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: regions; type: simple_vec_byref_const
 | 
			
		||||
  DCHECK(regionsCount == 0 || regions);
 | 
			
		||||
  if (regionsCount > 0 && !regions) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Translate param: regions; type: simple_vec_byref_const
 | 
			
		||||
  std::vector<CefDraggableRegion> regionsList;
 | 
			
		||||
  if (regionsCount > 0) {
 | 
			
		||||
    for (size_t i = 0; i < regionsCount; ++i) {
 | 
			
		||||
      CefDraggableRegion regionsVal = regions[i];
 | 
			
		||||
      regionsList.push_back(regionsVal);
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefDragHandlerCppToC::Get(self)->OnDraggableRegionsChanged(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), CefFrameCToCpp::Wrap(frame),
 | 
			
		||||
      regionsList);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefDragHandlerCppToC::CefDragHandlerCppToC() {
 | 
			
		||||
  GetStruct()->on_drag_enter = drag_handler_on_drag_enter;
 | 
			
		||||
  GetStruct()->on_draggable_regions_changed =
 | 
			
		||||
      drag_handler_on_draggable_regions_changed;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefDragHandlerCppToC::~CefDragHandlerCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefDragHandler>
 | 
			
		||||
CefCppToCRefCounted<CefDragHandlerCppToC, CefDragHandler, cef_drag_handler_t>::
 | 
			
		||||
    UnwrapDerived(CefWrapperType type, cef_drag_handler_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefDragHandlerCppToC,
 | 
			
		||||
                                   CefDragHandler,
 | 
			
		||||
                                   cef_drag_handler_t>::kWrapperType =
 | 
			
		||||
    WT_DRAG_HANDLER;
 | 
			
		||||
@@ -1,37 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=bb6095fad28dc2e34c83bf07947c72a624d5d5e4$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_DRAG_HANDLER_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_DRAG_HANDLER_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(WRAPPING_CEF_SHARED)
 | 
			
		||||
#error This file can be included wrapper-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_drag_handler_capi.h"
 | 
			
		||||
#include "include/cef_drag_handler.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed wrapper-side only.
 | 
			
		||||
class CefDragHandlerCppToC : public CefCppToCRefCounted<CefDragHandlerCppToC,
 | 
			
		||||
                                                        CefDragHandler,
 | 
			
		||||
                                                        cef_drag_handler_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefDragHandlerCppToC();
 | 
			
		||||
  virtual ~CefDragHandlerCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_DRAG_HANDLER_CPPTOC_H_
 | 
			
		||||
@@ -1,74 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=d5e813af8db16d06c8b544bf7dfeb9b00cc4dd93$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/end_tracing_callback_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK end_tracing_callback_on_end_tracing_complete(
 | 
			
		||||
    struct _cef_end_tracing_callback_t* self,
 | 
			
		||||
    const cef_string_t* tracing_file) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: tracing_file; type: string_byref_const
 | 
			
		||||
  DCHECK(tracing_file);
 | 
			
		||||
  if (!tracing_file) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefEndTracingCallbackCppToC::Get(self)->OnEndTracingComplete(
 | 
			
		||||
      CefString(tracing_file));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefEndTracingCallbackCppToC::CefEndTracingCallbackCppToC() {
 | 
			
		||||
  GetStruct()->on_end_tracing_complete =
 | 
			
		||||
      end_tracing_callback_on_end_tracing_complete;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefEndTracingCallbackCppToC::~CefEndTracingCallbackCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefEndTracingCallback> CefCppToCRefCounted<
 | 
			
		||||
    CefEndTracingCallbackCppToC,
 | 
			
		||||
    CefEndTracingCallback,
 | 
			
		||||
    cef_end_tracing_callback_t>::UnwrapDerived(CefWrapperType type,
 | 
			
		||||
                                               cef_end_tracing_callback_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefEndTracingCallbackCppToC,
 | 
			
		||||
                                   CefEndTracingCallback,
 | 
			
		||||
                                   cef_end_tracing_callback_t>::kWrapperType =
 | 
			
		||||
    WT_END_TRACING_CALLBACK;
 | 
			
		||||
@@ -1,38 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=c4a9a01b2d7aa8ba62c7e9ca93e740d2119d1ac6$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_END_TRACING_CALLBACK_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_END_TRACING_CALLBACK_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(WRAPPING_CEF_SHARED)
 | 
			
		||||
#error This file can be included wrapper-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_trace_capi.h"
 | 
			
		||||
#include "include/cef_trace.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed wrapper-side only.
 | 
			
		||||
class CefEndTracingCallbackCppToC
 | 
			
		||||
    : public CefCppToCRefCounted<CefEndTracingCallbackCppToC,
 | 
			
		||||
                                 CefEndTracingCallback,
 | 
			
		||||
                                 cef_end_tracing_callback_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefEndTracingCallbackCppToC();
 | 
			
		||||
  virtual ~CefEndTracingCallbackCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_END_TRACING_CALLBACK_CPPTOC_H_
 | 
			
		||||
@@ -1,89 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=b7f28b646f39a202dbd804cd842cf4bc55223b32$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/file_dialog_callback_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
#include "libcef_dll/transfer_util.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
file_dialog_callback_cont(struct _cef_file_dialog_callback_t* self,
 | 
			
		||||
                          cef_string_list_t file_paths) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Unverified params: file_paths
 | 
			
		||||
 | 
			
		||||
  // Translate param: file_paths; type: string_vec_byref_const
 | 
			
		||||
  std::vector<CefString> file_pathsList;
 | 
			
		||||
  transfer_string_list_contents(file_paths, file_pathsList);
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefFileDialogCallbackCppToC::Get(self)->Continue(file_pathsList);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
file_dialog_callback_cancel(struct _cef_file_dialog_callback_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefFileDialogCallbackCppToC::Get(self)->Cancel();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefFileDialogCallbackCppToC::CefFileDialogCallbackCppToC() {
 | 
			
		||||
  GetStruct()->cont = file_dialog_callback_cont;
 | 
			
		||||
  GetStruct()->cancel = file_dialog_callback_cancel;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefFileDialogCallbackCppToC::~CefFileDialogCallbackCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefFileDialogCallback> CefCppToCRefCounted<
 | 
			
		||||
    CefFileDialogCallbackCppToC,
 | 
			
		||||
    CefFileDialogCallback,
 | 
			
		||||
    cef_file_dialog_callback_t>::UnwrapDerived(CefWrapperType type,
 | 
			
		||||
                                               cef_file_dialog_callback_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefFileDialogCallbackCppToC,
 | 
			
		||||
                                   CefFileDialogCallback,
 | 
			
		||||
                                   cef_file_dialog_callback_t>::kWrapperType =
 | 
			
		||||
    WT_FILE_DIALOG_CALLBACK;
 | 
			
		||||
@@ -1,38 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=d75ec8d5c610dfae9d424b3e66c5e4c41372014e$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_FILE_DIALOG_CALLBACK_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_FILE_DIALOG_CALLBACK_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(BUILDING_CEF_SHARED)
 | 
			
		||||
#error This file can be included DLL-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_dialog_handler_capi.h"
 | 
			
		||||
#include "include/cef_dialog_handler.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed DLL-side only.
 | 
			
		||||
class CefFileDialogCallbackCppToC
 | 
			
		||||
    : public CefCppToCRefCounted<CefFileDialogCallbackCppToC,
 | 
			
		||||
                                 CefFileDialogCallback,
 | 
			
		||||
                                 cef_file_dialog_callback_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefFileDialogCallbackCppToC();
 | 
			
		||||
  virtual ~CefFileDialogCallbackCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_FILE_DIALOG_CALLBACK_CPPTOC_H_
 | 
			
		||||
@@ -1,85 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=dba55d924984e110229ff9298189f601ee6ebf4d$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/find_handler_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/ctocpp/browser_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK find_handler_on_find_result(struct _cef_find_handler_t* self,
 | 
			
		||||
                                              cef_browser_t* browser,
 | 
			
		||||
                                              int identifier,
 | 
			
		||||
                                              int count,
 | 
			
		||||
                                              const cef_rect_t* selectionRect,
 | 
			
		||||
                                              int activeMatchOrdinal,
 | 
			
		||||
                                              int finalUpdate) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: selectionRect; type: simple_byref_const
 | 
			
		||||
  DCHECK(selectionRect);
 | 
			
		||||
  if (!selectionRect) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Translate param: selectionRect; type: simple_byref_const
 | 
			
		||||
  CefRect selectionRectVal = selectionRect ? *selectionRect : CefRect();
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefFindHandlerCppToC::Get(self)->OnFindResult(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), identifier, count, selectionRectVal,
 | 
			
		||||
      activeMatchOrdinal, finalUpdate ? true : false);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefFindHandlerCppToC::CefFindHandlerCppToC() {
 | 
			
		||||
  GetStruct()->on_find_result = find_handler_on_find_result;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefFindHandlerCppToC::~CefFindHandlerCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefFindHandler>
 | 
			
		||||
CefCppToCRefCounted<CefFindHandlerCppToC, CefFindHandler, cef_find_handler_t>::
 | 
			
		||||
    UnwrapDerived(CefWrapperType type, cef_find_handler_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefFindHandlerCppToC,
 | 
			
		||||
                                   CefFindHandler,
 | 
			
		||||
                                   cef_find_handler_t>::kWrapperType =
 | 
			
		||||
    WT_FIND_HANDLER;
 | 
			
		||||
@@ -1,37 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=387db245f4a90f48a56036201c8b81d608f8f39d$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_FIND_HANDLER_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_FIND_HANDLER_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(WRAPPING_CEF_SHARED)
 | 
			
		||||
#error This file can be included wrapper-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_find_handler_capi.h"
 | 
			
		||||
#include "include/cef_find_handler.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed wrapper-side only.
 | 
			
		||||
class CefFindHandlerCppToC : public CefCppToCRefCounted<CefFindHandlerCppToC,
 | 
			
		||||
                                                        CefFindHandler,
 | 
			
		||||
                                                        cef_find_handler_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefFindHandlerCppToC();
 | 
			
		||||
  virtual ~CefFindHandlerCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_FIND_HANDLER_CPPTOC_H_
 | 
			
		||||
@@ -1,121 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=5510b099943c7a323de3dc1e52d5720fee09bad8$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/focus_handler_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/ctocpp/browser_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK focus_handler_on_take_focus(struct _cef_focus_handler_t* self,
 | 
			
		||||
                                              cef_browser_t* browser,
 | 
			
		||||
                                              int next) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefFocusHandlerCppToC::Get(self)->OnTakeFocus(CefBrowserCToCpp::Wrap(browser),
 | 
			
		||||
                                                next ? true : false);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK focus_handler_on_set_focus(struct _cef_focus_handler_t* self,
 | 
			
		||||
                                            cef_browser_t* browser,
 | 
			
		||||
                                            cef_focus_source_t source) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefFocusHandlerCppToC::Get(self)->OnSetFocus(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), source);
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK focus_handler_on_got_focus(struct _cef_focus_handler_t* self,
 | 
			
		||||
                                             cef_browser_t* browser) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefFocusHandlerCppToC::Get(self)->OnGotFocus(CefBrowserCToCpp::Wrap(browser));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefFocusHandlerCppToC::CefFocusHandlerCppToC() {
 | 
			
		||||
  GetStruct()->on_take_focus = focus_handler_on_take_focus;
 | 
			
		||||
  GetStruct()->on_set_focus = focus_handler_on_set_focus;
 | 
			
		||||
  GetStruct()->on_got_focus = focus_handler_on_got_focus;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefFocusHandlerCppToC::~CefFocusHandlerCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefFocusHandler> CefCppToCRefCounted<
 | 
			
		||||
    CefFocusHandlerCppToC,
 | 
			
		||||
    CefFocusHandler,
 | 
			
		||||
    cef_focus_handler_t>::UnwrapDerived(CefWrapperType type,
 | 
			
		||||
                                        cef_focus_handler_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefFocusHandlerCppToC,
 | 
			
		||||
                                   CefFocusHandler,
 | 
			
		||||
                                   cef_focus_handler_t>::kWrapperType =
 | 
			
		||||
    WT_FOCUS_HANDLER;
 | 
			
		||||
@@ -1,37 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=f403c4bd73bef9f9871be23405eb3cf874f7942e$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_FOCUS_HANDLER_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_FOCUS_HANDLER_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(WRAPPING_CEF_SHARED)
 | 
			
		||||
#error This file can be included wrapper-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_focus_handler_capi.h"
 | 
			
		||||
#include "include/cef_focus_handler.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed wrapper-side only.
 | 
			
		||||
class CefFocusHandlerCppToC : public CefCppToCRefCounted<CefFocusHandlerCppToC,
 | 
			
		||||
                                                         CefFocusHandler,
 | 
			
		||||
                                                         cef_focus_handler_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefFocusHandlerCppToC();
 | 
			
		||||
  virtual ~CefFocusHandlerCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_FOCUS_HANDLER_CPPTOC_H_
 | 
			
		||||
@@ -1,543 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=78b6ea5be9077164a1d7ea6143601040b124f1c0$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/frame_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/browser_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/process_message_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/request_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/urlrequest_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/v8context_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/ctocpp/domvisitor_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/ctocpp/string_visitor_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/ctocpp/urlrequest_client_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK frame_is_valid(struct _cef_frame_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefFrameCppToC::Get(self)->IsValid();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK frame_undo(struct _cef_frame_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefFrameCppToC::Get(self)->Undo();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK frame_redo(struct _cef_frame_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefFrameCppToC::Get(self)->Redo();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK frame_cut(struct _cef_frame_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefFrameCppToC::Get(self)->Cut();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK frame_copy(struct _cef_frame_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefFrameCppToC::Get(self)->Copy();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK frame_paste(struct _cef_frame_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefFrameCppToC::Get(self)->Paste();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK frame_paste_and_match_style(struct _cef_frame_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefFrameCppToC::Get(self)->PasteAndMatchStyle();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK frame_del(struct _cef_frame_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefFrameCppToC::Get(self)->Delete();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK frame_select_all(struct _cef_frame_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefFrameCppToC::Get(self)->SelectAll();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK frame_view_source(struct _cef_frame_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefFrameCppToC::Get(self)->ViewSource();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK frame_get_source(struct _cef_frame_t* self,
 | 
			
		||||
                                   struct _cef_string_visitor_t* visitor) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: visitor; type: refptr_diff
 | 
			
		||||
  DCHECK(visitor);
 | 
			
		||||
  if (!visitor) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefFrameCppToC::Get(self)->GetSource(CefStringVisitorCToCpp::Wrap(visitor));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK frame_get_text(struct _cef_frame_t* self,
 | 
			
		||||
                                 struct _cef_string_visitor_t* visitor) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: visitor; type: refptr_diff
 | 
			
		||||
  DCHECK(visitor);
 | 
			
		||||
  if (!visitor) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefFrameCppToC::Get(self)->GetText(CefStringVisitorCToCpp::Wrap(visitor));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK frame_load_request(struct _cef_frame_t* self,
 | 
			
		||||
                                     struct _cef_request_t* request) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: request; type: refptr_same
 | 
			
		||||
  DCHECK(request);
 | 
			
		||||
  if (!request) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefFrameCppToC::Get(self)->LoadRequest(CefRequestCppToC::Unwrap(request));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK frame_load_url(struct _cef_frame_t* self,
 | 
			
		||||
                                 const cef_string_t* url) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: url; type: string_byref_const
 | 
			
		||||
  DCHECK(url);
 | 
			
		||||
  if (!url) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefFrameCppToC::Get(self)->LoadURL(CefString(url));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK frame_execute_java_script(struct _cef_frame_t* self,
 | 
			
		||||
                                            const cef_string_t* code,
 | 
			
		||||
                                            const cef_string_t* script_url,
 | 
			
		||||
                                            int start_line) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: code; type: string_byref_const
 | 
			
		||||
  DCHECK(code);
 | 
			
		||||
  if (!code) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Unverified params: script_url
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefFrameCppToC::Get(self)->ExecuteJavaScript(
 | 
			
		||||
      CefString(code), CefString(script_url), start_line);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK frame_is_main(struct _cef_frame_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefFrameCppToC::Get(self)->IsMain();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK frame_is_focused(struct _cef_frame_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefFrameCppToC::Get(self)->IsFocused();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK frame_get_name(struct _cef_frame_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval = CefFrameCppToC::Get(self)->GetName();
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK
 | 
			
		||||
frame_get_identifier(struct _cef_frame_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval = CefFrameCppToC::Get(self)->GetIdentifier();
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_frame_t* CEF_CALLBACK frame_get_parent(struct _cef_frame_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefFrame> _retval = CefFrameCppToC::Get(self)->GetParent();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefFrameCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK frame_get_url(struct _cef_frame_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval = CefFrameCppToC::Get(self)->GetURL();
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_browser_t* CEF_CALLBACK frame_get_browser(struct _cef_frame_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefBrowser> _retval = CefFrameCppToC::Get(self)->GetBrowser();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefBrowserCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_v8context_t* CEF_CALLBACK
 | 
			
		||||
frame_get_v8context(struct _cef_frame_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefV8Context> _retval = CefFrameCppToC::Get(self)->GetV8Context();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefV8ContextCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK frame_visit_dom(struct _cef_frame_t* self,
 | 
			
		||||
                                  cef_domvisitor_t* visitor) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: visitor; type: refptr_diff
 | 
			
		||||
  DCHECK(visitor);
 | 
			
		||||
  if (!visitor) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefFrameCppToC::Get(self)->VisitDOM(CefDOMVisitorCToCpp::Wrap(visitor));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_urlrequest_t* CEF_CALLBACK
 | 
			
		||||
frame_create_urlrequest(struct _cef_frame_t* self,
 | 
			
		||||
                        struct _cef_request_t* request,
 | 
			
		||||
                        struct _cef_urlrequest_client_t* client) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: request; type: refptr_same
 | 
			
		||||
  DCHECK(request);
 | 
			
		||||
  if (!request) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: client; type: refptr_diff
 | 
			
		||||
  DCHECK(client);
 | 
			
		||||
  if (!client) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefURLRequest> _retval =
 | 
			
		||||
      CefFrameCppToC::Get(self)->CreateURLRequest(
 | 
			
		||||
          CefRequestCppToC::Unwrap(request),
 | 
			
		||||
          CefURLRequestClientCToCpp::Wrap(client));
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefURLRequestCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
frame_send_process_message(struct _cef_frame_t* self,
 | 
			
		||||
                           cef_process_id_t target_process,
 | 
			
		||||
                           struct _cef_process_message_t* message) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: message; type: refptr_same
 | 
			
		||||
  DCHECK(message);
 | 
			
		||||
  if (!message) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefFrameCppToC::Get(self)->SendProcessMessage(
 | 
			
		||||
      target_process, CefProcessMessageCppToC::Unwrap(message));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefFrameCppToC::CefFrameCppToC() {
 | 
			
		||||
  GetStruct()->is_valid = frame_is_valid;
 | 
			
		||||
  GetStruct()->undo = frame_undo;
 | 
			
		||||
  GetStruct()->redo = frame_redo;
 | 
			
		||||
  GetStruct()->cut = frame_cut;
 | 
			
		||||
  GetStruct()->copy = frame_copy;
 | 
			
		||||
  GetStruct()->paste = frame_paste;
 | 
			
		||||
  GetStruct()->paste_and_match_style = frame_paste_and_match_style;
 | 
			
		||||
  GetStruct()->del = frame_del;
 | 
			
		||||
  GetStruct()->select_all = frame_select_all;
 | 
			
		||||
  GetStruct()->view_source = frame_view_source;
 | 
			
		||||
  GetStruct()->get_source = frame_get_source;
 | 
			
		||||
  GetStruct()->get_text = frame_get_text;
 | 
			
		||||
  GetStruct()->load_request = frame_load_request;
 | 
			
		||||
  GetStruct()->load_url = frame_load_url;
 | 
			
		||||
  GetStruct()->execute_java_script = frame_execute_java_script;
 | 
			
		||||
  GetStruct()->is_main = frame_is_main;
 | 
			
		||||
  GetStruct()->is_focused = frame_is_focused;
 | 
			
		||||
  GetStruct()->get_name = frame_get_name;
 | 
			
		||||
  GetStruct()->get_identifier = frame_get_identifier;
 | 
			
		||||
  GetStruct()->get_parent = frame_get_parent;
 | 
			
		||||
  GetStruct()->get_url = frame_get_url;
 | 
			
		||||
  GetStruct()->get_browser = frame_get_browser;
 | 
			
		||||
  GetStruct()->get_v8context = frame_get_v8context;
 | 
			
		||||
  GetStruct()->visit_dom = frame_visit_dom;
 | 
			
		||||
  GetStruct()->create_urlrequest = frame_create_urlrequest;
 | 
			
		||||
  GetStruct()->send_process_message = frame_send_process_message;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefFrameCppToC::~CefFrameCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefFrame>
 | 
			
		||||
CefCppToCRefCounted<CefFrameCppToC, CefFrame, cef_frame_t>::UnwrapDerived(
 | 
			
		||||
    CefWrapperType type,
 | 
			
		||||
    cef_frame_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType
 | 
			
		||||
    CefCppToCRefCounted<CefFrameCppToC, CefFrame, cef_frame_t>::kWrapperType =
 | 
			
		||||
        WT_FRAME;
 | 
			
		||||
@@ -1,42 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=2c99665e298dffa1a7eff42382ec36579c39016c$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_FRAME_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_FRAME_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(BUILDING_CEF_SHARED)
 | 
			
		||||
#error This file can be included DLL-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_browser_capi.h"
 | 
			
		||||
#include "include/capi/cef_frame_capi.h"
 | 
			
		||||
#include "include/capi/cef_urlrequest_capi.h"
 | 
			
		||||
#include "include/capi/cef_v8_capi.h"
 | 
			
		||||
#include "include/cef_browser.h"
 | 
			
		||||
#include "include/cef_frame.h"
 | 
			
		||||
#include "include/cef_urlrequest.h"
 | 
			
		||||
#include "include/cef_v8.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed DLL-side only.
 | 
			
		||||
class CefFrameCppToC
 | 
			
		||||
    : public CefCppToCRefCounted<CefFrameCppToC, CefFrame, cef_frame_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefFrameCppToC();
 | 
			
		||||
  virtual ~CefFrameCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_FRAME_CPPTOC_H_
 | 
			
		||||
@@ -1,197 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=51da21d569dd41e38cb2dc6e0f2dea0bd88dbdce$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/frame_handler_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/ctocpp/browser_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/ctocpp/frame_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
frame_handler_on_frame_created(struct _cef_frame_handler_t* self,
 | 
			
		||||
                               cef_browser_t* browser,
 | 
			
		||||
                               cef_frame_t* frame) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: frame; type: refptr_diff
 | 
			
		||||
  DCHECK(frame);
 | 
			
		||||
  if (!frame) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefFrameHandlerCppToC::Get(self)->OnFrameCreated(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), CefFrameCToCpp::Wrap(frame));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
frame_handler_on_frame_destroyed(struct _cef_frame_handler_t* self,
 | 
			
		||||
                                 cef_browser_t* browser,
 | 
			
		||||
                                 cef_frame_t* frame) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: frame; type: refptr_diff
 | 
			
		||||
  DCHECK(frame);
 | 
			
		||||
  if (!frame) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefFrameHandlerCppToC::Get(self)->OnFrameDestroyed(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), CefFrameCToCpp::Wrap(frame));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
frame_handler_on_frame_attached(struct _cef_frame_handler_t* self,
 | 
			
		||||
                                cef_browser_t* browser,
 | 
			
		||||
                                cef_frame_t* frame,
 | 
			
		||||
                                int reattached) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: frame; type: refptr_diff
 | 
			
		||||
  DCHECK(frame);
 | 
			
		||||
  if (!frame) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefFrameHandlerCppToC::Get(self)->OnFrameAttached(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), CefFrameCToCpp::Wrap(frame),
 | 
			
		||||
      reattached ? true : false);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
frame_handler_on_frame_detached(struct _cef_frame_handler_t* self,
 | 
			
		||||
                                cef_browser_t* browser,
 | 
			
		||||
                                cef_frame_t* frame) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: frame; type: refptr_diff
 | 
			
		||||
  DCHECK(frame);
 | 
			
		||||
  if (!frame) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefFrameHandlerCppToC::Get(self)->OnFrameDetached(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), CefFrameCToCpp::Wrap(frame));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
frame_handler_on_main_frame_changed(struct _cef_frame_handler_t* self,
 | 
			
		||||
                                    cef_browser_t* browser,
 | 
			
		||||
                                    cef_frame_t* old_frame,
 | 
			
		||||
                                    cef_frame_t* new_frame) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Unverified params: old_frame, new_frame
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefFrameHandlerCppToC::Get(self)->OnMainFrameChanged(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), CefFrameCToCpp::Wrap(old_frame),
 | 
			
		||||
      CefFrameCToCpp::Wrap(new_frame));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefFrameHandlerCppToC::CefFrameHandlerCppToC() {
 | 
			
		||||
  GetStruct()->on_frame_created = frame_handler_on_frame_created;
 | 
			
		||||
  GetStruct()->on_frame_destroyed = frame_handler_on_frame_destroyed;
 | 
			
		||||
  GetStruct()->on_frame_attached = frame_handler_on_frame_attached;
 | 
			
		||||
  GetStruct()->on_frame_detached = frame_handler_on_frame_detached;
 | 
			
		||||
  GetStruct()->on_main_frame_changed = frame_handler_on_main_frame_changed;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefFrameHandlerCppToC::~CefFrameHandlerCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefFrameHandler> CefCppToCRefCounted<
 | 
			
		||||
    CefFrameHandlerCppToC,
 | 
			
		||||
    CefFrameHandler,
 | 
			
		||||
    cef_frame_handler_t>::UnwrapDerived(CefWrapperType type,
 | 
			
		||||
                                        cef_frame_handler_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefFrameHandlerCppToC,
 | 
			
		||||
                                   CefFrameHandler,
 | 
			
		||||
                                   cef_frame_handler_t>::kWrapperType =
 | 
			
		||||
    WT_FRAME_HANDLER;
 | 
			
		||||
@@ -1,37 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=5e4c37ca3d237a08b0410f1e48cc31514c2577b1$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_FRAME_HANDLER_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_FRAME_HANDLER_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(WRAPPING_CEF_SHARED)
 | 
			
		||||
#error This file can be included wrapper-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_frame_handler_capi.h"
 | 
			
		||||
#include "include/cef_frame_handler.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed wrapper-side only.
 | 
			
		||||
class CefFrameHandlerCppToC : public CefCppToCRefCounted<CefFrameHandlerCppToC,
 | 
			
		||||
                                                         CefFrameHandler,
 | 
			
		||||
                                                         cef_frame_handler_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefFrameHandlerCppToC();
 | 
			
		||||
  virtual ~CefFrameHandlerCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_FRAME_HANDLER_CPPTOC_H_
 | 
			
		||||
@@ -1,470 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=e5c412635b86295558dd1ba5741f90a386c77b28$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/image_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/binary_value_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
 | 
			
		||||
// GLOBAL FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
CEF_EXPORT cef_image_t* cef_image_create() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefImage> _retval = CefImage::CreateImage();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefImageCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK image_is_empty(struct _cef_image_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefImageCppToC::Get(self)->IsEmpty();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK image_is_same(struct _cef_image_t* self,
 | 
			
		||||
                               struct _cef_image_t* that) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: that; type: refptr_same
 | 
			
		||||
  DCHECK(that);
 | 
			
		||||
  if (!that) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval =
 | 
			
		||||
      CefImageCppToC::Get(self)->IsSame(CefImageCppToC::Unwrap(that));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK image_add_bitmap(struct _cef_image_t* self,
 | 
			
		||||
                                  float scale_factor,
 | 
			
		||||
                                  int pixel_width,
 | 
			
		||||
                                  int pixel_height,
 | 
			
		||||
                                  cef_color_type_t color_type,
 | 
			
		||||
                                  cef_alpha_type_t alpha_type,
 | 
			
		||||
                                  const void* pixel_data,
 | 
			
		||||
                                  size_t pixel_data_size) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: pixel_data; type: simple_byaddr
 | 
			
		||||
  DCHECK(pixel_data);
 | 
			
		||||
  if (!pixel_data) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefImageCppToC::Get(self)->AddBitmap(
 | 
			
		||||
      scale_factor, pixel_width, pixel_height, color_type, alpha_type,
 | 
			
		||||
      pixel_data, pixel_data_size);
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK image_add_png(struct _cef_image_t* self,
 | 
			
		||||
                               float scale_factor,
 | 
			
		||||
                               const void* png_data,
 | 
			
		||||
                               size_t png_data_size) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: png_data; type: simple_byaddr
 | 
			
		||||
  DCHECK(png_data);
 | 
			
		||||
  if (!png_data) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval =
 | 
			
		||||
      CefImageCppToC::Get(self)->AddPNG(scale_factor, png_data, png_data_size);
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK image_add_jpeg(struct _cef_image_t* self,
 | 
			
		||||
                                float scale_factor,
 | 
			
		||||
                                const void* jpeg_data,
 | 
			
		||||
                                size_t jpeg_data_size) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: jpeg_data; type: simple_byaddr
 | 
			
		||||
  DCHECK(jpeg_data);
 | 
			
		||||
  if (!jpeg_data) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefImageCppToC::Get(self)->AddJPEG(scale_factor, jpeg_data,
 | 
			
		||||
                                                    jpeg_data_size);
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
size_t CEF_CALLBACK image_get_width(struct _cef_image_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  size_t _retval = CefImageCppToC::Get(self)->GetWidth();
 | 
			
		||||
 | 
			
		||||
  // Return type: simple
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
size_t CEF_CALLBACK image_get_height(struct _cef_image_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  size_t _retval = CefImageCppToC::Get(self)->GetHeight();
 | 
			
		||||
 | 
			
		||||
  // Return type: simple
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK image_has_representation(struct _cef_image_t* self,
 | 
			
		||||
                                          float scale_factor) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefImageCppToC::Get(self)->HasRepresentation(scale_factor);
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK image_remove_representation(struct _cef_image_t* self,
 | 
			
		||||
                                             float scale_factor) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefImageCppToC::Get(self)->RemoveRepresentation(scale_factor);
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK image_get_representation_info(struct _cef_image_t* self,
 | 
			
		||||
                                               float scale_factor,
 | 
			
		||||
                                               float* actual_scale_factor,
 | 
			
		||||
                                               int* pixel_width,
 | 
			
		||||
                                               int* pixel_height) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: actual_scale_factor; type: simple_byref
 | 
			
		||||
  DCHECK(actual_scale_factor);
 | 
			
		||||
  if (!actual_scale_factor) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: pixel_width; type: simple_byref
 | 
			
		||||
  DCHECK(pixel_width);
 | 
			
		||||
  if (!pixel_width) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: pixel_height; type: simple_byref
 | 
			
		||||
  DCHECK(pixel_height);
 | 
			
		||||
  if (!pixel_height) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Translate param: actual_scale_factor; type: simple_byref
 | 
			
		||||
  float actual_scale_factorVal = actual_scale_factor ? *actual_scale_factor : 0;
 | 
			
		||||
  // Translate param: pixel_width; type: simple_byref
 | 
			
		||||
  int pixel_widthVal = pixel_width ? *pixel_width : 0;
 | 
			
		||||
  // Translate param: pixel_height; type: simple_byref
 | 
			
		||||
  int pixel_heightVal = pixel_height ? *pixel_height : 0;
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefImageCppToC::Get(self)->GetRepresentationInfo(
 | 
			
		||||
      scale_factor, actual_scale_factorVal, pixel_widthVal, pixel_heightVal);
 | 
			
		||||
 | 
			
		||||
  // Restore param: actual_scale_factor; type: simple_byref
 | 
			
		||||
  if (actual_scale_factor) {
 | 
			
		||||
    *actual_scale_factor = actual_scale_factorVal;
 | 
			
		||||
  }
 | 
			
		||||
  // Restore param: pixel_width; type: simple_byref
 | 
			
		||||
  if (pixel_width) {
 | 
			
		||||
    *pixel_width = pixel_widthVal;
 | 
			
		||||
  }
 | 
			
		||||
  // Restore param: pixel_height; type: simple_byref
 | 
			
		||||
  if (pixel_height) {
 | 
			
		||||
    *pixel_height = pixel_heightVal;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_binary_value_t* CEF_CALLBACK
 | 
			
		||||
image_get_as_bitmap(struct _cef_image_t* self,
 | 
			
		||||
                    float scale_factor,
 | 
			
		||||
                    cef_color_type_t color_type,
 | 
			
		||||
                    cef_alpha_type_t alpha_type,
 | 
			
		||||
                    int* pixel_width,
 | 
			
		||||
                    int* pixel_height) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: pixel_width; type: simple_byref
 | 
			
		||||
  DCHECK(pixel_width);
 | 
			
		||||
  if (!pixel_width) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: pixel_height; type: simple_byref
 | 
			
		||||
  DCHECK(pixel_height);
 | 
			
		||||
  if (!pixel_height) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Translate param: pixel_width; type: simple_byref
 | 
			
		||||
  int pixel_widthVal = pixel_width ? *pixel_width : 0;
 | 
			
		||||
  // Translate param: pixel_height; type: simple_byref
 | 
			
		||||
  int pixel_heightVal = pixel_height ? *pixel_height : 0;
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefBinaryValue> _retval = CefImageCppToC::Get(self)->GetAsBitmap(
 | 
			
		||||
      scale_factor, color_type, alpha_type, pixel_widthVal, pixel_heightVal);
 | 
			
		||||
 | 
			
		||||
  // Restore param: pixel_width; type: simple_byref
 | 
			
		||||
  if (pixel_width) {
 | 
			
		||||
    *pixel_width = pixel_widthVal;
 | 
			
		||||
  }
 | 
			
		||||
  // Restore param: pixel_height; type: simple_byref
 | 
			
		||||
  if (pixel_height) {
 | 
			
		||||
    *pixel_height = pixel_heightVal;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefBinaryValueCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_binary_value_t* CEF_CALLBACK
 | 
			
		||||
image_get_as_png(struct _cef_image_t* self,
 | 
			
		||||
                 float scale_factor,
 | 
			
		||||
                 int with_transparency,
 | 
			
		||||
                 int* pixel_width,
 | 
			
		||||
                 int* pixel_height) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: pixel_width; type: simple_byref
 | 
			
		||||
  DCHECK(pixel_width);
 | 
			
		||||
  if (!pixel_width) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: pixel_height; type: simple_byref
 | 
			
		||||
  DCHECK(pixel_height);
 | 
			
		||||
  if (!pixel_height) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Translate param: pixel_width; type: simple_byref
 | 
			
		||||
  int pixel_widthVal = pixel_width ? *pixel_width : 0;
 | 
			
		||||
  // Translate param: pixel_height; type: simple_byref
 | 
			
		||||
  int pixel_heightVal = pixel_height ? *pixel_height : 0;
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefBinaryValue> _retval = CefImageCppToC::Get(self)->GetAsPNG(
 | 
			
		||||
      scale_factor, with_transparency ? true : false, pixel_widthVal,
 | 
			
		||||
      pixel_heightVal);
 | 
			
		||||
 | 
			
		||||
  // Restore param: pixel_width; type: simple_byref
 | 
			
		||||
  if (pixel_width) {
 | 
			
		||||
    *pixel_width = pixel_widthVal;
 | 
			
		||||
  }
 | 
			
		||||
  // Restore param: pixel_height; type: simple_byref
 | 
			
		||||
  if (pixel_height) {
 | 
			
		||||
    *pixel_height = pixel_heightVal;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefBinaryValueCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_binary_value_t* CEF_CALLBACK
 | 
			
		||||
image_get_as_jpeg(struct _cef_image_t* self,
 | 
			
		||||
                  float scale_factor,
 | 
			
		||||
                  int quality,
 | 
			
		||||
                  int* pixel_width,
 | 
			
		||||
                  int* pixel_height) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: pixel_width; type: simple_byref
 | 
			
		||||
  DCHECK(pixel_width);
 | 
			
		||||
  if (!pixel_width) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: pixel_height; type: simple_byref
 | 
			
		||||
  DCHECK(pixel_height);
 | 
			
		||||
  if (!pixel_height) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Translate param: pixel_width; type: simple_byref
 | 
			
		||||
  int pixel_widthVal = pixel_width ? *pixel_width : 0;
 | 
			
		||||
  // Translate param: pixel_height; type: simple_byref
 | 
			
		||||
  int pixel_heightVal = pixel_height ? *pixel_height : 0;
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefBinaryValue> _retval = CefImageCppToC::Get(self)->GetAsJPEG(
 | 
			
		||||
      scale_factor, quality, pixel_widthVal, pixel_heightVal);
 | 
			
		||||
 | 
			
		||||
  // Restore param: pixel_width; type: simple_byref
 | 
			
		||||
  if (pixel_width) {
 | 
			
		||||
    *pixel_width = pixel_widthVal;
 | 
			
		||||
  }
 | 
			
		||||
  // Restore param: pixel_height; type: simple_byref
 | 
			
		||||
  if (pixel_height) {
 | 
			
		||||
    *pixel_height = pixel_heightVal;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefBinaryValueCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefImageCppToC::CefImageCppToC() {
 | 
			
		||||
  GetStruct()->is_empty = image_is_empty;
 | 
			
		||||
  GetStruct()->is_same = image_is_same;
 | 
			
		||||
  GetStruct()->add_bitmap = image_add_bitmap;
 | 
			
		||||
  GetStruct()->add_png = image_add_png;
 | 
			
		||||
  GetStruct()->add_jpeg = image_add_jpeg;
 | 
			
		||||
  GetStruct()->get_width = image_get_width;
 | 
			
		||||
  GetStruct()->get_height = image_get_height;
 | 
			
		||||
  GetStruct()->has_representation = image_has_representation;
 | 
			
		||||
  GetStruct()->remove_representation = image_remove_representation;
 | 
			
		||||
  GetStruct()->get_representation_info = image_get_representation_info;
 | 
			
		||||
  GetStruct()->get_as_bitmap = image_get_as_bitmap;
 | 
			
		||||
  GetStruct()->get_as_png = image_get_as_png;
 | 
			
		||||
  GetStruct()->get_as_jpeg = image_get_as_jpeg;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefImageCppToC::~CefImageCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefImage>
 | 
			
		||||
CefCppToCRefCounted<CefImageCppToC, CefImage, cef_image_t>::UnwrapDerived(
 | 
			
		||||
    CefWrapperType type,
 | 
			
		||||
    cef_image_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType
 | 
			
		||||
    CefCppToCRefCounted<CefImageCppToC, CefImage, cef_image_t>::kWrapperType =
 | 
			
		||||
        WT_IMAGE;
 | 
			
		||||
@@ -1,36 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=93ab2e59475760ff93f9232f3857d151f87b2077$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_IMAGE_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_IMAGE_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(BUILDING_CEF_SHARED)
 | 
			
		||||
#error This file can be included DLL-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_image_capi.h"
 | 
			
		||||
#include "include/cef_image.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed DLL-side only.
 | 
			
		||||
class CefImageCppToC
 | 
			
		||||
    : public CefCppToCRefCounted<CefImageCppToC, CefImage, cef_image_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefImageCppToC();
 | 
			
		||||
  virtual ~CefImageCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_IMAGE_CPPTOC_H_
 | 
			
		||||
@@ -1,69 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=dfbadf8fc51bb7378be8971c061cc62d608271b9$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/jsdialog_callback_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK jsdialog_callback_cont(struct _cef_jsdialog_callback_t* self,
 | 
			
		||||
                                         int success,
 | 
			
		||||
                                         const cef_string_t* user_input) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Unverified params: user_input
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefJSDialogCallbackCppToC::Get(self)->Continue(success ? true : false,
 | 
			
		||||
                                                 CefString(user_input));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefJSDialogCallbackCppToC::CefJSDialogCallbackCppToC() {
 | 
			
		||||
  GetStruct()->cont = jsdialog_callback_cont;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefJSDialogCallbackCppToC::~CefJSDialogCallbackCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefJSDialogCallback> CefCppToCRefCounted<
 | 
			
		||||
    CefJSDialogCallbackCppToC,
 | 
			
		||||
    CefJSDialogCallback,
 | 
			
		||||
    cef_jsdialog_callback_t>::UnwrapDerived(CefWrapperType type,
 | 
			
		||||
                                            cef_jsdialog_callback_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefJSDialogCallbackCppToC,
 | 
			
		||||
                                   CefJSDialogCallback,
 | 
			
		||||
                                   cef_jsdialog_callback_t>::kWrapperType =
 | 
			
		||||
    WT_JSDIALOG_CALLBACK;
 | 
			
		||||
@@ -1,38 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=526d1a7bdc16d6ba73c552dc36dd114e30a66c51$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_JSDIALOG_CALLBACK_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_JSDIALOG_CALLBACK_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(BUILDING_CEF_SHARED)
 | 
			
		||||
#error This file can be included DLL-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_jsdialog_handler_capi.h"
 | 
			
		||||
#include "include/cef_jsdialog_handler.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed DLL-side only.
 | 
			
		||||
class CefJSDialogCallbackCppToC
 | 
			
		||||
    : public CefCppToCRefCounted<CefJSDialogCallbackCppToC,
 | 
			
		||||
                                 CefJSDialogCallback,
 | 
			
		||||
                                 cef_jsdialog_callback_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefJSDialogCallbackCppToC();
 | 
			
		||||
  virtual ~CefJSDialogCallbackCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_JSDIALOG_CALLBACK_CPPTOC_H_
 | 
			
		||||
@@ -1,189 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=bef0fcdfb31af2009bb5920fa2fb245dde26b65d$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/jsdialog_handler_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/ctocpp/browser_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/ctocpp/jsdialog_callback_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
jsdialog_handler_on_jsdialog(struct _cef_jsdialog_handler_t* self,
 | 
			
		||||
                             cef_browser_t* browser,
 | 
			
		||||
                             const cef_string_t* origin_url,
 | 
			
		||||
                             cef_jsdialog_type_t dialog_type,
 | 
			
		||||
                             const cef_string_t* message_text,
 | 
			
		||||
                             const cef_string_t* default_prompt_text,
 | 
			
		||||
                             cef_jsdialog_callback_t* callback,
 | 
			
		||||
                             int* suppress_message) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: callback; type: refptr_diff
 | 
			
		||||
  DCHECK(callback);
 | 
			
		||||
  if (!callback) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: suppress_message; type: bool_byref
 | 
			
		||||
  DCHECK(suppress_message);
 | 
			
		||||
  if (!suppress_message) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Unverified params: origin_url, message_text, default_prompt_text
 | 
			
		||||
 | 
			
		||||
  // Translate param: suppress_message; type: bool_byref
 | 
			
		||||
  bool suppress_messageBool =
 | 
			
		||||
      (suppress_message && *suppress_message) ? true : false;
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefJSDialogHandlerCppToC::Get(self)->OnJSDialog(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), CefString(origin_url), dialog_type,
 | 
			
		||||
      CefString(message_text), CefString(default_prompt_text),
 | 
			
		||||
      CefJSDialogCallbackCToCpp::Wrap(callback), suppress_messageBool);
 | 
			
		||||
 | 
			
		||||
  // Restore param: suppress_message; type: bool_byref
 | 
			
		||||
  if (suppress_message) {
 | 
			
		||||
    *suppress_message = suppress_messageBool ? true : false;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
jsdialog_handler_on_before_unload_dialog(struct _cef_jsdialog_handler_t* self,
 | 
			
		||||
                                         cef_browser_t* browser,
 | 
			
		||||
                                         const cef_string_t* message_text,
 | 
			
		||||
                                         int is_reload,
 | 
			
		||||
                                         cef_jsdialog_callback_t* callback) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: callback; type: refptr_diff
 | 
			
		||||
  DCHECK(callback);
 | 
			
		||||
  if (!callback) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Unverified params: message_text
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefJSDialogHandlerCppToC::Get(self)->OnBeforeUnloadDialog(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), CefString(message_text),
 | 
			
		||||
      is_reload ? true : false, CefJSDialogCallbackCToCpp::Wrap(callback));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
jsdialog_handler_on_reset_dialog_state(struct _cef_jsdialog_handler_t* self,
 | 
			
		||||
                                       cef_browser_t* browser) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefJSDialogHandlerCppToC::Get(self)->OnResetDialogState(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
jsdialog_handler_on_dialog_closed(struct _cef_jsdialog_handler_t* self,
 | 
			
		||||
                                  cef_browser_t* browser) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefJSDialogHandlerCppToC::Get(self)->OnDialogClosed(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefJSDialogHandlerCppToC::CefJSDialogHandlerCppToC() {
 | 
			
		||||
  GetStruct()->on_jsdialog = jsdialog_handler_on_jsdialog;
 | 
			
		||||
  GetStruct()->on_before_unload_dialog =
 | 
			
		||||
      jsdialog_handler_on_before_unload_dialog;
 | 
			
		||||
  GetStruct()->on_reset_dialog_state = jsdialog_handler_on_reset_dialog_state;
 | 
			
		||||
  GetStruct()->on_dialog_closed = jsdialog_handler_on_dialog_closed;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefJSDialogHandlerCppToC::~CefJSDialogHandlerCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefJSDialogHandler> CefCppToCRefCounted<
 | 
			
		||||
    CefJSDialogHandlerCppToC,
 | 
			
		||||
    CefJSDialogHandler,
 | 
			
		||||
    cef_jsdialog_handler_t>::UnwrapDerived(CefWrapperType type,
 | 
			
		||||
                                           cef_jsdialog_handler_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefJSDialogHandlerCppToC,
 | 
			
		||||
                                   CefJSDialogHandler,
 | 
			
		||||
                                   cef_jsdialog_handler_t>::kWrapperType =
 | 
			
		||||
    WT_JSDIALOG_HANDLER;
 | 
			
		||||
@@ -1,38 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=fa0d14594aa86c629b8f7a8e25f2472aaac9cb76$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_JSDIALOG_HANDLER_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_JSDIALOG_HANDLER_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(WRAPPING_CEF_SHARED)
 | 
			
		||||
#error This file can be included wrapper-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_jsdialog_handler_capi.h"
 | 
			
		||||
#include "include/cef_jsdialog_handler.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed wrapper-side only.
 | 
			
		||||
class CefJSDialogHandlerCppToC
 | 
			
		||||
    : public CefCppToCRefCounted<CefJSDialogHandlerCppToC,
 | 
			
		||||
                                 CefJSDialogHandler,
 | 
			
		||||
                                 cef_jsdialog_handler_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefJSDialogHandlerCppToC();
 | 
			
		||||
  virtual ~CefJSDialogHandlerCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_JSDIALOG_HANDLER_CPPTOC_H_
 | 
			
		||||
@@ -1,138 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=4d7915109b97e7cda6b232032d2905c8a68313d2$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/keyboard_handler_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/ctocpp/browser_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
keyboard_handler_on_pre_key_event(struct _cef_keyboard_handler_t* self,
 | 
			
		||||
                                  cef_browser_t* browser,
 | 
			
		||||
                                  const cef_key_event_t* event,
 | 
			
		||||
                                  cef_event_handle_t os_event,
 | 
			
		||||
                                  int* is_keyboard_shortcut) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: event; type: simple_byref_const
 | 
			
		||||
  DCHECK(event);
 | 
			
		||||
  if (!event) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: is_keyboard_shortcut; type: bool_byaddr
 | 
			
		||||
  DCHECK(is_keyboard_shortcut);
 | 
			
		||||
  if (!is_keyboard_shortcut) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Translate param: event; type: simple_byref_const
 | 
			
		||||
  CefKeyEvent eventVal = event ? *event : CefKeyEvent();
 | 
			
		||||
  // Translate param: is_keyboard_shortcut; type: bool_byaddr
 | 
			
		||||
  bool is_keyboard_shortcutBool =
 | 
			
		||||
      (is_keyboard_shortcut && *is_keyboard_shortcut) ? true : false;
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefKeyboardHandlerCppToC::Get(self)->OnPreKeyEvent(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), eventVal, os_event,
 | 
			
		||||
      &is_keyboard_shortcutBool);
 | 
			
		||||
 | 
			
		||||
  // Restore param: is_keyboard_shortcut; type: bool_byaddr
 | 
			
		||||
  if (is_keyboard_shortcut) {
 | 
			
		||||
    *is_keyboard_shortcut = is_keyboard_shortcutBool ? true : false;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
keyboard_handler_on_key_event(struct _cef_keyboard_handler_t* self,
 | 
			
		||||
                              cef_browser_t* browser,
 | 
			
		||||
                              const cef_key_event_t* event,
 | 
			
		||||
                              cef_event_handle_t os_event) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: event; type: simple_byref_const
 | 
			
		||||
  DCHECK(event);
 | 
			
		||||
  if (!event) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Translate param: event; type: simple_byref_const
 | 
			
		||||
  CefKeyEvent eventVal = event ? *event : CefKeyEvent();
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefKeyboardHandlerCppToC::Get(self)->OnKeyEvent(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), eventVal, os_event);
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefKeyboardHandlerCppToC::CefKeyboardHandlerCppToC() {
 | 
			
		||||
  GetStruct()->on_pre_key_event = keyboard_handler_on_pre_key_event;
 | 
			
		||||
  GetStruct()->on_key_event = keyboard_handler_on_key_event;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefKeyboardHandlerCppToC::~CefKeyboardHandlerCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefKeyboardHandler> CefCppToCRefCounted<
 | 
			
		||||
    CefKeyboardHandlerCppToC,
 | 
			
		||||
    CefKeyboardHandler,
 | 
			
		||||
    cef_keyboard_handler_t>::UnwrapDerived(CefWrapperType type,
 | 
			
		||||
                                           cef_keyboard_handler_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefKeyboardHandlerCppToC,
 | 
			
		||||
                                   CefKeyboardHandler,
 | 
			
		||||
                                   cef_keyboard_handler_t>::kWrapperType =
 | 
			
		||||
    WT_KEYBOARD_HANDLER;
 | 
			
		||||
@@ -1,38 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=6bc046a36af09806fc957b4e16f2d99c0f1b556b$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_KEYBOARD_HANDLER_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_KEYBOARD_HANDLER_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(WRAPPING_CEF_SHARED)
 | 
			
		||||
#error This file can be included wrapper-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_keyboard_handler_capi.h"
 | 
			
		||||
#include "include/cef_keyboard_handler.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed wrapper-side only.
 | 
			
		||||
class CefKeyboardHandlerCppToC
 | 
			
		||||
    : public CefCppToCRefCounted<CefKeyboardHandlerCppToC,
 | 
			
		||||
                                 CefKeyboardHandler,
 | 
			
		||||
                                 cef_keyboard_handler_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefKeyboardHandlerCppToC();
 | 
			
		||||
  virtual ~CefKeyboardHandlerCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_KEYBOARD_HANDLER_CPPTOC_H_
 | 
			
		||||
@@ -1,421 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=b3844320e2d708a582a4bc2e3d5f2f143de8f514$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/life_span_handler_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/client_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/ctocpp/browser_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/ctocpp/dictionary_value_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/ctocpp/frame_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
#include "libcef_dll/template_util.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK life_span_handler_on_before_popup(
 | 
			
		||||
    struct _cef_life_span_handler_t* self,
 | 
			
		||||
    cef_browser_t* browser,
 | 
			
		||||
    cef_frame_t* frame,
 | 
			
		||||
    int popup_id,
 | 
			
		||||
    const cef_string_t* target_url,
 | 
			
		||||
    const cef_string_t* target_frame_name,
 | 
			
		||||
    cef_window_open_disposition_t target_disposition,
 | 
			
		||||
    int user_gesture,
 | 
			
		||||
    const cef_popup_features_t* popupFeatures,
 | 
			
		||||
    cef_window_info_t* windowInfo,
 | 
			
		||||
    cef_client_t** client,
 | 
			
		||||
    struct _cef_browser_settings_t* settings,
 | 
			
		||||
    struct _cef_dictionary_value_t** extra_info,
 | 
			
		||||
    int* no_javascript_access) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: frame; type: refptr_diff
 | 
			
		||||
  DCHECK(frame);
 | 
			
		||||
  if (!frame) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: popupFeatures; type: simple_byref_const
 | 
			
		||||
  DCHECK(popupFeatures);
 | 
			
		||||
  if (!popupFeatures) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: windowInfo; type: struct_byref
 | 
			
		||||
  DCHECK(windowInfo);
 | 
			
		||||
  if (!windowInfo) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  if (!template_util::has_valid_size(windowInfo)) {
 | 
			
		||||
    DCHECK(false) << "invalid windowInfo->[base.]size";
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: client; type: refptr_same_byref
 | 
			
		||||
  DCHECK(client);
 | 
			
		||||
  if (!client) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: settings; type: struct_byref
 | 
			
		||||
  DCHECK(settings);
 | 
			
		||||
  if (!settings) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  if (!template_util::has_valid_size(settings)) {
 | 
			
		||||
    DCHECK(false) << "invalid settings->[base.]size";
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: extra_info; type: refptr_diff_byref
 | 
			
		||||
  DCHECK(extra_info);
 | 
			
		||||
  if (!extra_info) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: no_javascript_access; type: bool_byaddr
 | 
			
		||||
  DCHECK(no_javascript_access);
 | 
			
		||||
  if (!no_javascript_access) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Unverified params: target_url, target_frame_name
 | 
			
		||||
 | 
			
		||||
  // Translate param: popupFeatures; type: simple_byref_const
 | 
			
		||||
  CefPopupFeatures popupFeaturesVal =
 | 
			
		||||
      popupFeatures ? *popupFeatures : CefPopupFeatures();
 | 
			
		||||
  // Translate param: windowInfo; type: struct_byref
 | 
			
		||||
  CefWindowInfo windowInfoObj;
 | 
			
		||||
  if (windowInfo) {
 | 
			
		||||
    windowInfoObj.AttachTo(*windowInfo);
 | 
			
		||||
  }
 | 
			
		||||
  // Translate param: client; type: refptr_same_byref
 | 
			
		||||
  CefRefPtr<CefClient> clientPtr;
 | 
			
		||||
  if (client && *client) {
 | 
			
		||||
    clientPtr = CefClientCppToC::Unwrap(*client);
 | 
			
		||||
  }
 | 
			
		||||
  CefClient* clientOrig = clientPtr.get();
 | 
			
		||||
  // Translate param: settings; type: struct_byref
 | 
			
		||||
  CefBrowserSettings settingsObj;
 | 
			
		||||
  if (settings) {
 | 
			
		||||
    settingsObj.AttachTo(*settings);
 | 
			
		||||
  }
 | 
			
		||||
  // Translate param: extra_info; type: refptr_diff_byref
 | 
			
		||||
  CefRefPtr<CefDictionaryValue> extra_infoPtr;
 | 
			
		||||
  if (extra_info && *extra_info) {
 | 
			
		||||
    extra_infoPtr = CefDictionaryValueCToCpp::Wrap(*extra_info);
 | 
			
		||||
  }
 | 
			
		||||
  CefDictionaryValue* extra_infoOrig = extra_infoPtr.get();
 | 
			
		||||
  // Translate param: no_javascript_access; type: bool_byaddr
 | 
			
		||||
  bool no_javascript_accessBool =
 | 
			
		||||
      (no_javascript_access && *no_javascript_access) ? true : false;
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefLifeSpanHandlerCppToC::Get(self)->OnBeforePopup(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), CefFrameCToCpp::Wrap(frame), popup_id,
 | 
			
		||||
      CefString(target_url), CefString(target_frame_name), target_disposition,
 | 
			
		||||
      user_gesture ? true : false, popupFeaturesVal, windowInfoObj, clientPtr,
 | 
			
		||||
      settingsObj, extra_infoPtr, &no_javascript_accessBool);
 | 
			
		||||
 | 
			
		||||
  // Restore param: windowInfo; type: struct_byref
 | 
			
		||||
  if (windowInfo) {
 | 
			
		||||
    windowInfoObj.DetachTo(*windowInfo);
 | 
			
		||||
  }
 | 
			
		||||
  // Restore param: client; type: refptr_same_byref
 | 
			
		||||
  if (client) {
 | 
			
		||||
    if (clientPtr.get()) {
 | 
			
		||||
      if (clientPtr.get() != clientOrig) {
 | 
			
		||||
        *client = CefClientCppToC::Wrap(clientPtr);
 | 
			
		||||
      }
 | 
			
		||||
    } else {
 | 
			
		||||
      *client = nullptr;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
  // Restore param: settings; type: struct_byref
 | 
			
		||||
  if (settings) {
 | 
			
		||||
    settingsObj.DetachTo(*settings);
 | 
			
		||||
  }
 | 
			
		||||
  // Restore param: extra_info; type: refptr_diff_byref
 | 
			
		||||
  if (extra_info) {
 | 
			
		||||
    if (extra_infoPtr.get()) {
 | 
			
		||||
      if (extra_infoPtr.get() != extra_infoOrig) {
 | 
			
		||||
        *extra_info = CefDictionaryValueCToCpp::Unwrap(extra_infoPtr);
 | 
			
		||||
      }
 | 
			
		||||
    } else {
 | 
			
		||||
      *extra_info = nullptr;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
  // Restore param: no_javascript_access; type: bool_byaddr
 | 
			
		||||
  if (no_javascript_access) {
 | 
			
		||||
    *no_javascript_access = no_javascript_accessBool ? true : false;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
life_span_handler_on_before_popup_aborted(struct _cef_life_span_handler_t* self,
 | 
			
		||||
                                          cef_browser_t* browser,
 | 
			
		||||
                                          int popup_id) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefLifeSpanHandlerCppToC::Get(self)->OnBeforePopupAborted(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), popup_id);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK life_span_handler_on_before_dev_tools_popup(
 | 
			
		||||
    struct _cef_life_span_handler_t* self,
 | 
			
		||||
    cef_browser_t* browser,
 | 
			
		||||
    cef_window_info_t* windowInfo,
 | 
			
		||||
    cef_client_t** client,
 | 
			
		||||
    struct _cef_browser_settings_t* settings,
 | 
			
		||||
    struct _cef_dictionary_value_t** extra_info,
 | 
			
		||||
    int* use_default_window) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: windowInfo; type: struct_byref
 | 
			
		||||
  DCHECK(windowInfo);
 | 
			
		||||
  if (!windowInfo) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  if (!template_util::has_valid_size(windowInfo)) {
 | 
			
		||||
    DCHECK(false) << "invalid windowInfo->[base.]size";
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: client; type: refptr_same_byref
 | 
			
		||||
  DCHECK(client);
 | 
			
		||||
  if (!client) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: settings; type: struct_byref
 | 
			
		||||
  DCHECK(settings);
 | 
			
		||||
  if (!settings) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  if (!template_util::has_valid_size(settings)) {
 | 
			
		||||
    DCHECK(false) << "invalid settings->[base.]size";
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: extra_info; type: refptr_diff_byref
 | 
			
		||||
  DCHECK(extra_info);
 | 
			
		||||
  if (!extra_info) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: use_default_window; type: bool_byaddr
 | 
			
		||||
  DCHECK(use_default_window);
 | 
			
		||||
  if (!use_default_window) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Translate param: windowInfo; type: struct_byref
 | 
			
		||||
  CefWindowInfo windowInfoObj;
 | 
			
		||||
  if (windowInfo) {
 | 
			
		||||
    windowInfoObj.AttachTo(*windowInfo);
 | 
			
		||||
  }
 | 
			
		||||
  // Translate param: client; type: refptr_same_byref
 | 
			
		||||
  CefRefPtr<CefClient> clientPtr;
 | 
			
		||||
  if (client && *client) {
 | 
			
		||||
    clientPtr = CefClientCppToC::Unwrap(*client);
 | 
			
		||||
  }
 | 
			
		||||
  CefClient* clientOrig = clientPtr.get();
 | 
			
		||||
  // Translate param: settings; type: struct_byref
 | 
			
		||||
  CefBrowserSettings settingsObj;
 | 
			
		||||
  if (settings) {
 | 
			
		||||
    settingsObj.AttachTo(*settings);
 | 
			
		||||
  }
 | 
			
		||||
  // Translate param: extra_info; type: refptr_diff_byref
 | 
			
		||||
  CefRefPtr<CefDictionaryValue> extra_infoPtr;
 | 
			
		||||
  if (extra_info && *extra_info) {
 | 
			
		||||
    extra_infoPtr = CefDictionaryValueCToCpp::Wrap(*extra_info);
 | 
			
		||||
  }
 | 
			
		||||
  CefDictionaryValue* extra_infoOrig = extra_infoPtr.get();
 | 
			
		||||
  // Translate param: use_default_window; type: bool_byaddr
 | 
			
		||||
  bool use_default_windowBool =
 | 
			
		||||
      (use_default_window && *use_default_window) ? true : false;
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefLifeSpanHandlerCppToC::Get(self)->OnBeforeDevToolsPopup(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), windowInfoObj, clientPtr, settingsObj,
 | 
			
		||||
      extra_infoPtr, &use_default_windowBool);
 | 
			
		||||
 | 
			
		||||
  // Restore param: windowInfo; type: struct_byref
 | 
			
		||||
  if (windowInfo) {
 | 
			
		||||
    windowInfoObj.DetachTo(*windowInfo);
 | 
			
		||||
  }
 | 
			
		||||
  // Restore param: client; type: refptr_same_byref
 | 
			
		||||
  if (client) {
 | 
			
		||||
    if (clientPtr.get()) {
 | 
			
		||||
      if (clientPtr.get() != clientOrig) {
 | 
			
		||||
        *client = CefClientCppToC::Wrap(clientPtr);
 | 
			
		||||
      }
 | 
			
		||||
    } else {
 | 
			
		||||
      *client = nullptr;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
  // Restore param: settings; type: struct_byref
 | 
			
		||||
  if (settings) {
 | 
			
		||||
    settingsObj.DetachTo(*settings);
 | 
			
		||||
  }
 | 
			
		||||
  // Restore param: extra_info; type: refptr_diff_byref
 | 
			
		||||
  if (extra_info) {
 | 
			
		||||
    if (extra_infoPtr.get()) {
 | 
			
		||||
      if (extra_infoPtr.get() != extra_infoOrig) {
 | 
			
		||||
        *extra_info = CefDictionaryValueCToCpp::Unwrap(extra_infoPtr);
 | 
			
		||||
      }
 | 
			
		||||
    } else {
 | 
			
		||||
      *extra_info = nullptr;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
  // Restore param: use_default_window; type: bool_byaddr
 | 
			
		||||
  if (use_default_window) {
 | 
			
		||||
    *use_default_window = use_default_windowBool ? true : false;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
life_span_handler_on_after_created(struct _cef_life_span_handler_t* self,
 | 
			
		||||
                                   cef_browser_t* browser) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefLifeSpanHandlerCppToC::Get(self)->OnAfterCreated(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK
 | 
			
		||||
life_span_handler_do_close(struct _cef_life_span_handler_t* self,
 | 
			
		||||
                           cef_browser_t* browser) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefLifeSpanHandlerCppToC::Get(self)->DoClose(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
life_span_handler_on_before_close(struct _cef_life_span_handler_t* self,
 | 
			
		||||
                                  cef_browser_t* browser) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefLifeSpanHandlerCppToC::Get(self)->OnBeforeClose(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefLifeSpanHandlerCppToC::CefLifeSpanHandlerCppToC() {
 | 
			
		||||
  GetStruct()->on_before_popup = life_span_handler_on_before_popup;
 | 
			
		||||
  GetStruct()->on_before_popup_aborted =
 | 
			
		||||
      life_span_handler_on_before_popup_aborted;
 | 
			
		||||
  GetStruct()->on_before_dev_tools_popup =
 | 
			
		||||
      life_span_handler_on_before_dev_tools_popup;
 | 
			
		||||
  GetStruct()->on_after_created = life_span_handler_on_after_created;
 | 
			
		||||
  GetStruct()->do_close = life_span_handler_do_close;
 | 
			
		||||
  GetStruct()->on_before_close = life_span_handler_on_before_close;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefLifeSpanHandlerCppToC::~CefLifeSpanHandlerCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefLifeSpanHandler> CefCppToCRefCounted<
 | 
			
		||||
    CefLifeSpanHandlerCppToC,
 | 
			
		||||
    CefLifeSpanHandler,
 | 
			
		||||
    cef_life_span_handler_t>::UnwrapDerived(CefWrapperType type,
 | 
			
		||||
                                            cef_life_span_handler_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefLifeSpanHandlerCppToC,
 | 
			
		||||
                                   CefLifeSpanHandler,
 | 
			
		||||
                                   cef_life_span_handler_t>::kWrapperType =
 | 
			
		||||
    WT_LIFE_SPAN_HANDLER;
 | 
			
		||||
@@ -1,40 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=cd7929df40f92067e230ffc6ca9e69ad76c8a86b$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_LIFE_SPAN_HANDLER_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_LIFE_SPAN_HANDLER_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(WRAPPING_CEF_SHARED)
 | 
			
		||||
#error This file can be included wrapper-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_client_capi.h"
 | 
			
		||||
#include "include/capi/cef_life_span_handler_capi.h"
 | 
			
		||||
#include "include/cef_client.h"
 | 
			
		||||
#include "include/cef_life_span_handler.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed wrapper-side only.
 | 
			
		||||
class CefLifeSpanHandlerCppToC
 | 
			
		||||
    : public CefCppToCRefCounted<CefLifeSpanHandlerCppToC,
 | 
			
		||||
                                 CefLifeSpanHandler,
 | 
			
		||||
                                 cef_life_span_handler_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefLifeSpanHandlerCppToC();
 | 
			
		||||
  virtual ~CefLifeSpanHandlerCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_LIFE_SPAN_HANDLER_CPPTOC_H_
 | 
			
		||||
@@ -1,642 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=84860bcc80ecc096e177118c9aa12e962250fc95$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/list_value_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/binary_value_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/dictionary_value_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/value_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
 | 
			
		||||
// GLOBAL FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
CEF_EXPORT cef_list_value_t* cef_list_value_create() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefListValue> _retval = CefListValue::Create();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefListValueCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK list_value_is_valid(struct _cef_list_value_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefListValueCppToC::Get(self)->IsValid();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK list_value_is_owned(struct _cef_list_value_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefListValueCppToC::Get(self)->IsOwned();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK list_value_is_read_only(struct _cef_list_value_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefListValueCppToC::Get(self)->IsReadOnly();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK list_value_is_same(struct _cef_list_value_t* self,
 | 
			
		||||
                                    struct _cef_list_value_t* that) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: that; type: refptr_same
 | 
			
		||||
  DCHECK(that);
 | 
			
		||||
  if (!that) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval =
 | 
			
		||||
      CefListValueCppToC::Get(self)->IsSame(CefListValueCppToC::Unwrap(that));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK list_value_is_equal(struct _cef_list_value_t* self,
 | 
			
		||||
                                     struct _cef_list_value_t* that) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: that; type: refptr_same
 | 
			
		||||
  DCHECK(that);
 | 
			
		||||
  if (!that) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval =
 | 
			
		||||
      CefListValueCppToC::Get(self)->IsEqual(CefListValueCppToC::Unwrap(that));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_list_value_t* CEF_CALLBACK
 | 
			
		||||
list_value_copy(struct _cef_list_value_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefListValue> _retval = CefListValueCppToC::Get(self)->Copy();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefListValueCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK list_value_set_size(struct _cef_list_value_t* self,
 | 
			
		||||
                                     size_t size) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefListValueCppToC::Get(self)->SetSize(size);
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
size_t CEF_CALLBACK list_value_get_size(struct _cef_list_value_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  size_t _retval = CefListValueCppToC::Get(self)->GetSize();
 | 
			
		||||
 | 
			
		||||
  // Return type: simple
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK list_value_clear(struct _cef_list_value_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefListValueCppToC::Get(self)->Clear();
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK list_value_remove(struct _cef_list_value_t* self,
 | 
			
		||||
                                   size_t index) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefListValueCppToC::Get(self)->Remove(index);
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_value_type_t CEF_CALLBACK
 | 
			
		||||
list_value_get_type(struct _cef_list_value_t* self, size_t index) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return VTYPE_INVALID;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  cef_value_type_t _retval = CefListValueCppToC::Get(self)->GetType(index);
 | 
			
		||||
 | 
			
		||||
  // Return type: simple
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_value_t* CEF_CALLBACK list_value_get_value(struct _cef_list_value_t* self,
 | 
			
		||||
                                               size_t index) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefValue> _retval = CefListValueCppToC::Get(self)->GetValue(index);
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefValueCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK list_value_get_bool(struct _cef_list_value_t* self,
 | 
			
		||||
                                     size_t index) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefListValueCppToC::Get(self)->GetBool(index);
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK list_value_get_int(struct _cef_list_value_t* self,
 | 
			
		||||
                                    size_t index) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  int _retval = CefListValueCppToC::Get(self)->GetInt(index);
 | 
			
		||||
 | 
			
		||||
  // Return type: simple
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
double CEF_CALLBACK list_value_get_double(struct _cef_list_value_t* self,
 | 
			
		||||
                                          size_t index) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  double _retval = CefListValueCppToC::Get(self)->GetDouble(index);
 | 
			
		||||
 | 
			
		||||
  // Return type: simple
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK
 | 
			
		||||
list_value_get_string(struct _cef_list_value_t* self, size_t index) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval = CefListValueCppToC::Get(self)->GetString(index);
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_binary_value_t* CEF_CALLBACK
 | 
			
		||||
list_value_get_binary(struct _cef_list_value_t* self, size_t index) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefBinaryValue> _retval =
 | 
			
		||||
      CefListValueCppToC::Get(self)->GetBinary(index);
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefBinaryValueCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cef_dictionary_value_t* CEF_CALLBACK
 | 
			
		||||
list_value_get_dictionary(struct _cef_list_value_t* self, size_t index) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefDictionaryValue> _retval =
 | 
			
		||||
      CefListValueCppToC::Get(self)->GetDictionary(index);
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefDictionaryValueCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_list_value_t* CEF_CALLBACK
 | 
			
		||||
list_value_get_list(struct _cef_list_value_t* self, size_t index) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefListValue> _retval =
 | 
			
		||||
      CefListValueCppToC::Get(self)->GetList(index);
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefListValueCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK list_value_set_value(struct _cef_list_value_t* self,
 | 
			
		||||
                                      size_t index,
 | 
			
		||||
                                      cef_value_t* value) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: value; type: refptr_same
 | 
			
		||||
  DCHECK(value);
 | 
			
		||||
  if (!value) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefListValueCppToC::Get(self)->SetValue(
 | 
			
		||||
      index, CefValueCppToC::Unwrap(value));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK list_value_set_null(struct _cef_list_value_t* self,
 | 
			
		||||
                                     size_t index) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefListValueCppToC::Get(self)->SetNull(index);
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK list_value_set_bool(struct _cef_list_value_t* self,
 | 
			
		||||
                                     size_t index,
 | 
			
		||||
                                     int value) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval =
 | 
			
		||||
      CefListValueCppToC::Get(self)->SetBool(index, value ? true : false);
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK list_value_set_int(struct _cef_list_value_t* self,
 | 
			
		||||
                                    size_t index,
 | 
			
		||||
                                    int value) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefListValueCppToC::Get(self)->SetInt(index, value);
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK list_value_set_double(struct _cef_list_value_t* self,
 | 
			
		||||
                                       size_t index,
 | 
			
		||||
                                       double value) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefListValueCppToC::Get(self)->SetDouble(index, value);
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK list_value_set_string(struct _cef_list_value_t* self,
 | 
			
		||||
                                       size_t index,
 | 
			
		||||
                                       const cef_string_t* value) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Unverified params: value
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval =
 | 
			
		||||
      CefListValueCppToC::Get(self)->SetString(index, CefString(value));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK list_value_set_binary(struct _cef_list_value_t* self,
 | 
			
		||||
                                       size_t index,
 | 
			
		||||
                                       cef_binary_value_t* value) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: value; type: refptr_same
 | 
			
		||||
  DCHECK(value);
 | 
			
		||||
  if (!value) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefListValueCppToC::Get(self)->SetBinary(
 | 
			
		||||
      index, CefBinaryValueCppToC::Unwrap(value));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK list_value_set_dictionary(struct _cef_list_value_t* self,
 | 
			
		||||
                                           size_t index,
 | 
			
		||||
                                           cef_dictionary_value_t* value) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: value; type: refptr_same
 | 
			
		||||
  DCHECK(value);
 | 
			
		||||
  if (!value) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefListValueCppToC::Get(self)->SetDictionary(
 | 
			
		||||
      index, CefDictionaryValueCppToC::Unwrap(value));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CEF_CALLBACK list_value_set_list(struct _cef_list_value_t* self,
 | 
			
		||||
                                     size_t index,
 | 
			
		||||
                                     struct _cef_list_value_t* value) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: value; type: refptr_same
 | 
			
		||||
  DCHECK(value);
 | 
			
		||||
  if (!value) {
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  bool _retval = CefListValueCppToC::Get(self)->SetList(
 | 
			
		||||
      index, CefListValueCppToC::Unwrap(value));
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefListValueCppToC::CefListValueCppToC() {
 | 
			
		||||
  GetStruct()->is_valid = list_value_is_valid;
 | 
			
		||||
  GetStruct()->is_owned = list_value_is_owned;
 | 
			
		||||
  GetStruct()->is_read_only = list_value_is_read_only;
 | 
			
		||||
  GetStruct()->is_same = list_value_is_same;
 | 
			
		||||
  GetStruct()->is_equal = list_value_is_equal;
 | 
			
		||||
  GetStruct()->copy = list_value_copy;
 | 
			
		||||
  GetStruct()->set_size = list_value_set_size;
 | 
			
		||||
  GetStruct()->get_size = list_value_get_size;
 | 
			
		||||
  GetStruct()->clear = list_value_clear;
 | 
			
		||||
  GetStruct()->remove = list_value_remove;
 | 
			
		||||
  GetStruct()->get_type = list_value_get_type;
 | 
			
		||||
  GetStruct()->get_value = list_value_get_value;
 | 
			
		||||
  GetStruct()->get_bool = list_value_get_bool;
 | 
			
		||||
  GetStruct()->get_int = list_value_get_int;
 | 
			
		||||
  GetStruct()->get_double = list_value_get_double;
 | 
			
		||||
  GetStruct()->get_string = list_value_get_string;
 | 
			
		||||
  GetStruct()->get_binary = list_value_get_binary;
 | 
			
		||||
  GetStruct()->get_dictionary = list_value_get_dictionary;
 | 
			
		||||
  GetStruct()->get_list = list_value_get_list;
 | 
			
		||||
  GetStruct()->set_value = list_value_set_value;
 | 
			
		||||
  GetStruct()->set_null = list_value_set_null;
 | 
			
		||||
  GetStruct()->set_bool = list_value_set_bool;
 | 
			
		||||
  GetStruct()->set_int = list_value_set_int;
 | 
			
		||||
  GetStruct()->set_double = list_value_set_double;
 | 
			
		||||
  GetStruct()->set_string = list_value_set_string;
 | 
			
		||||
  GetStruct()->set_binary = list_value_set_binary;
 | 
			
		||||
  GetStruct()->set_dictionary = list_value_set_dictionary;
 | 
			
		||||
  GetStruct()->set_list = list_value_set_list;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefListValueCppToC::~CefListValueCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefListValue>
 | 
			
		||||
CefCppToCRefCounted<CefListValueCppToC, CefListValue, cef_list_value_t>::
 | 
			
		||||
    UnwrapDerived(CefWrapperType type, cef_list_value_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefListValueCppToC,
 | 
			
		||||
                                   CefListValue,
 | 
			
		||||
                                   cef_list_value_t>::kWrapperType =
 | 
			
		||||
    WT_LIST_VALUE;
 | 
			
		||||
@@ -1,37 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=0d62014e7287cb6da34a31a9e0349b9bf2b39c5d$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_LIST_VALUE_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_LIST_VALUE_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(BUILDING_CEF_SHARED)
 | 
			
		||||
#error This file can be included DLL-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_values_capi.h"
 | 
			
		||||
#include "include/cef_values.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed DLL-side only.
 | 
			
		||||
class CefListValueCppToC : public CefCppToCRefCounted<CefListValueCppToC,
 | 
			
		||||
                                                      CefListValue,
 | 
			
		||||
                                                      cef_list_value_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefListValueCppToC();
 | 
			
		||||
  virtual ~CefListValueCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_LIST_VALUE_CPPTOC_H_
 | 
			
		||||
@@ -1,176 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=2d63cbebe2763277da8c890fa93873dab14a8d44$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/load_handler_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/ctocpp/browser_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/ctocpp/frame_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
load_handler_on_loading_state_change(struct _cef_load_handler_t* self,
 | 
			
		||||
                                     cef_browser_t* browser,
 | 
			
		||||
                                     int isLoading,
 | 
			
		||||
                                     int canGoBack,
 | 
			
		||||
                                     int canGoForward) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefLoadHandlerCppToC::Get(self)->OnLoadingStateChange(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), isLoading ? true : false,
 | 
			
		||||
      canGoBack ? true : false, canGoForward ? true : false);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
load_handler_on_load_start(struct _cef_load_handler_t* self,
 | 
			
		||||
                           cef_browser_t* browser,
 | 
			
		||||
                           cef_frame_t* frame,
 | 
			
		||||
                           cef_transition_type_t transition_type) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: frame; type: refptr_diff
 | 
			
		||||
  DCHECK(frame);
 | 
			
		||||
  if (!frame) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefLoadHandlerCppToC::Get(self)->OnLoadStart(CefBrowserCToCpp::Wrap(browser),
 | 
			
		||||
                                               CefFrameCToCpp::Wrap(frame),
 | 
			
		||||
                                               transition_type);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK load_handler_on_load_end(struct _cef_load_handler_t* self,
 | 
			
		||||
                                           cef_browser_t* browser,
 | 
			
		||||
                                           cef_frame_t* frame,
 | 
			
		||||
                                           int httpStatusCode) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: frame; type: refptr_diff
 | 
			
		||||
  DCHECK(frame);
 | 
			
		||||
  if (!frame) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefLoadHandlerCppToC::Get(self)->OnLoadEnd(CefBrowserCToCpp::Wrap(browser),
 | 
			
		||||
                                             CefFrameCToCpp::Wrap(frame),
 | 
			
		||||
                                             httpStatusCode);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK load_handler_on_load_error(struct _cef_load_handler_t* self,
 | 
			
		||||
                                             cef_browser_t* browser,
 | 
			
		||||
                                             cef_frame_t* frame,
 | 
			
		||||
                                             cef_errorcode_t errorCode,
 | 
			
		||||
                                             const cef_string_t* errorText,
 | 
			
		||||
                                             const cef_string_t* failedUrl) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: browser; type: refptr_diff
 | 
			
		||||
  DCHECK(browser);
 | 
			
		||||
  if (!browser) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: frame; type: refptr_diff
 | 
			
		||||
  DCHECK(frame);
 | 
			
		||||
  if (!frame) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: failedUrl; type: string_byref_const
 | 
			
		||||
  DCHECK(failedUrl);
 | 
			
		||||
  if (!failedUrl) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Unverified params: errorText
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefLoadHandlerCppToC::Get(self)->OnLoadError(
 | 
			
		||||
      CefBrowserCToCpp::Wrap(browser), CefFrameCToCpp::Wrap(frame), errorCode,
 | 
			
		||||
      CefString(errorText), CefString(failedUrl));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefLoadHandlerCppToC::CefLoadHandlerCppToC() {
 | 
			
		||||
  GetStruct()->on_loading_state_change = load_handler_on_loading_state_change;
 | 
			
		||||
  GetStruct()->on_load_start = load_handler_on_load_start;
 | 
			
		||||
  GetStruct()->on_load_end = load_handler_on_load_end;
 | 
			
		||||
  GetStruct()->on_load_error = load_handler_on_load_error;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefLoadHandlerCppToC::~CefLoadHandlerCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefLoadHandler>
 | 
			
		||||
CefCppToCRefCounted<CefLoadHandlerCppToC, CefLoadHandler, cef_load_handler_t>::
 | 
			
		||||
    UnwrapDerived(CefWrapperType type, cef_load_handler_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefLoadHandlerCppToC,
 | 
			
		||||
                                   CefLoadHandler,
 | 
			
		||||
                                   cef_load_handler_t>::kWrapperType =
 | 
			
		||||
    WT_LOAD_HANDLER;
 | 
			
		||||
@@ -1,37 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=1e7b2ebc3ed2229e3dbef5adfb6ae879cc6c2c2c$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_LOAD_HANDLER_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_LOAD_HANDLER_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(WRAPPING_CEF_SHARED)
 | 
			
		||||
#error This file can be included wrapper-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_load_handler_capi.h"
 | 
			
		||||
#include "include/cef_load_handler.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed wrapper-side only.
 | 
			
		||||
class CefLoadHandlerCppToC : public CefCppToCRefCounted<CefLoadHandlerCppToC,
 | 
			
		||||
                                                        CefLoadHandler,
 | 
			
		||||
                                                        cef_load_handler_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefLoadHandlerCppToC();
 | 
			
		||||
  virtual ~CefLoadHandlerCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_LOAD_HANDLER_CPPTOC_H_
 | 
			
		||||
@@ -1,84 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=43620131fd71a3f775e8bd43277b11fa814343e0$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/media_access_callback_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
media_access_callback_cont(struct _cef_media_access_callback_t* self,
 | 
			
		||||
                           uint32_t allowed_permissions) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefMediaAccessCallbackCppToC::Get(self)->Continue(allowed_permissions);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
media_access_callback_cancel(struct _cef_media_access_callback_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefMediaAccessCallbackCppToC::Get(self)->Cancel();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefMediaAccessCallbackCppToC::CefMediaAccessCallbackCppToC() {
 | 
			
		||||
  GetStruct()->cont = media_access_callback_cont;
 | 
			
		||||
  GetStruct()->cancel = media_access_callback_cancel;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefMediaAccessCallbackCppToC::~CefMediaAccessCallbackCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefMediaAccessCallback> CefCppToCRefCounted<
 | 
			
		||||
    CefMediaAccessCallbackCppToC,
 | 
			
		||||
    CefMediaAccessCallback,
 | 
			
		||||
    cef_media_access_callback_t>::UnwrapDerived(CefWrapperType type,
 | 
			
		||||
                                                cef_media_access_callback_t*
 | 
			
		||||
                                                    s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefMediaAccessCallbackCppToC,
 | 
			
		||||
                                   CefMediaAccessCallback,
 | 
			
		||||
                                   cef_media_access_callback_t>::kWrapperType =
 | 
			
		||||
    WT_MEDIA_ACCESS_CALLBACK;
 | 
			
		||||
@@ -1,38 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=03282b7e3e3664aa68bc37231d3475a6edde85d5$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_MEDIA_ACCESS_CALLBACK_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_MEDIA_ACCESS_CALLBACK_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(BUILDING_CEF_SHARED)
 | 
			
		||||
#error This file can be included DLL-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_permission_handler_capi.h"
 | 
			
		||||
#include "include/cef_permission_handler.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed DLL-side only.
 | 
			
		||||
class CefMediaAccessCallbackCppToC
 | 
			
		||||
    : public CefCppToCRefCounted<CefMediaAccessCallbackCppToC,
 | 
			
		||||
                                 CefMediaAccessCallback,
 | 
			
		||||
                                 cef_media_access_callback_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefMediaAccessCallbackCppToC();
 | 
			
		||||
  virtual ~CefMediaAccessCallbackCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_MEDIA_ACCESS_CALLBACK_CPPTOC_H_
 | 
			
		||||
@@ -1,171 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=bda6f1c15445d32a8f86b0c62724c01e6a014208$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/media_observer_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/ctocpp/media_route_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/ctocpp/media_sink_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
media_observer_on_sinks(struct _cef_media_observer_t* self,
 | 
			
		||||
                        size_t sinksCount,
 | 
			
		||||
                        struct _cef_media_sink_t* const* sinks) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: sinks; type: refptr_vec_diff_byref_const
 | 
			
		||||
  DCHECK(sinksCount == 0 || sinks);
 | 
			
		||||
  if (sinksCount > 0 && !sinks) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Translate param: sinks; type: refptr_vec_diff_byref_const
 | 
			
		||||
  std::vector<CefRefPtr<CefMediaSink>> sinksList;
 | 
			
		||||
  if (sinksCount > 0) {
 | 
			
		||||
    for (size_t i = 0; i < sinksCount; ++i) {
 | 
			
		||||
      CefRefPtr<CefMediaSink> sinksVal = CefMediaSinkCToCpp::Wrap(sinks[i]);
 | 
			
		||||
      sinksList.push_back(sinksVal);
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefMediaObserverCppToC::Get(self)->OnSinks(sinksList);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
media_observer_on_routes(struct _cef_media_observer_t* self,
 | 
			
		||||
                         size_t routesCount,
 | 
			
		||||
                         struct _cef_media_route_t* const* routes) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: routes; type: refptr_vec_diff_byref_const
 | 
			
		||||
  DCHECK(routesCount == 0 || routes);
 | 
			
		||||
  if (routesCount > 0 && !routes) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Translate param: routes; type: refptr_vec_diff_byref_const
 | 
			
		||||
  std::vector<CefRefPtr<CefMediaRoute>> routesList;
 | 
			
		||||
  if (routesCount > 0) {
 | 
			
		||||
    for (size_t i = 0; i < routesCount; ++i) {
 | 
			
		||||
      CefRefPtr<CefMediaRoute> routesVal = CefMediaRouteCToCpp::Wrap(routes[i]);
 | 
			
		||||
      routesList.push_back(routesVal);
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefMediaObserverCppToC::Get(self)->OnRoutes(routesList);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK media_observer_on_route_state_changed(
 | 
			
		||||
    struct _cef_media_observer_t* self,
 | 
			
		||||
    struct _cef_media_route_t* route,
 | 
			
		||||
    cef_media_route_connection_state_t state) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: route; type: refptr_diff
 | 
			
		||||
  DCHECK(route);
 | 
			
		||||
  if (!route) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefMediaObserverCppToC::Get(self)->OnRouteStateChanged(
 | 
			
		||||
      CefMediaRouteCToCpp::Wrap(route), state);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
media_observer_on_route_message_received(struct _cef_media_observer_t* self,
 | 
			
		||||
                                         struct _cef_media_route_t* route,
 | 
			
		||||
                                         const void* message,
 | 
			
		||||
                                         size_t message_size) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: route; type: refptr_diff
 | 
			
		||||
  DCHECK(route);
 | 
			
		||||
  if (!route) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: message; type: simple_byaddr
 | 
			
		||||
  DCHECK(message);
 | 
			
		||||
  if (!message) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefMediaObserverCppToC::Get(self)->OnRouteMessageReceived(
 | 
			
		||||
      CefMediaRouteCToCpp::Wrap(route), message, message_size);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefMediaObserverCppToC::CefMediaObserverCppToC() {
 | 
			
		||||
  GetStruct()->on_sinks = media_observer_on_sinks;
 | 
			
		||||
  GetStruct()->on_routes = media_observer_on_routes;
 | 
			
		||||
  GetStruct()->on_route_state_changed = media_observer_on_route_state_changed;
 | 
			
		||||
  GetStruct()->on_route_message_received =
 | 
			
		||||
      media_observer_on_route_message_received;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefMediaObserverCppToC::~CefMediaObserverCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefMediaObserver> CefCppToCRefCounted<
 | 
			
		||||
    CefMediaObserverCppToC,
 | 
			
		||||
    CefMediaObserver,
 | 
			
		||||
    cef_media_observer_t>::UnwrapDerived(CefWrapperType type,
 | 
			
		||||
                                         cef_media_observer_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefMediaObserverCppToC,
 | 
			
		||||
                                   CefMediaObserver,
 | 
			
		||||
                                   cef_media_observer_t>::kWrapperType =
 | 
			
		||||
    WT_MEDIA_OBSERVER;
 | 
			
		||||
@@ -1,38 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=6f7dd106022ef26563306a40ac5506fb626c9742$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_MEDIA_OBSERVER_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_MEDIA_OBSERVER_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(WRAPPING_CEF_SHARED)
 | 
			
		||||
#error This file can be included wrapper-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_media_router_capi.h"
 | 
			
		||||
#include "include/cef_media_router.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed wrapper-side only.
 | 
			
		||||
class CefMediaObserverCppToC
 | 
			
		||||
    : public CefCppToCRefCounted<CefMediaObserverCppToC,
 | 
			
		||||
                                 CefMediaObserver,
 | 
			
		||||
                                 cef_media_observer_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefMediaObserverCppToC();
 | 
			
		||||
  virtual ~CefMediaObserverCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_MEDIA_OBSERVER_CPPTOC_H_
 | 
			
		||||
@@ -1,146 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=c6e463595409ce6ea23901a0732c31c412144cb1$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/media_route_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/media_sink_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/media_source_cpptoc.h"
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
cef_string_userfree_t CEF_CALLBACK
 | 
			
		||||
media_route_get_id(struct _cef_media_route_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefString _retval = CefMediaRouteCppToC::Get(self)->GetId();
 | 
			
		||||
 | 
			
		||||
  // Return type: string
 | 
			
		||||
  return _retval.DetachToUserFree();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_media_source_t* CEF_CALLBACK
 | 
			
		||||
media_route_get_source(struct _cef_media_route_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefMediaSource> _retval =
 | 
			
		||||
      CefMediaRouteCppToC::Get(self)->GetSource();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefMediaSourceCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct _cef_media_sink_t* CEF_CALLBACK
 | 
			
		||||
media_route_get_sink(struct _cef_media_route_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return NULL;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefRefPtr<CefMediaSink> _retval = CefMediaRouteCppToC::Get(self)->GetSink();
 | 
			
		||||
 | 
			
		||||
  // Return type: refptr_same
 | 
			
		||||
  return CefMediaSinkCppToC::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK
 | 
			
		||||
media_route_send_route_message(struct _cef_media_route_t* self,
 | 
			
		||||
                               const void* message,
 | 
			
		||||
                               size_t message_size) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Verify param: message; type: simple_byaddr
 | 
			
		||||
  DCHECK(message);
 | 
			
		||||
  if (!message) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefMediaRouteCppToC::Get(self)->SendRouteMessage(message, message_size);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK media_route_terminate(struct _cef_media_route_t* self) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefMediaRouteCppToC::Get(self)->Terminate();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefMediaRouteCppToC::CefMediaRouteCppToC() {
 | 
			
		||||
  GetStruct()->get_id = media_route_get_id;
 | 
			
		||||
  GetStruct()->get_source = media_route_get_source;
 | 
			
		||||
  GetStruct()->get_sink = media_route_get_sink;
 | 
			
		||||
  GetStruct()->send_route_message = media_route_send_route_message;
 | 
			
		||||
  GetStruct()->terminate = media_route_terminate;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefMediaRouteCppToC::~CefMediaRouteCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefMediaRoute>
 | 
			
		||||
CefCppToCRefCounted<CefMediaRouteCppToC, CefMediaRoute, cef_media_route_t>::
 | 
			
		||||
    UnwrapDerived(CefWrapperType type, cef_media_route_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType CefCppToCRefCounted<CefMediaRouteCppToC,
 | 
			
		||||
                                   CefMediaRoute,
 | 
			
		||||
                                   cef_media_route_t>::kWrapperType =
 | 
			
		||||
    WT_MEDIA_ROUTE;
 | 
			
		||||
@@ -1,37 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=00e6dfe28ab8faaf9ec904d5d570a76b91360058$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_MEDIA_ROUTE_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_MEDIA_ROUTE_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(BUILDING_CEF_SHARED)
 | 
			
		||||
#error This file can be included DLL-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_media_router_capi.h"
 | 
			
		||||
#include "include/cef_media_router.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed DLL-side only.
 | 
			
		||||
class CefMediaRouteCppToC : public CefCppToCRefCounted<CefMediaRouteCppToC,
 | 
			
		||||
                                                       CefMediaRoute,
 | 
			
		||||
                                                       cef_media_route_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefMediaRouteCppToC();
 | 
			
		||||
  virtual ~CefMediaRouteCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_MEDIA_ROUTE_CPPTOC_H_
 | 
			
		||||
@@ -1,74 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=cfb96c6b081d44a4dde50c7cda61e3481c63ce43$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/cpptoc/media_route_create_callback_cpptoc.h"
 | 
			
		||||
 | 
			
		||||
#include "libcef_dll/ctocpp/media_route_ctocpp.h"
 | 
			
		||||
#include "libcef_dll/shutdown_checker.h"
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
// MEMBER FUNCTIONS - Body may be edited by hand.
 | 
			
		||||
 | 
			
		||||
void CEF_CALLBACK media_route_create_callback_on_media_route_create_finished(
 | 
			
		||||
    struct _cef_media_route_create_callback_t* self,
 | 
			
		||||
    cef_media_route_create_result_t result,
 | 
			
		||||
    const cef_string_t* error,
 | 
			
		||||
    cef_media_route_t* route) {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  DCHECK(self);
 | 
			
		||||
  if (!self) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
  // Unverified params: error, route
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  CefMediaRouteCreateCallbackCppToC::Get(self)->OnMediaRouteCreateFinished(
 | 
			
		||||
      result, CefString(error), CefMediaRouteCToCpp::Wrap(route));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
}  // namespace
 | 
			
		||||
 | 
			
		||||
// CONSTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefMediaRouteCreateCallbackCppToC::CefMediaRouteCreateCallbackCppToC() {
 | 
			
		||||
  GetStruct()->on_media_route_create_finished =
 | 
			
		||||
      media_route_create_callback_on_media_route_create_finished;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DESTRUCTOR - Do not edit by hand.
 | 
			
		||||
 | 
			
		||||
CefMediaRouteCreateCallbackCppToC::~CefMediaRouteCreateCallbackCppToC() {
 | 
			
		||||
  shutdown_checker::AssertNotShutdown();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefRefPtr<CefMediaRouteCreateCallback>
 | 
			
		||||
CefCppToCRefCounted<CefMediaRouteCreateCallbackCppToC,
 | 
			
		||||
                    CefMediaRouteCreateCallback,
 | 
			
		||||
                    cef_media_route_create_callback_t>::
 | 
			
		||||
    UnwrapDerived(CefWrapperType type, cef_media_route_create_callback_t* s) {
 | 
			
		||||
  DCHECK(false) << "Unexpected class type: " << type;
 | 
			
		||||
  return nullptr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
CefWrapperType
 | 
			
		||||
    CefCppToCRefCounted<CefMediaRouteCreateCallbackCppToC,
 | 
			
		||||
                        CefMediaRouteCreateCallback,
 | 
			
		||||
                        cef_media_route_create_callback_t>::kWrapperType =
 | 
			
		||||
        WT_MEDIA_ROUTE_CREATE_CALLBACK;
 | 
			
		||||
@@ -1,38 +0,0 @@
 | 
			
		||||
// Copyright (c) 2024 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.
 | 
			
		||||
//
 | 
			
		||||
// ---------------------------------------------------------------------------
 | 
			
		||||
//
 | 
			
		||||
// 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.
 | 
			
		||||
//
 | 
			
		||||
// $hash=658240aaf9f3ba4e65878c27bfc604f3d3f7ff7c$
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_MEDIA_ROUTE_CREATE_CALLBACK_CPPTOC_H_
 | 
			
		||||
#define CEF_LIBCEF_DLL_CPPTOC_MEDIA_ROUTE_CREATE_CALLBACK_CPPTOC_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if !defined(WRAPPING_CEF_SHARED)
 | 
			
		||||
#error This file can be included wrapper-side only
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include "include/capi/cef_media_router_capi.h"
 | 
			
		||||
#include "include/cef_media_router.h"
 | 
			
		||||
#include "libcef_dll/cpptoc/cpptoc_ref_counted.h"
 | 
			
		||||
 | 
			
		||||
// Wrap a C++ class with a C structure.
 | 
			
		||||
// This class may be instantiated and accessed wrapper-side only.
 | 
			
		||||
class CefMediaRouteCreateCallbackCppToC
 | 
			
		||||
    : public CefCppToCRefCounted<CefMediaRouteCreateCallbackCppToC,
 | 
			
		||||
                                 CefMediaRouteCreateCallback,
 | 
			
		||||
                                 cef_media_route_create_callback_t> {
 | 
			
		||||
 public:
 | 
			
		||||
  CefMediaRouteCreateCallbackCppToC();
 | 
			
		||||
  virtual ~CefMediaRouteCreateCallbackCppToC();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif  // CEF_LIBCEF_DLL_CPPTOC_MEDIA_ROUTE_CREATE_CALLBACK_CPPTOC_H_
 | 
			
		||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user