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 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
840 // Ack goes directly from browser -> renderer. This is not used for the threaded | 840 // Ack goes directly from browser -> renderer. This is not used for the threaded |
841 // compositor path. | 841 // compositor path. |
842 IPC_MESSAGE_ROUTED0(ViewMsg_SwapBuffers_ACK) | 842 IPC_MESSAGE_ROUTED0(ViewMsg_SwapBuffers_ACK) |
843 | 843 |
844 // Sends an input event to the render widget. | 844 // Sends an input event to the render widget. |
845 IPC_MESSAGE_ROUTED2(ViewMsg_HandleInputEvent, | 845 IPC_MESSAGE_ROUTED2(ViewMsg_HandleInputEvent, |
846 IPC::WebInputEventPointer /* event */, | 846 IPC::WebInputEventPointer /* event */, |
847 bool /* is_keyboard_shortcut */) | 847 bool /* is_keyboard_shortcut */) |
848 | 848 |
849 // Tells the render widget that a smooth scroll completed. | 849 // Tells the render widget that a smooth scroll completed. |
850 IPC_MESSAGE_ROUTED1(ViewMsg_SmoothScrollCompleted, | 850 IPC_MESSAGE_ROUTED0(ViewMsg_SmoothScrollCompleted) |
rjkroege
2013/02/21 19:26:33
using a RenderViewHostObserver could save you need
bulach
2013/02/22 16:55:14
hmm.. this is just being changed, not added, but a
| |
851 int /* gesture_id */) | |
852 | 851 |
853 // This message notifies the renderer that the next key event is bound to one | 852 // This message notifies the renderer that the next key event is bound to one |
854 // or more pre-defined edit commands. If the next key event is not handled | 853 // or more pre-defined edit commands. If the next key event is not handled |
855 // by webkit, the specified edit commands shall be executed against current | 854 // by webkit, the specified edit commands shall be executed against current |
856 // focused frame. | 855 // focused frame. |
857 // Parameters | 856 // Parameters |
858 // * edit_commands (see chrome/common/edit_command_types.h) | 857 // * edit_commands (see chrome/common/edit_command_types.h) |
859 // Contains one or more edit commands. | 858 // Contains one or more edit commands. |
860 // See third_party/WebKit/Source/WebCore/editing/EditorCommand.cpp for detailed | 859 // See third_party/WebKit/Source/WebCore/editing/EditorCommand.cpp for detailed |
861 // definition of webkit edit commands. | 860 // definition of webkit edit commands. |
(...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1672 WebKit::WebInputEvent::Type, | 1671 WebKit::WebInputEvent::Type, |
1673 content::InputEventAckState /* ack_result */) | 1672 content::InputEventAckState /* ack_result */) |
1674 | 1673 |
1675 IPC_STRUCT_BEGIN(ViewHostMsg_BeginSmoothScroll_Params) | 1674 IPC_STRUCT_BEGIN(ViewHostMsg_BeginSmoothScroll_Params) |
1676 IPC_STRUCT_MEMBER(bool, scroll_down) | 1675 IPC_STRUCT_MEMBER(bool, scroll_down) |
1677 IPC_STRUCT_MEMBER(int, pixels_to_scroll) | 1676 IPC_STRUCT_MEMBER(int, pixels_to_scroll) |
1678 IPC_STRUCT_MEMBER(int, mouse_event_x) | 1677 IPC_STRUCT_MEMBER(int, mouse_event_x) |
1679 IPC_STRUCT_MEMBER(int, mouse_event_y) | 1678 IPC_STRUCT_MEMBER(int, mouse_event_y) |
1680 IPC_STRUCT_END() | 1679 IPC_STRUCT_END() |
1681 | 1680 |
1682 IPC_MESSAGE_ROUTED2(ViewHostMsg_BeginSmoothScroll, | 1681 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_BeginSmoothScroll, |
1683 int /* gesture_id */, | 1682 ViewHostMsg_BeginSmoothScroll_Params /* params */, |
1684 ViewHostMsg_BeginSmoothScroll_Params /* params */) | 1683 bool /* smooth_scroll_started */) |
1685 | 1684 |
1686 IPC_MESSAGE_ROUTED0(ViewHostMsg_Focus) | 1685 IPC_MESSAGE_ROUTED0(ViewHostMsg_Focus) |
1687 IPC_MESSAGE_ROUTED0(ViewHostMsg_Blur) | 1686 IPC_MESSAGE_ROUTED0(ViewHostMsg_Blur) |
1688 | 1687 |
1689 // Message sent from renderer to the browser when focus changes inside the | 1688 // Message sent from renderer to the browser when focus changes inside the |
1690 // webpage. The parameter says whether the newly focused element needs | 1689 // webpage. The parameter says whether the newly focused element needs |
1691 // keyboard input (true for textfields, text areas and content editable divs). | 1690 // keyboard input (true for textfields, text areas and content editable divs). |
1692 IPC_MESSAGE_ROUTED1(ViewHostMsg_FocusedNodeChanged, | 1691 IPC_MESSAGE_ROUTED1(ViewHostMsg_FocusedNodeChanged, |
1693 bool /* is_editable_node */) | 1692 bool /* is_editable_node */) |
1694 | 1693 |
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2400 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters | 2399 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters |
2401 // for details. | 2400 // for details. |
2402 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, | 2401 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, |
2403 LOGFONT /* font_data */, | 2402 LOGFONT /* font_data */, |
2404 string16 /* characters */) | 2403 string16 /* characters */) |
2405 #endif | 2404 #endif |
2406 | 2405 |
2407 // Notifies the browser that the frame with the given id was detached. | 2406 // Notifies the browser that the frame with the given id was detached. |
2408 IPC_MESSAGE_ROUTED1(ViewHostMsg_FrameDetached, | 2407 IPC_MESSAGE_ROUTED1(ViewHostMsg_FrameDetached, |
2409 int64 /* frame_id */) | 2408 int64 /* frame_id */) |
OLD | NEW |