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
@@ -6,6 +6,7 @@
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "include/cef_base.h"
|
||||
#include "include/cef_command_line.h"
|
||||
#include "include/cef_request_context_handler.h"
|
||||
#include "tests/gtest/include/gtest/gtest.h"
|
||||
@@ -356,3 +357,15 @@ CefRefPtr<CefRequestContext> CreateTestRequestContext(
|
||||
return CefRequestContext::CreateContext(CefRequestContext::GetGlobalContext(),
|
||||
rc_handler);
|
||||
}
|
||||
|
||||
CefTime CefTimeFrom(CefBaseTime value) {
|
||||
CefTime time;
|
||||
cef_time_from_basetime(value, &time);
|
||||
return time;
|
||||
}
|
||||
|
||||
CefBaseTime CefBaseTimeFrom(const CefTime& value) {
|
||||
cef_basetime_t temp;
|
||||
cef_time_to_basetime(&value, &temp);
|
||||
return CefBaseTime(temp);
|
||||
}
|
||||
|
Reference in New Issue
Block a user