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

Side by Side Diff: content/common/view_messages.h

Issue 281723010: Bundle DidOverscrollParams with the InputEventAck (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix browser tests Created 6 years, 7 months 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
OLDNEW
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"
18 #include "content/common/input/input_event_ack_state.h"
19 #include "content/common/navigation_gesture.h" 17 #include "content/common/navigation_gesture.h"
20 #include "content/common/pepper_renderer_instance_data.h" 18 #include "content/common/pepper_renderer_instance_data.h"
21 #include "content/common/view_message_enums.h" 19 #include "content/common/view_message_enums.h"
22 #include "content/common/webplugin_geometry.h" 20 #include "content/common/webplugin_geometry.h"
23 #include "content/public/common/common_param_traits.h" 21 #include "content/public/common/common_param_traits.h"
24 #include "content/public/common/favicon_url.h" 22 #include "content/public/common/favicon_url.h"
25 #include "content/public/common/file_chooser_params.h" 23 #include "content/public/common/file_chooser_params.h"
26 #include "content/public/common/menu_item.h" 24 #include "content/public/common/menu_item.h"
27 #include "content/public/common/page_state.h" 25 #include "content/public/common/page_state.h"
28 #include "content/public/common/page_zoom.h" 26 #include "content/public/common/page_zoom.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 IPC_STRUCT_TRAITS_MEMBER(checked) 145 IPC_STRUCT_TRAITS_MEMBER(checked)
148 IPC_STRUCT_TRAITS_MEMBER(submenu) 146 IPC_STRUCT_TRAITS_MEMBER(submenu)
149 IPC_STRUCT_TRAITS_END() 147 IPC_STRUCT_TRAITS_END()
150 148
151 IPC_STRUCT_TRAITS_BEGIN(content::DateTimeSuggestion) 149 IPC_STRUCT_TRAITS_BEGIN(content::DateTimeSuggestion)
152 IPC_STRUCT_TRAITS_MEMBER(value) 150 IPC_STRUCT_TRAITS_MEMBER(value)
153 IPC_STRUCT_TRAITS_MEMBER(localized_value) 151 IPC_STRUCT_TRAITS_MEMBER(localized_value)
154 IPC_STRUCT_TRAITS_MEMBER(label) 152 IPC_STRUCT_TRAITS_MEMBER(label)
155 IPC_STRUCT_TRAITS_END() 153 IPC_STRUCT_TRAITS_END()
156 154
157 IPC_STRUCT_TRAITS_BEGIN(content::DidOverscrollParams)
158 IPC_STRUCT_TRAITS_MEMBER(accumulated_overscroll)
159 IPC_STRUCT_TRAITS_MEMBER(latest_overscroll_delta)
160 IPC_STRUCT_TRAITS_MEMBER(current_fling_velocity)
161 IPC_STRUCT_TRAITS_END()
162
163 IPC_STRUCT_TRAITS_BEGIN(content::FaviconURL) 155 IPC_STRUCT_TRAITS_BEGIN(content::FaviconURL)
164 IPC_STRUCT_TRAITS_MEMBER(icon_url) 156 IPC_STRUCT_TRAITS_MEMBER(icon_url)
165 IPC_STRUCT_TRAITS_MEMBER(icon_type) 157 IPC_STRUCT_TRAITS_MEMBER(icon_type)
166 IPC_STRUCT_TRAITS_MEMBER(icon_sizes) 158 IPC_STRUCT_TRAITS_MEMBER(icon_sizes)
167 IPC_STRUCT_TRAITS_END() 159 IPC_STRUCT_TRAITS_END()
168 160
169 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserParams) 161 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserParams)
170 IPC_STRUCT_TRAITS_MEMBER(mode) 162 IPC_STRUCT_TRAITS_MEMBER(mode)
171 IPC_STRUCT_TRAITS_MEMBER(title) 163 IPC_STRUCT_TRAITS_MEMBER(title)
172 IPC_STRUCT_TRAITS_MEMBER(default_file_name) 164 IPC_STRUCT_TRAITS_MEMBER(default_file_name)
(...skipping 1327 matching lines...) Expand 10 before | Expand all | Expand 10 after
1500 // to the RenderWidgetHelper. This allows GetBackingStore to block for either a 1492 // to the RenderWidgetHelper. This allows GetBackingStore to block for either a
1501 // software or GPU frame. 1493 // software or GPU frame.
1502 IPC_MESSAGE_ROUTED1( 1494 IPC_MESSAGE_ROUTED1(
1503 ViewHostMsg_CompositorSurfaceBuffersSwapped, 1495 ViewHostMsg_CompositorSurfaceBuffersSwapped,
1504 ViewHostMsg_CompositorSurfaceBuffersSwapped_Params /* params */) 1496 ViewHostMsg_CompositorSurfaceBuffersSwapped_Params /* params */)
1505 1497
1506 IPC_MESSAGE_ROUTED2(ViewHostMsg_SwapCompositorFrame, 1498 IPC_MESSAGE_ROUTED2(ViewHostMsg_SwapCompositorFrame,
1507 uint32 /* output_surface_id */, 1499 uint32 /* output_surface_id */,
1508 cc::CompositorFrame /* frame */) 1500 cc::CompositorFrame /* frame */)
1509 1501
1510 // Sent by the compositor when input scroll events are dropped due to bounds
1511 // restricions on the root scroll offset.
1512 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidOverscroll,
1513 content::DidOverscrollParams /* params */)
1514
1515 // Sent by the compositor when a flinging animation is stopped. 1502 // Sent by the compositor when a flinging animation is stopped.
1516 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidStopFlinging) 1503 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidStopFlinging)
1517 1504
1518 //--------------------------------------------------------------------------- 1505 //---------------------------------------------------------------------------
1519 // Request for cryptographic operation messages: 1506 // Request for cryptographic operation messages:
1520 // These are messages from the renderer to the browser to perform a 1507 // These are messages from the renderer to the browser to perform a
1521 // cryptographic operation. 1508 // cryptographic operation.
1522 1509
1523 // Asks the browser process to generate a keypair for grabbing a client 1510 // Asks the browser process to generate a keypair for grabbing a client
1524 // certificate from a CA (<keygen> tag), and returns the signed public 1511 // certificate from a CA (<keygen> tag), and returns the signed public
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
1763 // synchronously (see crbug.com/120597). This IPC message sends the character 1750 // synchronously (see crbug.com/120597). This IPC message sends the character
1764 // bounds after every composition change to always have correct bound info. 1751 // bounds after every composition change to always have correct bound info.
1765 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, 1752 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged,
1766 gfx::Range /* composition range */, 1753 gfx::Range /* composition range */,
1767 std::vector<gfx::Rect> /* character bounds */) 1754 std::vector<gfx::Rect> /* character bounds */)
1768 #endif 1755 #endif
1769 1756
1770 // Adding a new message? Stick to the sort order above: first platform 1757 // Adding a new message? Stick to the sort order above: first platform
1771 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 1758 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
1772 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 1759 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698