mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add CefBaseTime and use it instead of CefTime (see issue #2935)
This commit is contained in:
committed by
Marshall Greenblatt
parent
987b932a19
commit
27d3089804
@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=64b3cee6b2de98140a1dc6f6aabff6b2c4ac7d78$
|
||||
// $hash=6ced91f96527ec3d231208e0bcadbbd557f41d65$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/download_item_cpptoc.h"
|
||||
@ -152,7 +152,7 @@ download_item_get_received_bytes(struct _cef_download_item_t* self) {
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_time_t CEF_CALLBACK
|
||||
cef_basetime_t CEF_CALLBACK
|
||||
download_item_get_start_time(struct _cef_download_item_t* self) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
@ -160,16 +160,16 @@ download_item_get_start_time(struct _cef_download_item_t* self) {
|
||||
|
||||
DCHECK(self);
|
||||
if (!self)
|
||||
return CefTime();
|
||||
return CefBaseTime();
|
||||
|
||||
// Execute
|
||||
cef_time_t _retval = CefDownloadItemCppToC::Get(self)->GetStartTime();
|
||||
cef_basetime_t _retval = CefDownloadItemCppToC::Get(self)->GetStartTime();
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_time_t CEF_CALLBACK
|
||||
cef_basetime_t CEF_CALLBACK
|
||||
download_item_get_end_time(struct _cef_download_item_t* self) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
@ -177,10 +177,10 @@ download_item_get_end_time(struct _cef_download_item_t* self) {
|
||||
|
||||
DCHECK(self);
|
||||
if (!self)
|
||||
return CefTime();
|
||||
return CefBaseTime();
|
||||
|
||||
// Execute
|
||||
cef_time_t _retval = CefDownloadItemCppToC::Get(self)->GetEndTime();
|
||||
cef_basetime_t _retval = CefDownloadItemCppToC::Get(self)->GetEndTime();
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
|
@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=081579d10d7dd1ad8906d54350c2b63f97930fd2$
|
||||
// $hash=a824ce871b25f19f2af043bd049d2554bd06232b$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/navigation_entry_cpptoc.h"
|
||||
@ -140,7 +140,7 @@ navigation_entry_has_post_data(struct _cef_navigation_entry_t* self) {
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_time_t CEF_CALLBACK
|
||||
cef_basetime_t CEF_CALLBACK
|
||||
navigation_entry_get_completion_time(struct _cef_navigation_entry_t* self) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
@ -148,10 +148,11 @@ navigation_entry_get_completion_time(struct _cef_navigation_entry_t* self) {
|
||||
|
||||
DCHECK(self);
|
||||
if (!self)
|
||||
return CefTime();
|
||||
return CefBaseTime();
|
||||
|
||||
// Execute
|
||||
cef_time_t _retval = CefNavigationEntryCppToC::Get(self)->GetCompletionTime();
|
||||
cef_basetime_t _retval =
|
||||
CefNavigationEntryCppToC::Get(self)->GetCompletionTime();
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
|
@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=0cb915346153880872b44bd1f857c24787ed52af$
|
||||
// $hash=46a80d60441e386e6a8999ecb5fd338f3f6b4319$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/v8value_cpptoc.h"
|
||||
@ -84,19 +84,11 @@ CEF_EXPORT cef_v8value_t* cef_v8value_create_double(double value) {
|
||||
return CefV8ValueCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
CEF_EXPORT cef_v8value_t* cef_v8value_create_date(const cef_time_t* date) {
|
||||
CEF_EXPORT cef_v8value_t* cef_v8value_create_date(cef_basetime_t date) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: date; type: simple_byref_const
|
||||
DCHECK(date);
|
||||
if (!date)
|
||||
return NULL;
|
||||
|
||||
// Translate param: date; type: simple_byref_const
|
||||
CefTime dateVal = date ? *date : CefTime();
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefV8Value> _retval = CefV8Value::CreateDate(dateVal);
|
||||
CefRefPtr<CefV8Value> _retval = CefV8Value::CreateDate(date);
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefV8ValueCppToC::Wrap(_retval);
|
||||
@ -448,15 +440,16 @@ double CEF_CALLBACK v8value_get_double_value(struct _cef_v8value_t* self) {
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_time_t CEF_CALLBACK v8value_get_date_value(struct _cef_v8value_t* self) {
|
||||
cef_basetime_t CEF_CALLBACK
|
||||
v8value_get_date_value(struct _cef_v8value_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self)
|
||||
return CefTime();
|
||||
return CefBaseTime();
|
||||
|
||||
// Execute
|
||||
cef_time_t _retval = CefV8ValueCppToC::Get(self)->GetDateValue();
|
||||
cef_basetime_t _retval = CefV8ValueCppToC::Get(self)->GetDateValue();
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
|
@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=cac3e88ea15965e3a7786500606845b0b6157212$
|
||||
// $hash=3fbe9313681f3ac9545e5042c76fa2e41db52d3d$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/x509certificate_cpptoc.h"
|
||||
@ -76,7 +76,7 @@ x509certificate_get_serial_number(struct _cef_x509certificate_t* self) {
|
||||
return CefBinaryValueCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
cef_time_t CEF_CALLBACK
|
||||
cef_basetime_t CEF_CALLBACK
|
||||
x509certificate_get_valid_start(struct _cef_x509certificate_t* self) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
@ -84,16 +84,16 @@ x509certificate_get_valid_start(struct _cef_x509certificate_t* self) {
|
||||
|
||||
DCHECK(self);
|
||||
if (!self)
|
||||
return CefTime();
|
||||
return CefBaseTime();
|
||||
|
||||
// Execute
|
||||
cef_time_t _retval = CefX509CertificateCppToC::Get(self)->GetValidStart();
|
||||
cef_basetime_t _retval = CefX509CertificateCppToC::Get(self)->GetValidStart();
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_time_t CEF_CALLBACK
|
||||
cef_basetime_t CEF_CALLBACK
|
||||
x509certificate_get_valid_expiry(struct _cef_x509certificate_t* self) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
@ -101,10 +101,11 @@ x509certificate_get_valid_expiry(struct _cef_x509certificate_t* self) {
|
||||
|
||||
DCHECK(self);
|
||||
if (!self)
|
||||
return CefTime();
|
||||
return CefBaseTime();
|
||||
|
||||
// Execute
|
||||
cef_time_t _retval = CefX509CertificateCppToC::Get(self)->GetValidExpiry();
|
||||
cef_basetime_t _retval =
|
||||
CefX509CertificateCppToC::Get(self)->GetValidExpiry();
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
|
@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=9fe9e9199e284af22669ba2abfb715d0e7ae8de3$
|
||||
// $hash=d282910b834f9f5076a1310196f326828e41540d$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/zip_reader_cpptoc.h"
|
||||
@ -145,7 +145,7 @@ int64 CEF_CALLBACK zip_reader_get_file_size(struct _cef_zip_reader_t* self) {
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_time_t CEF_CALLBACK
|
||||
cef_basetime_t CEF_CALLBACK
|
||||
zip_reader_get_file_last_modified(struct _cef_zip_reader_t* self) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
@ -153,10 +153,10 @@ zip_reader_get_file_last_modified(struct _cef_zip_reader_t* self) {
|
||||
|
||||
DCHECK(self);
|
||||
if (!self)
|
||||
return CefTime();
|
||||
return CefBaseTime();
|
||||
|
||||
// Execute
|
||||
cef_time_t _retval = CefZipReaderCppToC::Get(self)->GetFileLastModified();
|
||||
cef_basetime_t _retval = CefZipReaderCppToC::Get(self)->GetFileLastModified();
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
|
Reference in New Issue
Block a user