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

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

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.cc
diff --git a/content/browser/renderer_host/render_view_host.cc b/content/browser/renderer_host/render_view_host.cc
index 47a2b63a9d04becee0808cdfb451fbad0c75db94..cce726cc0fb0c931b222654564a004b84c443828 100644
--- a/content/browser/renderer_host/render_view_host.cc
+++ b/content/browser/renderer_host/render_view_host.cc
@@ -619,6 +619,14 @@ void RenderViewHost::SetInitialFocus(bool reverse) {
Send(new ViewMsg_SetInitialFocus(routing_id(), reverse));
}
+void RenderViewHost::DidChooseColorInColorChooser(WebKit::WebColor color) {
+ Send(new ViewMsg_DidChooseColorResponse(routing_id(), color));
+}
+
+void RenderViewHost::DidEndColorChooser() {
+ Send(new ViewMsg_DidEndColorChooser(routing_id()));
+}
+
void RenderViewHost::FilesSelectedInChooser(
const std::vector<FilePath>& files,
int permissions) {
@@ -747,6 +755,10 @@ bool RenderViewHost::OnMessageReceived(const IPC::Message& msg) {
#if defined(OS_MACOSX)
IPC_MESSAGE_HANDLER(ViewHostMsg_ShowPopup, OnMsgShowPopup)
#endif
+ IPC_MESSAGE_HANDLER(ViewHostMsg_OpenColorChooser, OnOpenColorChooser)
jam 2012/01/27 18:13:40 there's no need to filter the message in RenderVie
keishi 2012/02/06 15:01:57 Done.
+ IPC_MESSAGE_HANDLER(ViewHostMsg_EndColorChooser, OnEndColorChooser)
+ IPC_MESSAGE_HANDLER(ViewHostMsg_SetSelectedColorInColorChooser,
+ OnSetSelectedColorInColorChooser)
IPC_MESSAGE_HANDLER(ViewHostMsg_RunFileChooser, OnRunFileChooser)
IPC_MESSAGE_HANDLER(ViewHostMsg_WebUISend, OnWebUISend)
// Have the super handle all other messages.
@@ -1538,6 +1550,19 @@ void RenderViewHost::OnMsgShowPopup(
}
#endif
+void RenderViewHost::OnOpenColorChooser(const WebKit::WebColor& color) {
+ delegate_->OpenColorChooser(this, color);
+}
+
+void RenderViewHost::OnEndColorChooser() {
+ delegate_->EndColorChooser(this);
+}
+
+void RenderViewHost::OnSetSelectedColorInColorChooser(
+ const WebKit::WebColor& color) {
+ delegate_->SetSelectedColorInColorChooser(this, color);
+}
+
void RenderViewHost::OnRunFileChooser(
const content::FileChooserParams& params) {
delegate_->RunFileChooser(this, params);

Powered by Google App Engine
This is Rietveld 408576698