diff options
author | keishi@chromium.org <keishi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-15 12:39:52 +0000 |
---|---|---|
committer | keishi@chromium.org <keishi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-15 12:39:52 +0000 |
commit | 1075da5df3dfec5adc6816aa2ac736d71c55a6c9 (patch) | |
tree | 3bb12c846a2d5d18039d55d180bcd5948bdaf0c2 /content/public/browser/web_contents_delegate.h | |
parent | 2614ed923300f66bd8f9bd2d109f0be5eed69a0d (diff) | |
download | chromium_src-1075da5df3dfec5adc6816aa2ac736d71c55a6c9.zip chromium_src-1075da5df3dfec5adc6816aa2ac736d71c55a6c9.tar.gz chromium_src-1075da5df3dfec5adc6816aa2ac736d71c55a6c9.tar.bz2 |
Implement input type=color UI
BUG=92608
TEST=
Review URL: http://codereview.chromium.org/9203001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126889 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/public/browser/web_contents_delegate.h')
-rw-r--r-- | content/public/browser/web_contents_delegate.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/content/public/browser/web_contents_delegate.h b/content/public/browser/web_contents_delegate.h index d5111fd..2d1669c 100644 --- a/content/public/browser/web_contents_delegate.h +++ b/content/public/browser/web_contents_delegate.h @@ -15,6 +15,7 @@ #include "content/public/browser/navigation_type.h" #include "content/public/common/page_transition_types.h" #include "content/public/common/window_container_type.h" +#include "third_party/skia/include/core/SkColor.h" #include "ui/gfx/native_widget_types.h" #include "webkit/glue/window_open_disposition.h" @@ -29,6 +30,7 @@ class ListValue; namespace content { class BrowserContext; +class ColorChooser; class DownloadItem; class JavaScriptDialogCreator; class RenderViewHost; @@ -310,6 +312,13 @@ class CONTENT_EXPORT WebContentsDelegate { // NULL in which case dialogs aren't shown. virtual JavaScriptDialogCreator* GetJavaScriptDialogCreator(); + // Called when color chooser should open. Returns the opened color chooser. + virtual content::ColorChooser* OpenColorChooser(WebContents* tab, + int color_chooser_id, + const SkColor& color); + + virtual void DidEndColorChooser() {} + // Called when a file selection is to be done. virtual void RunFileChooser(WebContents* tab, const FileChooserParams& params) {} |