Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(276)

Unified Diff: public/web/WebViewClient.h

Issue 23236002: Prepare for color input datalist support on Android (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « public/web/WebColorSuggestion.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebViewClient.h
diff --git a/public/web/WebViewClient.h b/public/web/WebViewClient.h
index 740e8205d36c89041edf077ce28497cba2d0c9e8..847237d5b920fa8ee704de7319536b8e188b3e61 100644
--- a/public/web/WebViewClient.h
+++ b/public/web/WebViewClient.h
@@ -79,6 +79,7 @@ class WebURLRequest;
class WebUserMediaClient;
class WebView;
class WebWidget;
+struct WebColorSuggestion;
struct WebConsoleMessage;
struct WebContextMenuData;
struct WebDateTimeChooserParams;
@@ -184,10 +185,18 @@ public:
// This method opens the color chooser and returns a new WebColorChooser
// instance. If there is a WebColorChooser already from the last time this
// was called, it ends the color chooser by calling endChooser, and replaces
- // it with the new one.
+ // it with the new one. The given list of suggestions can be used to show a
+ // simple interface with a limited set of choices.
+
+ // FIXME: Should be removed when the chromium side change lands.
virtual WebColorChooser* createColorChooser(WebColorChooserClient*,
const WebColor&) { return 0; }
+ virtual WebColorChooser* createColorChooser(
+ WebColorChooserClient*,
+ const WebColor&,
+ const WebVector<WebColorSuggestion>&) { return 0; }
+
// This method returns immediately after showing the dialog. When the
// dialog is closed, it should call the WebFileChooserCompletion to
// pass the results of the dialog. Returns false if
« no previous file with comments | « public/web/WebColorSuggestion.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698