2017-01-11 00:00:30 +01:00
|
|
|
// Copyright (c) 2017 The Chromium Embedded Framework Authors. All rights
|
2014-07-10 17:41:30 +02:00
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
//
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// This file was generated by the CEF translator tool. If making changes by
|
|
|
|
// hand only do so within the body of existing method and function
|
|
|
|
// implementations. See the translator.README.txt file in the tools directory
|
|
|
|
// for more information.
|
|
|
|
//
|
2017-07-27 01:19:27 +02:00
|
|
|
// $hash=908ae6082940c366a645f5727dec20a377dbee21$
|
2017-05-17 11:29:28 +02:00
|
|
|
//
|
2014-07-10 17:41:30 +02:00
|
|
|
|
|
|
|
#include "libcef_dll/ctocpp/print_settings_ctocpp.h"
|
2017-05-19 11:06:00 +02:00
|
|
|
#include <algorithm>
|
2014-07-10 17:41:30 +02:00
|
|
|
|
|
|
|
// STATIC METHODS - Body may be edited by hand.
|
|
|
|
|
|
|
|
CefRefPtr<CefPrintSettings> CefPrintSettings::Create() {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_print_settings_t* _retval = cef_print_settings_create();
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefPrintSettingsCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
// VIRTUAL METHODS - Body may be edited by hand.
|
|
|
|
|
|
|
|
bool CefPrintSettingsCToCpp::IsValid() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_print_settings_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_valid))
|
2014-07-10 17:41:30 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->is_valid(_struct);
|
2014-07-10 17:41:30 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2014-07-10 17:41:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
bool CefPrintSettingsCToCpp::IsReadOnly() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_print_settings_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_read_only))
|
2014-07-10 17:41:30 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->is_read_only(_struct);
|
2014-07-10 17:41:30 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2014-07-10 17:41:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefPrintSettings> CefPrintSettingsCToCpp::Copy() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_print_settings_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, copy))
|
2014-07-10 17:41:30 +02:00
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_print_settings_t* _retval = _struct->copy(_struct);
|
2014-07-10 17:41:30 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefPrintSettingsCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CefPrintSettingsCToCpp::SetOrientation(bool landscape) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_print_settings_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_orientation))
|
2014-07-10 17:41:30 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->set_orientation(_struct, landscape);
|
2014-07-10 17:41:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
bool CefPrintSettingsCToCpp::IsLandscape() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_print_settings_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_landscape))
|
2014-07-10 17:41:30 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->is_landscape(_struct);
|
2014-07-10 17:41:30 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2014-07-10 17:41:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void CefPrintSettingsCToCpp::SetPrinterPrintableArea(
|
|
|
|
const CefSize& physical_size_device_units,
|
2017-05-17 11:29:28 +02:00
|
|
|
const CefRect& printable_area_device_units,
|
|
|
|
bool landscape_needs_flip) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_print_settings_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_printer_printable_area))
|
2014-07-10 17:41:30 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->set_printer_printable_area(_struct, &physical_size_device_units,
|
|
|
|
&printable_area_device_units,
|
|
|
|
landscape_needs_flip);
|
2014-07-10 17:41:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void CefPrintSettingsCToCpp::SetDeviceName(const CefString& name) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_print_settings_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_device_name))
|
2014-07-10 17:41:30 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Unverified params: name
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->set_device_name(_struct, name.GetStruct());
|
2014-07-10 17:41:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
CefString CefPrintSettingsCToCpp::GetDeviceName() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_print_settings_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_device_name))
|
2014-07-10 17:41:30 +02:00
|
|
|
return CefString();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_string_userfree_t _retval = _struct->get_device_name(_struct);
|
2014-07-10 17:41:30 +02:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CefPrintSettingsCToCpp::SetDPI(int dpi) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_print_settings_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_dpi))
|
2014-07-10 17:41:30 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->set_dpi(_struct, dpi);
|
2014-07-10 17:41:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
int CefPrintSettingsCToCpp::GetDPI() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_print_settings_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_dpi))
|
2014-07-10 17:41:30 +02:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->get_dpi(_struct);
|
2014-07-10 17:41:30 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CefPrintSettingsCToCpp::SetPageRanges(const PageRangeList& ranges) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_print_settings_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_page_ranges))
|
2014-07-10 17:41:30 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Translate param: ranges; type: simple_vec_byref_const
|
|
|
|
const size_t rangesCount = ranges.size();
|
2016-01-19 21:09:01 +01:00
|
|
|
cef_range_t* rangesList = NULL;
|
2014-07-10 17:41:30 +02:00
|
|
|
if (rangesCount > 0) {
|
2016-01-19 21:09:01 +01:00
|
|
|
rangesList = new cef_range_t[rangesCount];
|
2014-07-10 17:41:30 +02:00
|
|
|
DCHECK(rangesList);
|
|
|
|
if (rangesList) {
|
|
|
|
for (size_t i = 0; i < rangesCount; ++i) {
|
|
|
|
rangesList[i] = ranges[i];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->set_page_ranges(_struct, rangesCount, rangesList);
|
2014-07-10 17:41:30 +02:00
|
|
|
|
|
|
|
// Restore param:ranges; type: simple_vec_byref_const
|
|
|
|
if (rangesList)
|
2017-05-17 11:29:28 +02:00
|
|
|
delete[] rangesList;
|
2014-07-10 17:41:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
size_t CefPrintSettingsCToCpp::GetPageRangesCount() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_print_settings_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_page_ranges_count))
|
2014-07-10 17:41:30 +02:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
size_t _retval = _struct->get_page_ranges_count(_struct);
|
2014-07-10 17:41:30 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CefPrintSettingsCToCpp::GetPageRanges(PageRangeList& ranges) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_print_settings_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_page_ranges))
|
2014-07-10 17:41:30 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Translate param: ranges; type: simple_vec_byref
|
|
|
|
size_t rangesSize = ranges.size();
|
|
|
|
size_t rangesCount = std::max(GetPageRangesCount(), rangesSize);
|
2016-01-19 21:09:01 +01:00
|
|
|
cef_range_t* rangesList = NULL;
|
2014-07-10 17:41:30 +02:00
|
|
|
if (rangesCount > 0) {
|
2016-01-19 21:09:01 +01:00
|
|
|
rangesList = new cef_range_t[rangesCount];
|
2014-07-10 17:41:30 +02:00
|
|
|
DCHECK(rangesList);
|
|
|
|
if (rangesList) {
|
2017-05-17 11:29:28 +02:00
|
|
|
memset(rangesList, 0, sizeof(cef_range_t) * rangesCount);
|
2014-07-10 17:41:30 +02:00
|
|
|
}
|
|
|
|
if (rangesList && rangesSize > 0) {
|
|
|
|
for (size_t i = 0; i < rangesSize; ++i) {
|
|
|
|
rangesList[i] = ranges[i];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->get_page_ranges(_struct, &rangesCount, rangesList);
|
2014-07-10 17:41:30 +02:00
|
|
|
|
|
|
|
// Restore param:ranges; type: simple_vec_byref
|
|
|
|
ranges.clear();
|
|
|
|
if (rangesCount > 0 && rangesList) {
|
|
|
|
for (size_t i = 0; i < rangesCount; ++i) {
|
|
|
|
ranges.push_back(rangesList[i]);
|
|
|
|
}
|
2017-05-17 11:29:28 +02:00
|
|
|
delete[] rangesList;
|
2014-07-10 17:41:30 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void CefPrintSettingsCToCpp::SetSelectionOnly(bool selection_only) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_print_settings_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_selection_only))
|
2014-07-10 17:41:30 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->set_selection_only(_struct, selection_only);
|
2014-07-10 17:41:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
bool CefPrintSettingsCToCpp::IsSelectionOnly() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_print_settings_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_selection_only))
|
2014-07-10 17:41:30 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->is_selection_only(_struct);
|
2014-07-10 17:41:30 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2014-07-10 17:41:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void CefPrintSettingsCToCpp::SetCollate(bool collate) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_print_settings_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_collate))
|
2014-07-10 17:41:30 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->set_collate(_struct, collate);
|
2014-07-10 17:41:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
bool CefPrintSettingsCToCpp::WillCollate() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_print_settings_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, will_collate))
|
2014-07-10 17:41:30 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->will_collate(_struct);
|
2014-07-10 17:41:30 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2014-07-10 17:41:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void CefPrintSettingsCToCpp::SetColorModel(ColorModel model) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_print_settings_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_color_model))
|
2014-07-10 17:41:30 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->set_color_model(_struct, model);
|
2014-07-10 17:41:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
CefPrintSettings::ColorModel CefPrintSettingsCToCpp::GetColorModel() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_print_settings_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_color_model))
|
2014-07-10 17:41:30 +02:00
|
|
|
return COLOR_MODEL_UNKNOWN;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_color_model_t _retval = _struct->get_color_model(_struct);
|
2014-07-10 17:41:30 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CefPrintSettingsCToCpp::SetCopies(int copies) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_print_settings_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_copies))
|
2014-07-10 17:41:30 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->set_copies(_struct, copies);
|
2014-07-10 17:41:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
int CefPrintSettingsCToCpp::GetCopies() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_print_settings_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_copies))
|
2014-07-10 17:41:30 +02:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->get_copies(_struct);
|
2014-07-10 17:41:30 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CefPrintSettingsCToCpp::SetDuplexMode(DuplexMode mode) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_print_settings_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_duplex_mode))
|
2014-07-10 17:41:30 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->set_duplex_mode(_struct, mode);
|
2014-07-10 17:41:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
CefPrintSettings::DuplexMode CefPrintSettingsCToCpp::GetDuplexMode() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_print_settings_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_duplex_mode))
|
2014-07-10 17:41:30 +02:00
|
|
|
return DUPLEX_MODE_UNKNOWN;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_duplex_mode_t _retval = _struct->get_duplex_mode(_struct);
|
2014-07-10 17:41:30 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
// CONSTRUCTOR - Do not edit by hand.
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
CefPrintSettingsCToCpp::CefPrintSettingsCToCpp() {}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
cef_print_settings_t*
|
|
|
|
CefCToCppRefCounted<CefPrintSettingsCToCpp,
|
|
|
|
CefPrintSettings,
|
|
|
|
cef_print_settings_t>::UnwrapDerived(CefWrapperType type,
|
|
|
|
CefPrintSettings* c) {
|
2015-04-26 20:40:01 +02:00
|
|
|
NOTREACHED() << "Unexpected class type: " << type;
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2016-09-01 13:24:30 +02:00
|
|
|
#if DCHECK_IS_ON()
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
base::AtomicRefCount CefCToCppRefCounted<CefPrintSettingsCToCpp,
|
|
|
|
CefPrintSettings,
|
2017-07-27 01:19:27 +02:00
|
|
|
cef_print_settings_t>::DebugObjCt
|
|
|
|
ATOMIC_DECLARATION;
|
2014-07-10 17:41:30 +02:00
|
|
|
#endif
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefWrapperType CefCToCppRefCounted<CefPrintSettingsCToCpp,
|
|
|
|
CefPrintSettings,
|
|
|
|
cef_print_settings_t>::kWrapperType =
|
|
|
|
WT_PRINT_SETTINGS;
|