OLD | NEW |
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 "base/string16.h" | 10 #include "base/string16.h" |
(...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
855 // Ack goes directly from browser -> renderer. This is not used for the threaded | 855 // Ack goes directly from browser -> renderer. This is not used for the threaded |
856 // compositor path. | 856 // compositor path. |
857 IPC_MESSAGE_ROUTED0(ViewMsg_SwapBuffers_ACK) | 857 IPC_MESSAGE_ROUTED0(ViewMsg_SwapBuffers_ACK) |
858 | 858 |
859 // Sends an input event to the render widget. | 859 // Sends an input event to the render widget. |
860 IPC_MESSAGE_ROUTED2(ViewMsg_HandleInputEvent, | 860 IPC_MESSAGE_ROUTED2(ViewMsg_HandleInputEvent, |
861 IPC::WebInputEventPointer /* event */, | 861 IPC::WebInputEventPointer /* event */, |
862 bool /* is_keyboard_shortcut */) | 862 bool /* is_keyboard_shortcut */) |
863 | 863 |
864 // Tells the render widget that a smooth scroll completed. | 864 // Tells the render widget that a smooth scroll completed. |
865 IPC_MESSAGE_ROUTED1(ViewMsg_SmoothScrollCompleted, | 865 IPC_MESSAGE_ROUTED0(ViewMsg_SmoothScrollCompleted) |
866 int /* gesture_id */) | |
867 | 866 |
868 // This message notifies the renderer that the next key event is bound to one | 867 // This message notifies the renderer that the next key event is bound to one |
869 // or more pre-defined edit commands. If the next key event is not handled | 868 // or more pre-defined edit commands. If the next key event is not handled |
870 // by webkit, the specified edit commands shall be executed against current | 869 // by webkit, the specified edit commands shall be executed against current |
871 // focused frame. | 870 // focused frame. |
872 // Parameters | 871 // Parameters |
873 // * edit_commands (see chrome/common/edit_command_types.h) | 872 // * edit_commands (see chrome/common/edit_command_types.h) |
874 // Contains one or more edit commands. | 873 // Contains one or more edit commands. |
875 // See third_party/WebKit/Source/WebCore/editing/EditorCommand.cpp for detailed | 874 // See third_party/WebKit/Source/WebCore/editing/EditorCommand.cpp for detailed |
876 // definition of webkit edit commands. | 875 // definition of webkit edit commands. |
(...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1684 WebKit::WebInputEvent::Type, | 1683 WebKit::WebInputEvent::Type, |
1685 content::InputEventAckState /* ack_result */) | 1684 content::InputEventAckState /* ack_result */) |
1686 | 1685 |
1687 IPC_STRUCT_BEGIN(ViewHostMsg_BeginSmoothScroll_Params) | 1686 IPC_STRUCT_BEGIN(ViewHostMsg_BeginSmoothScroll_Params) |
1688 IPC_STRUCT_MEMBER(bool, scroll_down) | 1687 IPC_STRUCT_MEMBER(bool, scroll_down) |
1689 IPC_STRUCT_MEMBER(int, pixels_to_scroll) | 1688 IPC_STRUCT_MEMBER(int, pixels_to_scroll) |
1690 IPC_STRUCT_MEMBER(int, mouse_event_x) | 1689 IPC_STRUCT_MEMBER(int, mouse_event_x) |
1691 IPC_STRUCT_MEMBER(int, mouse_event_y) | 1690 IPC_STRUCT_MEMBER(int, mouse_event_y) |
1692 IPC_STRUCT_END() | 1691 IPC_STRUCT_END() |
1693 | 1692 |
1694 IPC_MESSAGE_ROUTED2(ViewHostMsg_BeginSmoothScroll, | 1693 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_BeginSmoothScroll, |
1695 int /* gesture_id */, | 1694 ViewHostMsg_BeginSmoothScroll_Params /* params */, |
1696 ViewHostMsg_BeginSmoothScroll_Params /* params */) | 1695 bool /* smooth_scroll_started */) |
1697 | 1696 |
1698 IPC_MESSAGE_ROUTED0(ViewHostMsg_Focus) | 1697 IPC_MESSAGE_ROUTED0(ViewHostMsg_Focus) |
1699 IPC_MESSAGE_ROUTED0(ViewHostMsg_Blur) | 1698 IPC_MESSAGE_ROUTED0(ViewHostMsg_Blur) |
1700 | 1699 |
1701 // Message sent from renderer to the browser when focus changes inside the | 1700 // Message sent from renderer to the browser when focus changes inside the |
1702 // webpage. The parameter says whether the newly focused element needs | 1701 // webpage. The parameter says whether the newly focused element needs |
1703 // keyboard input (true for textfields, text areas and content editable divs). | 1702 // keyboard input (true for textfields, text areas and content editable divs). |
1704 IPC_MESSAGE_ROUTED1(ViewHostMsg_FocusedNodeChanged, | 1703 IPC_MESSAGE_ROUTED1(ViewHostMsg_FocusedNodeChanged, |
1705 bool /* is_editable_node */) | 1704 bool /* is_editable_node */) |
1706 | 1705 |
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2375 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters | 2374 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters |
2376 // for details. | 2375 // for details. |
2377 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, | 2376 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, |
2378 LOGFONT /* font_data */, | 2377 LOGFONT /* font_data */, |
2379 string16 /* characters */) | 2378 string16 /* characters */) |
2380 #endif | 2379 #endif |
2381 | 2380 |
2382 // Adding a new message? Stick to the sort order above: first platform | 2381 // Adding a new message? Stick to the sort order above: first platform |
2383 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2382 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
2384 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2383 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |