Enabling experimental web platform features

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Enabling experimental web platform features

Postby ed123 » Thu Feb 26, 2015 6:45 am

I need to set #enable-experimental-web-platform-features flag in CEF to enable Grid Layout CSS. Can this be done?
ed123
Newbie
 
Posts: 7
Joined: Sat Jul 26, 2014 5:29 pm

Re: Enabling experimental web platform features

Postby ed123 » Thu Feb 26, 2015 2:56 pm

Got this solved. You need to override OnBeforeCommandLineProcessing method of CefApp class.

In cefsimple project, place the function below inside SimpleApp class:

virtual void OnBeforeCommandLineProcessing(
const CefString& process_type,
CefRefPtr<CefCommandLine> command_line) {
command_line->AppendSwitch("enable-experimental-web-platform-features");
}
ed123
Newbie
 
Posts: 7
Joined: Sat Jul 26, 2014 5:29 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 104 guests