CEF3: Add HTML5 input type=color support

Issue #899 new
Former user created an issue

Original issue 899 created by nvineeth on 2013-03-04T06:08:11.000Z:

What steps will reproduce the problem?
1. Create a page with input type=color

What is the expected output? What do you see instead?
Clicking on this color control does not display color picker.

What version of the product are you using? On what operating system?
Cef3 trunk r1107

Please provide any additional information below.
Related discussion:
http://www.magpcss.org/ceforum/viewtopic.php?f=6&t=10484&p=15902

Comments (10)

  1. Marshall Greenblatt

    Comment 1. originally posted by magreenblatt on 2013-03-08T18:23:45.000Z:

    WebKit color input type support has been disabled in revision 1134. This will be re-enabled once an implementation is in place.

    In order to support the color chooser it's necessary to implement WebContentsDelegate::OpenColorChooser in CefBrowserHostImpl. The existing Chromium implementations of ColorChooser for Linux (chrome/browser/ui/gtk/color_chooser_gtk.cc) and Mac (chrome/browser/ui/cocoa/color_chooser_mac.mm) can be used mostly as-is. A Windows implementation will need to be written from scratch for CEF because Chromium uses a views-based implementation and the default system color chooser (ChooseColor function) does not provide a modeless dialog.

  2. Marshall Greenblatt

    Comment 3. originally posted by magreenblatt on 2013-03-08T22:22:01.000Z:

    issue #838 has been merged into this issue.

  3. Marshall Greenblatt

    We could likely implement this today by using Chromium's Views-based implementation on Windows/Linux when Views is enabled, and using the platform implementation on macOS. Pull requests are welcome.

  4. Arnaud Renevier

    The patch allows embedder to plug their own color chooser. And fallback to a view based implementation if the app does not handle the color chooser.

  5. Log in to comment