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

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: fixed issues/removed color_select_helper/added color_chooser_id Created 8 years, 10 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
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 7af48743793e57015d2490afdc200c2035b80cfc..61aead6e2308562981f550c78e795bf94177723a 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"
@@ -52,6 +53,10 @@ namespace webkit_glue {
struct WebIntentData;
}
+namespace WebKit {
Peter Kasting 2012/02/07 01:46:24 Remove this.
keishi 2012/02/17 11:31:05 Done.
+typedef unsigned WebColor;
+}
+
namespace content {
struct OpenURLParams;
@@ -316,6 +321,22 @@ class CONTENT_EXPORT WebContentsDelegate {
// NULL in which case dialogs aren't shown.
virtual JavaScriptDialogCreator* GetJavaScriptDialogCreator();
+ // Called when color chooser should open.
+ virtual void OpenColorChooser(WebContents* tab,
+ unsigned color_chooser_id,
Peter Kasting 2012/02/07 01:46:24 Nit: See other nit regarding "unsigned"
keishi 2012/02/17 11:31:05 Done.
+ const SkColor& color) {}
+
+ // Called when color chooser should end.
+ virtual void EndColorChooser(WebContents* tab, unsigned color_chooser_id) {}
+
+ // Called when the selected color in color chooser should change.
+ virtual void SetSelectedColorInColorChooser(WebContents* tab,
+ unsigned color_chooser_id,
+ const SkColor& color) {}
+
+ // Called when the color chooser has ended.
+ virtual void DidEndColorChooser(WebContents* tab) {}
+
// Called when a file selection is to be done.
virtual void RunFileChooser(WebContents* tab,
const FileChooserParams& params) {}

Powered by Google App Engine
This is Rietveld 408576698