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

Unified Diff: content/common/view_messages.h

Issue 9203001: Implement input type=color UI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fixed flag 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
« no previous file with comments | « content/browser/renderer_host/render_view_host.cc ('k') | content/content_renderer.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/view_messages.h
diff --git a/content/common/view_messages.h b/content/common/view_messages.h
index 576a2aede98b957a8b263d8846d1ed65e97f3907..582fcc4e1f1de262e8f2ab655c686f7e0d4ce560 100644
--- a/content/common/view_messages.h
+++ b/content/common/view_messages.h
@@ -1003,11 +1003,23 @@ IPC_MESSAGE_ROUTED2(ViewMsg_ImeConfirmComposition,
// to prevent target URLs spamming the browser.
IPC_MESSAGE_ROUTED0(ViewMsg_UpdateTargetURL_ACK)
+#if defined(ENABLE_INPUT_COLOR)
+IPC_STRUCT_BEGIN(ViewHostMsg_SetSelectedColorInColorChooser_Params)
+ // The new color to set as the selected color in the color chooser.
+ IPC_STRUCT_MEMBER(WebKit::WebColor, color)
+IPC_STRUCT_END()
+#endif // defined(ENABLE_INPUT_COLOR)
// Sets the alternate error page URL (link doctor) for the renderer process.
IPC_MESSAGE_ROUTED1(ViewMsg_SetAltErrorPageURL,
GURL)
+#if defined(ENABLE_INPUT_COLOR)
+// Notifies the color that the user selected in the color chooser.
+IPC_MESSAGE_ROUTED1(ViewMsg_DidChooseColorResponse, WebKit::WebColor)
+IPC_MESSAGE_ROUTED0(ViewMsg_DidDetachColorChooser)
+#endif // defined(ENABLE_INPUT_COLOR)
+
IPC_MESSAGE_ROUTED1(ViewMsg_RunFileChooserResponse,
std::vector<FilePath> /* selected files */)
@@ -1710,6 +1722,19 @@ IPC_MESSAGE_ROUTED2(ViewHostMsg_SelectionBoundsChanged,
gfx::Rect /* start rect */,
gfx::Rect /* end rect */)
+#if defined(ENABLE_INPUT_COLOR)
+// Asks the browser to open the color chooser.
+IPC_MESSAGE_ROUTED1(ViewHostMsg_OpenColorChooser,
+ ViewHostMsg_SetSelectedColorInColorChooser_Params)
+
+// Asks the browser to detach the color chooser.
+IPC_MESSAGE_ROUTED0(ViewHostMsg_DetachColorChooser)
+
+// Change the selected color in the color chooser.
+IPC_MESSAGE_ROUTED1(ViewHostMsg_SetSelectedColorInColorChooser,
+ ViewHostMsg_SetSelectedColorInColorChooser_Params)
+#endif // defined(ENABLE_INPUT_COLOR)
+
// Asks the browser to display the file chooser. The result is returned in a
// ViewHost_RunFileChooserResponse message.
IPC_MESSAGE_ROUTED1(ViewHostMsg_RunFileChooser,
« no previous file with comments | « content/browser/renderer_host/render_view_host.cc ('k') | content/content_renderer.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698