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

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: rebased Created 8 years, 9 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/tab_contents/tab_contents.cc ('k') | content/content_browser.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 90ca715ccb92f300a5174d85416182551bc0234d..2a190353b5d914beac3d34a4d363dffa498201d3 100644
--- a/content/common/view_messages.h
+++ b/content/common/view_messages.h
@@ -1014,6 +1014,12 @@ IPC_MESSAGE_ROUTED0(ViewMsg_UpdateTargetURL_ACK)
IPC_MESSAGE_ROUTED1(ViewMsg_SetAltErrorPageURL,
GURL)
+// Notifies the color chooser client that the user selected a color.
+IPC_MESSAGE_ROUTED2(ViewMsg_DidChooseColorResponse, unsigned, SkColor)
+
+// Notifies the color chooser client that the color chooser has ended.
+IPC_MESSAGE_ROUTED1(ViewMsg_DidEndColorChooser, unsigned)
+
IPC_MESSAGE_ROUTED1(ViewMsg_RunFileChooserResponse,
std::vector<content::SelectedFileInfo>)
@@ -1695,6 +1701,19 @@ IPC_MESSAGE_ROUTED2(ViewHostMsg_SelectionBoundsChanged,
gfx::Rect /* start rect */,
gfx::Rect /* end rect */)
+// Asks the browser to open the color chooser.
+IPC_MESSAGE_ROUTED2(ViewHostMsg_OpenColorChooser,
+ int /* id */,
+ SkColor /* color */)
+
+// Asks the browser to end the color chooser.
+IPC_MESSAGE_ROUTED1(ViewHostMsg_EndColorChooser, int /* id */)
+
+// Change the selected color in the color chooser.
+IPC_MESSAGE_ROUTED2(ViewHostMsg_SetSelectedColorInColorChooser,
+ int /* id */,
+ SkColor /* 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/tab_contents/tab_contents.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698