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

Side by Side 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 issues/removed color_select_helper/added color_chooser_id 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // IPC messages for page rendering. 5 // IPC messages for page rendering.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "base/process.h" 8 #include "base/process.h"
9 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after
1004 1004
1005 // This message confirms an ongoing composition. 1005 // This message confirms an ongoing composition.
1006 IPC_MESSAGE_ROUTED2(ViewMsg_ImeConfirmComposition, 1006 IPC_MESSAGE_ROUTED2(ViewMsg_ImeConfirmComposition,
1007 string16 /* text */, 1007 string16 /* text */,
1008 ui::Range /* replacement_range */) 1008 ui::Range /* replacement_range */)
1009 1009
1010 // Used to notify the render-view that we have received a target URL. Used 1010 // Used to notify the render-view that we have received a target URL. Used
1011 // to prevent target URLs spamming the browser. 1011 // to prevent target URLs spamming the browser.
1012 IPC_MESSAGE_ROUTED0(ViewMsg_UpdateTargetURL_ACK) 1012 IPC_MESSAGE_ROUTED0(ViewMsg_UpdateTargetURL_ACK)
1013 1013
1014
1015 // Sets the alternate error page URL (link doctor) for the renderer process. 1014 // Sets the alternate error page URL (link doctor) for the renderer process.
1016 IPC_MESSAGE_ROUTED1(ViewMsg_SetAltErrorPageURL, 1015 IPC_MESSAGE_ROUTED1(ViewMsg_SetAltErrorPageURL,
1017 GURL) 1016 GURL)
1018 1017
1018 // Notifies the color that the user selected in the color chooser.
1019 IPC_MESSAGE_ROUTED2(ViewMsg_DidChooseColorResponse, unsigned, SkColor)
1020 IPC_MESSAGE_ROUTED1(ViewMsg_DidEndColorChooser, unsigned)
1021
1019 IPC_MESSAGE_ROUTED1(ViewMsg_RunFileChooserResponse, 1022 IPC_MESSAGE_ROUTED1(ViewMsg_RunFileChooserResponse,
1020 std::vector<FilePath> /* selected files */) 1023 std::vector<FilePath> /* selected files */)
1021 1024
1022 // Provides the results of directory enumeration. 1025 // Provides the results of directory enumeration.
1023 IPC_MESSAGE_ROUTED2(ViewMsg_EnumerateDirectoryResponse, 1026 IPC_MESSAGE_ROUTED2(ViewMsg_EnumerateDirectoryResponse,
1024 int /* request_id */, 1027 int /* request_id */,
1025 std::vector<FilePath> /* files_in_directory */) 1028 std::vector<FilePath> /* files_in_directory */)
1026 1029
1027 // When a renderer sends a ViewHostMsg_Focus to the browser process, 1030 // When a renderer sends a ViewHostMsg_Focus to the browser process,
1028 // the browser has the option of sending a ViewMsg_CantFocus back to 1031 // the browser has the option of sending a ViewMsg_CantFocus back to
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after
1723 IPC_MESSAGE_ROUTED3(ViewHostMsg_SelectionChanged, 1726 IPC_MESSAGE_ROUTED3(ViewHostMsg_SelectionChanged,
1724 string16 /* text covers the selection range */, 1727 string16 /* text covers the selection range */,
1725 size_t /* the offset of the text in the document */, 1728 size_t /* the offset of the text in the document */,
1726 ui::Range /* selection range in the document */) 1729 ui::Range /* selection range in the document */)
1727 1730
1728 // Notification that the selection bounds have changed. 1731 // Notification that the selection bounds have changed.
1729 IPC_MESSAGE_ROUTED2(ViewHostMsg_SelectionBoundsChanged, 1732 IPC_MESSAGE_ROUTED2(ViewHostMsg_SelectionBoundsChanged,
1730 gfx::Rect /* start rect */, 1733 gfx::Rect /* start rect */,
1731 gfx::Rect /* end rect */) 1734 gfx::Rect /* end rect */)
1732 1735
1736 // Asks the browser to open the color chooser.
1737 IPC_MESSAGE_ROUTED2(ViewHostMsg_OpenColorChooser,
1738 unsigned /* id */,
1739 SkColor /* color */)
1740
1741 // Asks the browser to end the color chooser.
1742 IPC_MESSAGE_ROUTED0(ViewHostMsg_EndColorChooser, unsigned /* id */)
1743
1744 // Change the selected color in the color chooser.
1745 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetSelectedColorInColorChooser,
1746 unsigned, /* id */
1747 SkColor /* color */)
1748
1733 // Asks the browser to display the file chooser. The result is returned in a 1749 // Asks the browser to display the file chooser. The result is returned in a
1734 // ViewHost_RunFileChooserResponse message. 1750 // ViewHost_RunFileChooserResponse message.
1735 IPC_MESSAGE_ROUTED1(ViewHostMsg_RunFileChooser, 1751 IPC_MESSAGE_ROUTED1(ViewHostMsg_RunFileChooser,
1736 content::FileChooserParams) 1752 content::FileChooserParams)
1737 1753
1738 // Asks the browser to enumerate a directory. This is equivalent to running 1754 // Asks the browser to enumerate a directory. This is equivalent to running
1739 // the file chooser in directory-enumeration mode and having the user select 1755 // the file chooser in directory-enumeration mode and having the user select
1740 // the given directory. The result is returned in a 1756 // the given directory. The result is returned in a
1741 // ViewMsg_EnumerateDirectoryResponse message. 1757 // ViewMsg_EnumerateDirectoryResponse message.
1742 IPC_MESSAGE_ROUTED2(ViewHostMsg_EnumerateDirectory, 1758 IPC_MESSAGE_ROUTED2(ViewHostMsg_EnumerateDirectory,
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
2004 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) 2020 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse)
2005 2021
2006 // Following message is used to communicate the values received by the 2022 // Following message is used to communicate the values received by the
2007 // callback binding the JS to Cpp. 2023 // callback binding the JS to Cpp.
2008 // An instance of browser that has an automation host listening to it can 2024 // An instance of browser that has an automation host listening to it can
2009 // have a javascript send a native value (string, number, boolean) to the 2025 // have a javascript send a native value (string, number, boolean) to the
2010 // listener in Cpp. (DomAutomationController) 2026 // listener in Cpp. (DomAutomationController)
2011 IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse, 2027 IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse,
2012 std::string /* json_string */, 2028 std::string /* json_string */,
2013 int /* automation_id */) 2029 int /* automation_id */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698