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

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 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 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 974 matching lines...) Expand 10 before | Expand all | Expand 10 after
985 985
986 // Used to notify the render-view that we have received a target URL. Used 986 // Used to notify the render-view that we have received a target URL. Used
987 // to prevent target URLs spamming the browser. 987 // to prevent target URLs spamming the browser.
988 IPC_MESSAGE_ROUTED0(ViewMsg_UpdateTargetURL_ACK) 988 IPC_MESSAGE_ROUTED0(ViewMsg_UpdateTargetURL_ACK)
989 989
990 990
991 // Sets the alternate error page URL (link doctor) for the renderer process. 991 // Sets the alternate error page URL (link doctor) for the renderer process.
992 IPC_MESSAGE_ROUTED1(ViewMsg_SetAltErrorPageURL, 992 IPC_MESSAGE_ROUTED1(ViewMsg_SetAltErrorPageURL,
993 GURL) 993 GURL)
994 994
995 // Notifies the color chooser client that the user selected a color.
996 IPC_MESSAGE_ROUTED2(ViewMsg_DidChooseColorResponse, unsigned, SkColor)
997
998 // Notifies the color chooser client that the color chooser has ended.
999 IPC_MESSAGE_ROUTED1(ViewMsg_DidEndColorChooser, unsigned)
1000
995 IPC_MESSAGE_ROUTED1(ViewMsg_RunFileChooserResponse, 1001 IPC_MESSAGE_ROUTED1(ViewMsg_RunFileChooserResponse,
996 std::vector<FilePath> /* selected files */) 1002 std::vector<FilePath> /* selected files */)
997 1003
998 // Provides the results of directory enumeration. 1004 // Provides the results of directory enumeration.
999 IPC_MESSAGE_ROUTED2(ViewMsg_EnumerateDirectoryResponse, 1005 IPC_MESSAGE_ROUTED2(ViewMsg_EnumerateDirectoryResponse,
1000 int /* request_id */, 1006 int /* request_id */,
1001 std::vector<FilePath> /* files_in_directory */) 1007 std::vector<FilePath> /* files_in_directory */)
1002 1008
1003 // When a renderer sends a ViewHostMsg_Focus to the browser process, 1009 // When a renderer sends a ViewHostMsg_Focus to the browser process,
1004 // the browser has the option of sending a ViewMsg_CantFocus back to 1010 // the browser has the option of sending a ViewMsg_CantFocus back to
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
1664 IPC_MESSAGE_ROUTED3(ViewHostMsg_SelectionChanged, 1670 IPC_MESSAGE_ROUTED3(ViewHostMsg_SelectionChanged,
1665 string16 /* text covers the selection range */, 1671 string16 /* text covers the selection range */,
1666 size_t /* the offset of the text in the document */, 1672 size_t /* the offset of the text in the document */,
1667 ui::Range /* selection range in the document */) 1673 ui::Range /* selection range in the document */)
1668 1674
1669 // Notification that the selection bounds have changed. 1675 // Notification that the selection bounds have changed.
1670 IPC_MESSAGE_ROUTED2(ViewHostMsg_SelectionBoundsChanged, 1676 IPC_MESSAGE_ROUTED2(ViewHostMsg_SelectionBoundsChanged,
1671 gfx::Rect /* start rect */, 1677 gfx::Rect /* start rect */,
1672 gfx::Rect /* end rect */) 1678 gfx::Rect /* end rect */)
1673 1679
1680 // Asks the browser to open the color chooser.
1681 IPC_MESSAGE_ROUTED2(ViewHostMsg_OpenColorChooser,
1682 int /* id */,
1683 SkColor /* color */)
1684
1685 // Asks the browser to end the color chooser.
1686 IPC_MESSAGE_ROUTED1(ViewHostMsg_EndColorChooser, int /* id */)
1687
1688 // Change the selected color in the color chooser.
1689 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetSelectedColorInColorChooser,
1690 int /* id */,
1691 SkColor /* color */)
1692
1674 // Asks the browser to display the file chooser. The result is returned in a 1693 // Asks the browser to display the file chooser. The result is returned in a
1675 // ViewHost_RunFileChooserResponse message. 1694 // ViewHost_RunFileChooserResponse message.
1676 IPC_MESSAGE_ROUTED1(ViewHostMsg_RunFileChooser, 1695 IPC_MESSAGE_ROUTED1(ViewHostMsg_RunFileChooser,
1677 content::FileChooserParams) 1696 content::FileChooserParams)
1678 1697
1679 // Asks the browser to enumerate a directory. This is equivalent to running 1698 // Asks the browser to enumerate a directory. This is equivalent to running
1680 // the file chooser in directory-enumeration mode and having the user select 1699 // the file chooser in directory-enumeration mode and having the user select
1681 // the given directory. The result is returned in a 1700 // the given directory. The result is returned in a
1682 // ViewMsg_EnumerateDirectoryResponse message. 1701 // ViewMsg_EnumerateDirectoryResponse message.
1683 IPC_MESSAGE_ROUTED2(ViewHostMsg_EnumerateDirectory, 1702 IPC_MESSAGE_ROUTED2(ViewHostMsg_EnumerateDirectory,
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
1944 // have a javascript send a native value (string, number, boolean) to the 1963 // have a javascript send a native value (string, number, boolean) to the
1945 // listener in Cpp. (DomAutomationController) 1964 // listener in Cpp. (DomAutomationController)
1946 IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse, 1965 IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse,
1947 std::string /* json_string */, 1966 std::string /* json_string */,
1948 int /* automation_id */) 1967 int /* automation_id */)
1949 1968
1950 // Enable or disable inverting of web content pixels, for users who prefer 1969 // Enable or disable inverting of web content pixels, for users who prefer
1951 // white-on-black. 1970 // white-on-black.
1952 IPC_MESSAGE_ROUTED1(ViewMsg_InvertWebContent, 1971 IPC_MESSAGE_ROUTED1(ViewMsg_InvertWebContent,
1953 bool /* invert */) 1972 bool /* invert */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698