Add support for color input datalist on Android
We pass the list of suggestions when opening the color chooser.
We also pass the suggestion labels but we aren't using them yet. We should use them in the future to improve accessibility.
The suggestions are arranged in a grid with four columns.
BUG=242455
NOTRY=true
Review URL: https://codereview.chromium.org/23026006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237890 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index 1717077..7229682 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -65,6 +65,7 @@
class WebContentsObserver;
class WebContentsViewPort;
class WebContentsViewDelegate;
+struct ColorSuggestion;
struct FaviconURL;
struct LoadNotificationDetails;
@@ -645,7 +646,9 @@
void OnCrashedPlugin(const base::FilePath& plugin_path,
base::ProcessId plugin_pid);
void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy);
- void OnOpenColorChooser(int color_chooser_id, SkColor color);
+ void OnOpenColorChooser(int color_chooser_id,
+ SkColor color,
+ const std::vector<ColorSuggestion>& suggestions);
void OnEndColorChooser(int color_chooser_id);
void OnSetSelectedColorInColorChooser(int color_chooser_id, SkColor color);
void OnPepperPluginHung(int plugin_child_id,