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

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: renamed method 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/common/view_messages.h
diff --git a/content/common/view_messages.h b/content/common/view_messages.h
index 576a2aede98b957a8b263d8846d1ed65e97f3907..6b6119270419aeeeec403a779b673fd712918a37 100644
--- a/content/common/view_messages.h
+++ b/content/common/view_messages.h
@@ -1003,11 +1003,19 @@ IPC_MESSAGE_ROUTED2(ViewMsg_ImeConfirmComposition,
// to prevent target URLs spamming the browser.
IPC_MESSAGE_ROUTED0(ViewMsg_UpdateTargetURL_ACK)
+IPC_STRUCT_BEGIN(ViewHostMsg_SetSelectedColorInColorChooser_Params)
jam 2012/01/17 06:49:55 we only create structs when we need to pass a mess
keishi 2012/01/27 04:34:08 Done.
+ // The new color to set as the selected color in the color chooser.
+ IPC_STRUCT_MEMBER(WebKit::WebColor, color)
+IPC_STRUCT_END()
// Sets the alternate error page URL (link doctor) for the renderer process.
IPC_MESSAGE_ROUTED1(ViewMsg_SetAltErrorPageURL,
GURL)
+// Notifies the color that the user selected in the color chooser.
+IPC_MESSAGE_ROUTED1(ViewMsg_DidChooseColorResponse, WebKit::WebColor)
+IPC_MESSAGE_ROUTED0(ViewMsg_DidEndColorChooser)
+
IPC_MESSAGE_ROUTED1(ViewMsg_RunFileChooserResponse,
std::vector<FilePath> /* selected files */)
@@ -1710,6 +1718,17 @@ IPC_MESSAGE_ROUTED2(ViewHostMsg_SelectionBoundsChanged,
gfx::Rect /* start rect */,
gfx::Rect /* end rect */)
+// Asks the browser to open the color chooser.
+IPC_MESSAGE_ROUTED1(ViewHostMsg_OpenColorChooser,
+ ViewHostMsg_SetSelectedColorInColorChooser_Params)
+
+// Asks the browser to end the color chooser.
+IPC_MESSAGE_ROUTED0(ViewHostMsg_EndColorChooser)
+
+// Change the selected color in the color chooser.
+IPC_MESSAGE_ROUTED1(ViewHostMsg_SetSelectedColorInColorChooser,
+ ViewHostMsg_SetSelectedColorInColorChooser_Params)
+
// 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