diff options
author | keishi@chromium.org <keishi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-20 08:52:20 +0000 |
---|---|---|
committer | keishi@chromium.org <keishi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-20 08:52:20 +0000 |
commit | da854376b38ec7258bf1fcef8569a60b976fe923 (patch) | |
tree | 01b424d06eb594aef1aa5f4043ae1d414ba04604 /content/public/browser/web_contents_delegate.h | |
parent | 69e3c68cdb92a927e3ff97f5911ceb645f64afa9 (diff) | |
download | chromium_src-da854376b38ec7258bf1fcef8569a60b976fe923.zip chromium_src-da854376b38ec7258bf1fcef8569a60b976fe923.tar.gz chromium_src-da854376b38ec7258bf1fcef8569a60b976fe923.tar.bz2 |
Implement input type=color UI
BUG=92608
TEST=
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=126889
Review URL: https://chromiumcodereview.appspot.com/9203001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127656 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) {} |