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" |
11 #include "cc/output/begin_frame_args.h" | 11 #include "cc/output/begin_frame_args.h" |
12 #include "cc/output/compositor_frame.h" | 12 #include "cc/output/compositor_frame.h" |
13 #include "cc/output/compositor_frame_ack.h" | 13 #include "cc/output/compositor_frame_ack.h" |
14 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
15 #include "content/common/content_param_traits.h" | 15 #include "content/common/content_param_traits.h" |
16 #include "content/common/cookie_data.h" | 16 #include "content/common/cookie_data.h" |
| 17 #include "content/common/input/did_overscroll_params.h" |
17 #include "content/common/navigation_gesture.h" | 18 #include "content/common/navigation_gesture.h" |
18 #include "content/common/pepper_renderer_instance_data.h" | 19 #include "content/common/pepper_renderer_instance_data.h" |
19 #include "content/common/view_message_enums.h" | 20 #include "content/common/view_message_enums.h" |
20 #include "content/common/webplugin_geometry.h" | 21 #include "content/common/webplugin_geometry.h" |
21 #include "content/port/common/input_event_ack_state.h" | 22 #include "content/port/common/input_event_ack_state.h" |
22 #include "content/public/common/common_param_traits.h" | 23 #include "content/public/common/common_param_traits.h" |
23 #include "content/public/common/favicon_url.h" | 24 #include "content/public/common/favicon_url.h" |
24 #include "content/public/common/file_chooser_params.h" | 25 #include "content/public/common/file_chooser_params.h" |
25 #include "content/public/common/menu_item.h" | 26 #include "content/public/common/menu_item.h" |
26 #include "content/public/common/page_state.h" | 27 #include "content/public/common/page_state.h" |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 IPC_STRUCT_TRAITS_MEMBER(checked) | 145 IPC_STRUCT_TRAITS_MEMBER(checked) |
145 IPC_STRUCT_TRAITS_MEMBER(submenu) | 146 IPC_STRUCT_TRAITS_MEMBER(submenu) |
146 IPC_STRUCT_TRAITS_END() | 147 IPC_STRUCT_TRAITS_END() |
147 | 148 |
148 IPC_STRUCT_TRAITS_BEGIN(content::DateTimeSuggestion) | 149 IPC_STRUCT_TRAITS_BEGIN(content::DateTimeSuggestion) |
149 IPC_STRUCT_TRAITS_MEMBER(value) | 150 IPC_STRUCT_TRAITS_MEMBER(value) |
150 IPC_STRUCT_TRAITS_MEMBER(localized_value) | 151 IPC_STRUCT_TRAITS_MEMBER(localized_value) |
151 IPC_STRUCT_TRAITS_MEMBER(label) | 152 IPC_STRUCT_TRAITS_MEMBER(label) |
152 IPC_STRUCT_TRAITS_END() | 153 IPC_STRUCT_TRAITS_END() |
153 | 154 |
| 155 IPC_STRUCT_TRAITS_BEGIN(content::DidOverscrollParams) |
| 156 IPC_STRUCT_TRAITS_MEMBER(accumulated_overscroll) |
| 157 IPC_STRUCT_TRAITS_MEMBER(latest_overscroll_delta) |
| 158 IPC_STRUCT_TRAITS_MEMBER(current_fling_velocity) |
| 159 IPC_STRUCT_TRAITS_END() |
| 160 |
154 IPC_STRUCT_TRAITS_BEGIN(content::FaviconURL) | 161 IPC_STRUCT_TRAITS_BEGIN(content::FaviconURL) |
155 IPC_STRUCT_TRAITS_MEMBER(icon_url) | 162 IPC_STRUCT_TRAITS_MEMBER(icon_url) |
156 IPC_STRUCT_TRAITS_MEMBER(icon_type) | 163 IPC_STRUCT_TRAITS_MEMBER(icon_type) |
157 IPC_STRUCT_TRAITS_MEMBER(icon_sizes) | 164 IPC_STRUCT_TRAITS_MEMBER(icon_sizes) |
158 IPC_STRUCT_TRAITS_END() | 165 IPC_STRUCT_TRAITS_END() |
159 | 166 |
160 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserParams) | 167 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserParams) |
161 IPC_STRUCT_TRAITS_MEMBER(mode) | 168 IPC_STRUCT_TRAITS_MEMBER(mode) |
162 IPC_STRUCT_TRAITS_MEMBER(title) | 169 IPC_STRUCT_TRAITS_MEMBER(title) |
163 IPC_STRUCT_TRAITS_MEMBER(default_file_name) | 170 IPC_STRUCT_TRAITS_MEMBER(default_file_name) |
(...skipping 1395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1559 IPC_MESSAGE_ROUTED1( | 1566 IPC_MESSAGE_ROUTED1( |
1560 ViewHostMsg_CompositorSurfaceBuffersSwapped, | 1567 ViewHostMsg_CompositorSurfaceBuffersSwapped, |
1561 ViewHostMsg_CompositorSurfaceBuffersSwapped_Params /* params */) | 1568 ViewHostMsg_CompositorSurfaceBuffersSwapped_Params /* params */) |
1562 | 1569 |
1563 IPC_MESSAGE_ROUTED2(ViewHostMsg_SwapCompositorFrame, | 1570 IPC_MESSAGE_ROUTED2(ViewHostMsg_SwapCompositorFrame, |
1564 uint32 /* output_surface_id */, | 1571 uint32 /* output_surface_id */, |
1565 cc::CompositorFrame /* frame */) | 1572 cc::CompositorFrame /* frame */) |
1566 | 1573 |
1567 // Sent by the compositor when input scroll events are dropped due to bounds | 1574 // Sent by the compositor when input scroll events are dropped due to bounds |
1568 // restricions on the root scroll offset. | 1575 // restricions on the root scroll offset. |
1569 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidOverscroll, | 1576 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidOverscroll, |
1570 gfx::Vector2dF /* accumulated_overscroll */, | 1577 content::DidOverscrollParams /* params */) |
1571 gfx::Vector2dF /* current_fling_velocity */) | |
1572 | 1578 |
1573 // Sent by the compositor when a flinging animation is stopped. | 1579 // Sent by the compositor when a flinging animation is stopped. |
1574 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidStopFlinging) | 1580 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidStopFlinging) |
1575 | 1581 |
1576 // Reply to a snapshot request containing whether snapshotting succeeded and the | 1582 // Reply to a snapshot request containing whether snapshotting succeeded and the |
1577 // SkBitmap if it succeeded. | 1583 // SkBitmap if it succeeded. |
1578 IPC_MESSAGE_ROUTED2(ViewHostMsg_Snapshot, | 1584 IPC_MESSAGE_ROUTED2(ViewHostMsg_Snapshot, |
1579 bool, /* success */ | 1585 bool, /* success */ |
1580 SkBitmap /* bitmap */) | 1586 SkBitmap /* bitmap */) |
1581 | 1587 |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1829 // synchronously (see crbug.com/120597). This IPC message sends the character | 1835 // synchronously (see crbug.com/120597). This IPC message sends the character |
1830 // bounds after every composition change to always have correct bound info. | 1836 // bounds after every composition change to always have correct bound info. |
1831 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 1837 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
1832 gfx::Range /* composition range */, | 1838 gfx::Range /* composition range */, |
1833 std::vector<gfx::Rect> /* character bounds */) | 1839 std::vector<gfx::Rect> /* character bounds */) |
1834 #endif | 1840 #endif |
1835 | 1841 |
1836 // Adding a new message? Stick to the sort order above: first platform | 1842 // Adding a new message? Stick to the sort order above: first platform |
1837 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1843 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
1838 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1844 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |