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/memory/shared_memory.h" | 8 #include "base/memory/shared_memory.h" |
9 #include "base/process/process.h" | 9 #include "base/process/process.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
906 IPC_MESSAGE_ROUTED0(ViewMsg_UpdateRect_ACK) | 906 IPC_MESSAGE_ROUTED0(ViewMsg_UpdateRect_ACK) |
907 | 907 |
908 // Tells the render view that a SwapBuffers was completed. Typically, | 908 // Tells the render view that a SwapBuffers was completed. Typically, |
909 // SwapBuffers requests go from renderer -> GPU process -> browser. Most | 909 // SwapBuffers requests go from renderer -> GPU process -> browser. Most |
910 // platforms still use the GfxCxt3D Echo for receiving the SwapBuffers Ack. | 910 // platforms still use the GfxCxt3D Echo for receiving the SwapBuffers Ack. |
911 // Using Echo routes the ack from browser -> GPU process -> renderer, while this | 911 // Using Echo routes the ack from browser -> GPU process -> renderer, while this |
912 // Ack goes directly from browser -> renderer. This is not used for the threaded | 912 // Ack goes directly from browser -> renderer. This is not used for the threaded |
913 // compositor path. | 913 // compositor path. |
914 IPC_MESSAGE_ROUTED0(ViewMsg_SwapBuffers_ACK) | 914 IPC_MESSAGE_ROUTED0(ViewMsg_SwapBuffers_ACK) |
915 | 915 |
916 // Tells the render widget that a smooth scroll completed. | |
917 IPC_MESSAGE_ROUTED0(ViewMsg_SyntheticGestureCompleted) | |
918 | |
919 // Tells the renderer to focus the first (last if reverse is true) focusable | 916 // Tells the renderer to focus the first (last if reverse is true) focusable |
920 // node. | 917 // node. |
921 IPC_MESSAGE_ROUTED1(ViewMsg_SetInitialFocus, | 918 IPC_MESSAGE_ROUTED1(ViewMsg_SetInitialFocus, |
922 bool /* reverse */) | 919 bool /* reverse */) |
923 | 920 |
924 // Executes custom context menu action that was provided from WebKit. | 921 // Executes custom context menu action that was provided from WebKit. |
925 IPC_MESSAGE_ROUTED2(ViewMsg_CustomContextMenuAction, | 922 IPC_MESSAGE_ROUTED2(ViewMsg_CustomContextMenuAction, |
926 content::CustomContextMenuContext /* custom_context */, | 923 content::CustomContextMenuContext /* custom_context */, |
927 unsigned /* action */) | 924 unsigned /* action */) |
928 | 925 |
(...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1651 | 1648 |
1652 // Sent to unblock the browser's UI thread if it is waiting on an UpdateRect, | 1649 // Sent to unblock the browser's UI thread if it is waiting on an UpdateRect, |
1653 // which may get delayed until the browser's UI unblocks. | 1650 // which may get delayed until the browser's UI unblocks. |
1654 IPC_MESSAGE_ROUTED0(ViewHostMsg_UpdateIsDelayed) | 1651 IPC_MESSAGE_ROUTED0(ViewHostMsg_UpdateIsDelayed) |
1655 | 1652 |
1656 // Sent by the renderer when accelerated compositing is enabled or disabled to | 1653 // Sent by the renderer when accelerated compositing is enabled or disabled to |
1657 // notify the browser whether or not is should do painting. | 1654 // notify the browser whether or not is should do painting. |
1658 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidActivateAcceleratedCompositing, | 1655 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidActivateAcceleratedCompositing, |
1659 bool /* true if the accelerated compositor is actve */) | 1656 bool /* true if the accelerated compositor is actve */) |
1660 | 1657 |
1661 IPC_STRUCT_BEGIN(ViewHostMsg_BeginSmoothScroll_Params) | |
1662 IPC_STRUCT_MEMBER(bool, scroll_down) | |
1663 IPC_STRUCT_MEMBER(int32, pixels_to_scroll) | |
1664 IPC_STRUCT_MEMBER(int32, mouse_event_x) | |
1665 IPC_STRUCT_MEMBER(int32, mouse_event_y) | |
1666 IPC_STRUCT_END() | |
1667 | |
1668 IPC_MESSAGE_ROUTED1(ViewHostMsg_BeginSmoothScroll, | |
1669 ViewHostMsg_BeginSmoothScroll_Params /* params */) | |
1670 | |
1671 IPC_STRUCT_BEGIN(ViewHostMsg_BeginPinch_Params) | |
1672 IPC_STRUCT_MEMBER(bool, zoom_in) | |
1673 IPC_STRUCT_MEMBER(int32, pixels_to_move) | |
1674 IPC_STRUCT_MEMBER(int32, anchor_x) | |
1675 IPC_STRUCT_MEMBER(int32, anchor_y) | |
1676 IPC_STRUCT_END() | |
1677 | |
1678 IPC_MESSAGE_ROUTED1(ViewHostMsg_BeginPinch, | |
1679 ViewHostMsg_BeginPinch_Params /* params */) | |
1680 | |
1681 IPC_MESSAGE_ROUTED0(ViewHostMsg_Focus) | 1658 IPC_MESSAGE_ROUTED0(ViewHostMsg_Focus) |
1682 IPC_MESSAGE_ROUTED0(ViewHostMsg_Blur) | 1659 IPC_MESSAGE_ROUTED0(ViewHostMsg_Blur) |
1683 | 1660 |
1684 // Message sent from renderer to the browser when focus changes inside the | 1661 // Message sent from renderer to the browser when focus changes inside the |
1685 // webpage. The parameter says whether the newly focused element needs | 1662 // webpage. The parameter says whether the newly focused element needs |
1686 // keyboard input (true for textfields, text areas and content editable divs). | 1663 // keyboard input (true for textfields, text areas and content editable divs). |
1687 IPC_MESSAGE_ROUTED1(ViewHostMsg_FocusedNodeChanged, | 1664 IPC_MESSAGE_ROUTED1(ViewHostMsg_FocusedNodeChanged, |
1688 bool /* is_editable_node */) | 1665 bool /* is_editable_node */) |
1689 | 1666 |
1690 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetCursor, | 1667 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetCursor, |
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2367 // synchronously (see crbug.com/120597). This IPC message sends the character | 2344 // synchronously (see crbug.com/120597). This IPC message sends the character |
2368 // bounds after every composition change to always have correct bound info. | 2345 // bounds after every composition change to always have correct bound info. |
2369 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 2346 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
2370 gfx::Range /* composition range */, | 2347 gfx::Range /* composition range */, |
2371 std::vector<gfx::Rect> /* character bounds */) | 2348 std::vector<gfx::Rect> /* character bounds */) |
2372 #endif | 2349 #endif |
2373 | 2350 |
2374 // Adding a new message? Stick to the sort order above: first platform | 2351 // Adding a new message? Stick to the sort order above: first platform |
2375 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2352 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
2376 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2353 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |