2020-01-06 10:59:05 +01:00
|
|
|
// Copyright (c) 2020 The Chromium Embedded Framework Authors. All rights
|
2016-01-19 21:09:01 +01:00
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
//
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// This file was generated by the CEF translator tool. If making changes by
|
|
|
|
// hand only do so within the body of existing method and function
|
|
|
|
// implementations. See the translator.README.txt file in the tools directory
|
|
|
|
// for more information.
|
|
|
|
//
|
2020-01-15 14:53:19 +01:00
|
|
|
// $hash=5477e0f2a6661422b3e2d719e97f8e76ce0a631c$
|
2017-05-17 11:29:28 +02:00
|
|
|
//
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
#include "libcef_dll/cpptoc/image_cpptoc.h"
|
2017-05-19 11:06:00 +02:00
|
|
|
#include "libcef_dll/cpptoc/binary_value_cpptoc.h"
|
2019-01-23 16:42:12 +01:00
|
|
|
#include "libcef_dll/shutdown_checker.h"
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// GLOBAL FUNCTIONS - Body may be edited by hand.
|
|
|
|
|
|
|
|
CEF_EXPORT cef_image_t* cef_image_create() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
// 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) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
// 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,
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_image_t* that) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
// 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
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefImageCppToC::Get(self)->IsSame(CefImageCppToC::Unwrap(that));
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
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) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
// 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(
|
2017-05-17 11:29:28 +02:00
|
|
|
scale_factor, pixel_width, pixel_height, color_type, alpha_type,
|
|
|
|
pixel_data, pixel_data_size);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
int CEF_CALLBACK image_add_png(struct _cef_image_t* self,
|
|
|
|
float scale_factor,
|
|
|
|
const void* png_data,
|
|
|
|
size_t png_data_size) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
// 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
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefImageCppToC::Get(self)->AddPNG(scale_factor, png_data, png_data_size);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
int CEF_CALLBACK image_add_jpeg(struct _cef_image_t* self,
|
|
|
|
float scale_factor,
|
|
|
|
const void* jpeg_data,
|
|
|
|
size_t jpeg_data_size) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
// 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
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefImageCppToC::Get(self)->AddJPEG(scale_factor, jpeg_data,
|
|
|
|
jpeg_data_size);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
size_t CEF_CALLBACK image_get_width(struct _cef_image_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
// 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) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
// 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,
|
2017-05-17 11:29:28 +02:00
|
|
|
float scale_factor) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefImageCppToC::Get(self)->HasRepresentation(scale_factor);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK image_remove_representation(struct _cef_image_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
float scale_factor) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefImageCppToC::Get(self)->RemoveRepresentation(scale_factor);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK image_get_representation_info(struct _cef_image_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
float scale_factor,
|
|
|
|
float* actual_scale_factor,
|
|
|
|
int* pixel_width,
|
|
|
|
int* pixel_height) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
// 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
|
2017-05-17 11:29:28 +02:00
|
|
|
float actual_scale_factorVal = actual_scale_factor ? *actual_scale_factor : 0;
|
2016-01-19 21:09:01 +01:00
|
|
|
// Translate param: pixel_width; type: simple_byref
|
2017-05-17 11:29:28 +02:00
|
|
|
int pixel_widthVal = pixel_width ? *pixel_width : 0;
|
2016-01-19 21:09:01 +01:00
|
|
|
// Translate param: pixel_height; type: simple_byref
|
2017-05-17 11:29:28 +02:00
|
|
|
int pixel_heightVal = pixel_height ? *pixel_height : 0;
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefImageCppToC::Get(self)->GetRepresentationInfo(
|
2017-05-17 11:29:28 +02:00
|
|
|
scale_factor, actual_scale_factorVal, pixel_widthVal, pixel_heightVal);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
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) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
// 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
|
2017-05-17 11:29:28 +02:00
|
|
|
int pixel_widthVal = pixel_width ? *pixel_width : 0;
|
2016-01-19 21:09:01 +01:00
|
|
|
// Translate param: pixel_height; type: simple_byref
|
2017-05-17 11:29:28 +02:00
|
|
|
int pixel_heightVal = pixel_height ? *pixel_height : 0;
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefRefPtr<CefBinaryValue> _retval = CefImageCppToC::Get(self)->GetAsBitmap(
|
2017-05-17 11:29:28 +02:00
|
|
|
scale_factor, color_type, alpha_type, pixel_widthVal, pixel_heightVal);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// 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);
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
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) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
// 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
|
2017-05-17 11:29:28 +02:00
|
|
|
int pixel_widthVal = pixel_width ? *pixel_width : 0;
|
2016-01-19 21:09:01 +01:00
|
|
|
// Translate param: pixel_height; type: simple_byref
|
2017-05-17 11:29:28 +02:00
|
|
|
int pixel_heightVal = pixel_height ? *pixel_height : 0;
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefRefPtr<CefBinaryValue> _retval = CefImageCppToC::Get(self)->GetAsPNG(
|
2017-05-17 11:29:28 +02:00
|
|
|
scale_factor, with_transparency ? true : false, pixel_widthVal,
|
2016-01-19 21:09:01 +01:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
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) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
// 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
|
2017-05-17 11:29:28 +02:00
|
|
|
int pixel_widthVal = pixel_width ? *pixel_width : 0;
|
2016-01-19 21:09:01 +01:00
|
|
|
// Translate param: pixel_height; type: simple_byref
|
2017-05-17 11:29:28 +02:00
|
|
|
int pixel_heightVal = pixel_height ? *pixel_height : 0;
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefRefPtr<CefBinaryValue> _retval = CefImageCppToC::Get(self)->GetAsJPEG(
|
2017-05-17 11:29:28 +02:00
|
|
|
scale_factor, quality, pixel_widthVal, pixel_heightVal);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
|
2019-01-23 16:42:12 +01:00
|
|
|
// DESTRUCTOR - Do not edit by hand.
|
|
|
|
|
|
|
|
CefImageCppToC::~CefImageCppToC() {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefRefPtr<CefImage>
|
|
|
|
CefCppToCRefCounted<CefImageCppToC, CefImage, cef_image_t>::UnwrapDerived(
|
|
|
|
CefWrapperType type,
|
|
|
|
cef_image_t* s) {
|
2016-01-19 21:09:01 +01:00
|
|
|
NOTREACHED() << "Unexpected class type: " << type;
|
2020-01-15 14:53:19 +01:00
|
|
|
return nullptr;
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefWrapperType
|
|
|
|
CefCppToCRefCounted<CefImageCppToC, CefImage, cef_image_t>::kWrapperType =
|
|
|
|
WT_IMAGE;
|