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); |