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

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: added content::ColorChooser 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/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 e193dc2e71f586ccbb9a6cb3ec494e4606e7833a..9a60639bc41791d431763b915a2359f228046724 100644
--- a/content/browser/renderer_host/render_view_host.cc
+++ b/content/browser/renderer_host/render_view_host.cc
@@ -654,6 +654,17 @@ void RenderViewHost::SetInitialFocus(bool reverse) {
Send(new ViewMsg_SetInitialFocus(routing_id(), reverse));
}
+void RenderViewHost::DidChooseColorInColorChooser(int color_chooser_id,
+ const SkColor& color) {
+ Send(new ViewMsg_DidChooseColorResponse(
+ routing_id(), color_chooser_id, color));
+}
+
+void RenderViewHost::DidEndColorChooser(int color_chooser_id) {
+ Send(new ViewMsg_DidEndColorChooser(routing_id(), color_chooser_id));
+ delegate_->DidEndColorChooser();
+}
+
void RenderViewHost::FilesSelectedInChooser(
const std::vector<FilePath>& files,
int permissions) {

Powered by Google App Engine
This is Rietveld 408576698