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

Unified Diff: content/public/browser/web_contents_delegate.h

Issue 9203001: Implement input type=color UI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebased Created 8 years, 9 months 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 | « content/public/browser/web_contents.h ('k') | content/public/browser/web_contents_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/web_contents_delegate.h
diff --git a/content/public/browser/web_contents_delegate.h b/content/public/browser/web_contents_delegate.h
index d5111fdc5d8e2adcc60d01aeeee51406b17e752e..2d1669cefc28e17b24371950a2890d15c097eef6 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) {}
« no previous file with comments | « content/public/browser/web_contents.h ('k') | content/public/browser/web_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698