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

Unified Diff: content/browser/renderer_host/render_view_host.h

Issue 9203001: Implement input type=color UI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fixed comment Created 8 years, 11 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/browser/renderer_host/render_view_host.h
diff --git a/content/browser/renderer_host/render_view_host.h b/content/browser/renderer_host/render_view_host.h
index aa12e85dd5861755c9dc2f4497f7e676f1dc70c0..b34b8be830d5050c4d2fbef639f63d04996e41aa 100644
--- a/content/browser/renderer_host/render_view_host.h
+++ b/content/browser/renderer_host/render_view_host.h
@@ -22,6 +22,7 @@
#include "content/public/common/stop_find_action.h"
#include "content/public/common/window_container_type.h"
#include "net/base/load_states.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebColor.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h"
@@ -338,6 +339,11 @@ class CONTENT_EXPORT RenderViewHost : public RenderWidgetHost {
const std::vector<FilePath>& local_paths,
const FilePath& local_directory_name);
+ // Notifies the RenderView that the user selected a color in the color
+ // chooser.
+ void DidChooseColorInColorChooser(WebKit::WebColor);
+ void DidEndColorChooser();
+
// Notifies the Listener that one or more files have been chosen by the user
// from a file chooser dialog for the form. |permissions| are flags from the
// base::PlatformFileFlags enum which specify which file permissions should
@@ -595,6 +601,9 @@ class CONTENT_EXPORT RenderViewHost : public RenderWidgetHost {
void OnShowDesktopNotification(
const content::ShowDesktopNotificationHostMsgParams& params);
void OnCancelDesktopNotification(int notification_id);
+ void OnOpenColorChooser(const WebKit::WebColor& color);
+ void OnEndColorChooser();
+ void OnSetSelectedColorInColorChooser(const WebKit::WebColor& color);
void OnRunFileChooser(const content::FileChooserParams& params);
void OnWebUISend(const GURL& source_url, const std::string& name,

Powered by Google App Engine
This is Rietveld 408576698