Skip to content

Commit 99f9940

Browse files
WizardCMRytoEX
authored andcommitted
Enable building with CEF 6943
The cef_version_info function was moved out into its own file in 6943 in preparation for official CEF API versioning. https://bitbucket.org/chromiumembedded/cef/wiki/ApiVersioning Additionally, a new VType was added on non-Windows platforms, and while it'll never be returned the build will error if it's unhandled.
1 parent a54e7c4 commit 99f9940

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

browser-app.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,11 @@ CefRefPtr<CefV8Value> CefValueToCefV8Value(CefRefPtr<CefValue> value)
276276
result->SetValue((int)i, CefValueToCefV8Value(list->GetValue(i)));
277277
}
278278
} break;
279+
#if !defined(_WIN32) && CHROME_VERSION_BUILD >= 6943
280+
case VTYPE_NUM_VALUES:
281+
result = CefV8Value::CreateNull();
282+
break;
283+
#endif
279284
}
280285
return result;
281286
}

cef-headers.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@
3434
#include <include/cef_parser.h>
3535
#include <include/cef_scheme.h>
3636
#include <include/cef_version.h>
37+
#if CHROME_VERSION_BUILD >= 6943
38+
#include <include/cef_version_info.h>
39+
#endif
3740
#include <include/cef_render_process_handler.h>
3841
#include <include/cef_request_context_handler.h>
3942
#include <include/cef_jsdialog_handler.h>

0 commit comments

Comments
 (0)