Support for Shadow DOM and Pointer Lock

Think CEF could benefit from a new feature or capability? Discuss CEF feature requests here.

Support for Shadow DOM and Pointer Lock

Postby Benvie » Tue Jul 17, 2012 2:11 pm

These are just toggles in chrome:flags but I can't figure out how to enable them in CEF. Pointer lock provides an app for doing mouse capture on DOM elements from JS which is really useful for doing something like a custom title bar. Shadow DOM allows creation of custom elements which is useful for providing JS GUI apis to users.
Benvie
Techie
 
Posts: 20
Joined: Wed Aug 10, 2011 2:58 pm

Re: Support for Shadow DOM and Pointer Lock

Postby Benvie » Wed Jul 18, 2012 10:35 pm

I was able to find out where to at least force enable these in Chrome.

third_party/WebKit/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.cpp

In there you can modify various flags. Most or all of these are already compiled into Chromium, they are simply disabled by default. I changed the following from false to true with success:
bool RuntimeEnabledFeatures::isShadowDOMEnabled = true;
bool RuntimeEnabledFeatures::isStyleScopedEnabled = true;
bool RuntimeEnabledFeatures::isPointerLockEnabled = true;
bool RuntimeEnabledFeatures::isMediaSourceEnabled = true;
bool RuntimeEnabledFeatures::isInputTypeDateEnabled = true;
Benvie
Techie
 
Posts: 20
Joined: Wed Aug 10, 2011 2:58 pm

Re: Support for Shadow DOM and Pointer Lock

Postby fddima » Thu Jul 19, 2012 2:36 am

And how it is can be used? May be you have links?
fddima
Master
 
Posts: 788
Joined: Tue Dec 07, 2010 6:10 am

Re: Support for Shadow DOM and Pointer Lock

Postby custa1200 » Sat Jul 21, 2012 10:32 am

fddima wrote:And how it is can be used? May be you have links?


Shadow DOM is part of Web Components

http://dvcs.w3.org/hg/webcomponents/raw ... index.html
custa1200
Techie
 
Posts: 32
Joined: Wed Oct 27, 2010 2:34 am

Re: Support for Shadow DOM and Pointer Lock

Postby fddima » Mon Jul 23, 2012 4:17 am

Thanks. As for me, it is looks as CEF require this settings too.
Components looks promising.
fddima
Master
 
Posts: 788
Joined: Tue Dec 07, 2010 6:10 am

Re: Support for Shadow DOM and Pointer Lock

Postby custa1200 » Tue Jul 24, 2012 8:58 am

fddima wrote:Thanks. As for me, it is looks as CEF require this settings too.
Components looks promising.


Components are shaping up to be awesome. Also really need scoped variables for them to work too, so that setting also needs to be switched.
custa1200
Techie
 
Posts: 32
Joined: Wed Oct 27, 2010 2:34 am

Re: Support for Shadow DOM and Pointer Lock

Postby magreenblatt » Wed Aug 01, 2012 12:44 pm

Please add an issue to the CEF issue tracker for enabling these features.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Support for Shadow DOM and Pointer Lock

Postby fddima » Thu Aug 02, 2012 4:13 am

magreenblatt wrote:Please add an issue to the CEF issue tracker for enabling these features.

Issue 689 added.
fddima
Master
 
Posts: 788
Joined: Tue Dec 07, 2010 6:10 am


Return to Feature Request Forum

Who is online

Users browsing this forum: No registered users and 24 guests