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

Unified Diff: content/common/view_messages.h

Issue 7685006: Implement input type=color UI (common part) (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: forgot to turn off flag Created 9 years, 1 month 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/common/view_messages.h
diff --git a/content/common/view_messages.h b/content/common/view_messages.h
index 269c0a2af09d4d0b45153f0ae7b3c20f0abb7c9f..959f1dc5abe105a33299f3b02bba664c7827a8f1 100644
--- a/content/common/view_messages.h
+++ b/content/common/view_messages.h
@@ -451,6 +451,12 @@ IPC_STRUCT_BEGIN(ViewHostMsg_AccessibilityNotification_Params)
IPC_STRUCT_MEMBER(bool, includes_children)
IPC_STRUCT_END()
+#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)
IPC_STRUCT_BEGIN(ViewHostMsg_RunFileChooser_Params)
IPC_STRUCT_MEMBER(ViewHostMsg_RunFileChooser_Mode::Value, mode)
@@ -999,6 +1005,12 @@ IPC_MESSAGE_ROUTED0(ViewMsg_UpdateTargetURL_ACK)
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_DidCleanupColorChooser)
+#endif // defined(ENABLE_INPUT_COLOR)
+
IPC_MESSAGE_ROUTED1(ViewMsg_RunFileChooserResponse,
std::vector<FilePath> /* selected files */)
@@ -1673,6 +1685,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 cleanup the color chooser.
+IPC_MESSAGE_ROUTED0(ViewHostMsg_CleanupColorChooser)
+
+// 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,

Powered by Google App Engine
This is Rietveld 408576698