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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 IPC_STRUCT_MEMBER(int, id) 444 IPC_STRUCT_MEMBER(int, id)
445 445
446 // The accessibility node tree. 446 // The accessibility node tree.
447 IPC_STRUCT_MEMBER(webkit_glue::WebAccessibility, acc_tree) 447 IPC_STRUCT_MEMBER(webkit_glue::WebAccessibility, acc_tree)
448 448
449 // Whether children are included in this tree, otherwise it's just an 449 // Whether children are included in this tree, otherwise it's just an
450 // update to this one node and existing children are left in place. 450 // update to this one node and existing children are left in place.
451 IPC_STRUCT_MEMBER(bool, includes_children) 451 IPC_STRUCT_MEMBER(bool, includes_children)
452 IPC_STRUCT_END() 452 IPC_STRUCT_END()
453 453
454 #if defined(ENABLE_INPUT_COLOR)
455 IPC_STRUCT_BEGIN(ViewHostMsg_SetSelectedColorInColorChooser_Params)
456 // The new color to set as the selected color in the color chooser.
457 IPC_STRUCT_MEMBER(WebKit::WebColor, color)
458 IPC_STRUCT_END()
459 #endif // defined(ENABLE_INPUT_COLOR)
454 460
455 IPC_STRUCT_BEGIN(ViewHostMsg_RunFileChooser_Params) 461 IPC_STRUCT_BEGIN(ViewHostMsg_RunFileChooser_Params)
456 IPC_STRUCT_MEMBER(ViewHostMsg_RunFileChooser_Mode::Value, mode) 462 IPC_STRUCT_MEMBER(ViewHostMsg_RunFileChooser_Mode::Value, mode)
457 463
458 // Title to be used for the dialog. This may be empty for the default title, 464 // Title to be used for the dialog. This may be empty for the default title,
459 // which will be either "Open" or "Save" depending on the mode. 465 // which will be either "Open" or "Save" depending on the mode.
460 IPC_STRUCT_MEMBER(string16, title) 466 IPC_STRUCT_MEMBER(string16, title)
461 467
462 // Default file name to select in the dialog. 468 // Default file name to select in the dialog.
463 IPC_STRUCT_MEMBER(FilePath, default_file_name) 469 IPC_STRUCT_MEMBER(FilePath, default_file_name)
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 998
993 // Used to notify the render-view that we have received a target URL. Used 999 // Used to notify the render-view that we have received a target URL. Used
994 // to prevent target URLs spamming the browser. 1000 // to prevent target URLs spamming the browser.
995 IPC_MESSAGE_ROUTED0(ViewMsg_UpdateTargetURL_ACK) 1001 IPC_MESSAGE_ROUTED0(ViewMsg_UpdateTargetURL_ACK)
996 1002
997 1003
998 // Sets the alternate error page URL (link doctor) for the renderer process. 1004 // Sets the alternate error page URL (link doctor) for the renderer process.
999 IPC_MESSAGE_ROUTED1(ViewMsg_SetAltErrorPageURL, 1005 IPC_MESSAGE_ROUTED1(ViewMsg_SetAltErrorPageURL,
1000 GURL) 1006 GURL)
1001 1007
1008 #if defined(ENABLE_INPUT_COLOR)
1009 // Notifies the color that the user selected in the color chooser.
1010 IPC_MESSAGE_ROUTED1(ViewMsg_DidChooseColorResponse, WebKit::WebColor)
1011 IPC_MESSAGE_ROUTED0(ViewMsg_DidCleanupColorChooser)
1012 #endif // defined(ENABLE_INPUT_COLOR)
1013
1002 IPC_MESSAGE_ROUTED1(ViewMsg_RunFileChooserResponse, 1014 IPC_MESSAGE_ROUTED1(ViewMsg_RunFileChooserResponse,
1003 std::vector<FilePath> /* selected files */) 1015 std::vector<FilePath> /* selected files */)
1004 1016
1005 // Provides the results of directory enumeration. 1017 // Provides the results of directory enumeration.
1006 IPC_MESSAGE_ROUTED2(ViewMsg_EnumerateDirectoryResponse, 1018 IPC_MESSAGE_ROUTED2(ViewMsg_EnumerateDirectoryResponse,
1007 int /* request_id */, 1019 int /* request_id */,
1008 std::vector<FilePath> /* files_in_directory */) 1020 std::vector<FilePath> /* files_in_directory */)
1009 1021
1010 // When a renderer sends a ViewHostMsg_Focus to the browser process, 1022 // When a renderer sends a ViewHostMsg_Focus to the browser process,
1011 // the browser has the option of sending a ViewMsg_CantFocus back to 1023 // the browser has the option of sending a ViewMsg_CantFocus back to
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
1666 IPC_MESSAGE_ROUTED3(ViewHostMsg_SelectionChanged, 1678 IPC_MESSAGE_ROUTED3(ViewHostMsg_SelectionChanged,
1667 string16 /* text covers the selection range */, 1679 string16 /* text covers the selection range */,
1668 size_t /* the offset of the text in the document */, 1680 size_t /* the offset of the text in the document */,
1669 ui::Range /* selection range in the document */) 1681 ui::Range /* selection range in the document */)
1670 1682
1671 // Notification that the selection bounds have changed. 1683 // Notification that the selection bounds have changed.
1672 IPC_MESSAGE_ROUTED2(ViewHostMsg_SelectionBoundsChanged, 1684 IPC_MESSAGE_ROUTED2(ViewHostMsg_SelectionBoundsChanged,
1673 gfx::Rect /* start rect */, 1685 gfx::Rect /* start rect */,
1674 gfx::Rect /* end rect */) 1686 gfx::Rect /* end rect */)
1675 1687
1688 #if defined(ENABLE_INPUT_COLOR)
1689 // Asks the browser to open the color chooser.
1690 IPC_MESSAGE_ROUTED1(ViewHostMsg_OpenColorChooser,
1691 ViewHostMsg_SetSelectedColorInColorChooser_Params)
1692
1693 // Asks the browser to cleanup the color chooser.
1694 IPC_MESSAGE_ROUTED0(ViewHostMsg_CleanupColorChooser)
1695
1696 // Change the selected color in the color chooser.
1697 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetSelectedColorInColorChooser,
1698 ViewHostMsg_SetSelectedColorInColorChooser_Params)
1699 #endif // defined(ENABLE_INPUT_COLOR)
1700
1676 // Asks the browser to display the file chooser. The result is returned in a 1701 // Asks the browser to display the file chooser. The result is returned in a
1677 // ViewHost_RunFileChooserResponse message. 1702 // ViewHost_RunFileChooserResponse message.
1678 IPC_MESSAGE_ROUTED1(ViewHostMsg_RunFileChooser, 1703 IPC_MESSAGE_ROUTED1(ViewHostMsg_RunFileChooser,
1679 ViewHostMsg_RunFileChooser_Params) 1704 ViewHostMsg_RunFileChooser_Params)
1680 1705
1681 // Asks the browser to enumerate a directory. This is equivalent to running 1706 // Asks the browser to enumerate a directory. This is equivalent to running
1682 // the file chooser in directory-enumeration mode and having the user select 1707 // the file chooser in directory-enumeration mode and having the user select
1683 // the given directory. The result is returned in a 1708 // the given directory. The result is returned in a
1684 // ViewMsg_EnumerateDirectoryResponse message. 1709 // ViewMsg_EnumerateDirectoryResponse message.
1685 IPC_MESSAGE_ROUTED2(ViewHostMsg_EnumerateDirectory, 1710 IPC_MESSAGE_ROUTED2(ViewHostMsg_EnumerateDirectory,
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
1938 media::MediaLogEvent /* event */) 1963 media::MediaLogEvent /* event */)
1939 1964
1940 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message 1965 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message
1941 // being sent back. 1966 // being sent back.
1942 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) 1967 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse)
1943 1968
1944 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent 1969 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent
1945 // whenever the mouse is unlocked (which may or may not be caused by 1970 // whenever the mouse is unlocked (which may or may not be caused by
1946 // ViewHostMsg_UnlockMouse). 1971 // ViewHostMsg_UnlockMouse).
1947 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) 1972 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698