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

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

Issue 20045007: Use DidOverscrollParams in the browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 2 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"
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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 IPC_STRUCT_TRAITS_MEMBER(checked) 147 IPC_STRUCT_TRAITS_MEMBER(checked)
147 IPC_STRUCT_TRAITS_MEMBER(submenu) 148 IPC_STRUCT_TRAITS_MEMBER(submenu)
148 IPC_STRUCT_TRAITS_END() 149 IPC_STRUCT_TRAITS_END()
149 150
150 IPC_STRUCT_TRAITS_BEGIN(content::DateTimeSuggestion) 151 IPC_STRUCT_TRAITS_BEGIN(content::DateTimeSuggestion)
151 IPC_STRUCT_TRAITS_MEMBER(value) 152 IPC_STRUCT_TRAITS_MEMBER(value)
152 IPC_STRUCT_TRAITS_MEMBER(localized_value) 153 IPC_STRUCT_TRAITS_MEMBER(localized_value)
153 IPC_STRUCT_TRAITS_MEMBER(label) 154 IPC_STRUCT_TRAITS_MEMBER(label)
154 IPC_STRUCT_TRAITS_END() 155 IPC_STRUCT_TRAITS_END()
155 156
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
156 IPC_STRUCT_TRAITS_BEGIN(content::FaviconURL) 163 IPC_STRUCT_TRAITS_BEGIN(content::FaviconURL)
157 IPC_STRUCT_TRAITS_MEMBER(icon_url) 164 IPC_STRUCT_TRAITS_MEMBER(icon_url)
158 IPC_STRUCT_TRAITS_MEMBER(icon_type) 165 IPC_STRUCT_TRAITS_MEMBER(icon_type)
159 IPC_STRUCT_TRAITS_MEMBER(icon_sizes) 166 IPC_STRUCT_TRAITS_MEMBER(icon_sizes)
160 IPC_STRUCT_TRAITS_END() 167 IPC_STRUCT_TRAITS_END()
161 168
162 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserParams) 169 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserParams)
163 IPC_STRUCT_TRAITS_MEMBER(mode) 170 IPC_STRUCT_TRAITS_MEMBER(mode)
164 IPC_STRUCT_TRAITS_MEMBER(title) 171 IPC_STRUCT_TRAITS_MEMBER(title)
165 IPC_STRUCT_TRAITS_MEMBER(default_file_name) 172 IPC_STRUCT_TRAITS_MEMBER(default_file_name)
(...skipping 1391 matching lines...) Expand 10 before | Expand all | Expand 10 after
1557 IPC_MESSAGE_ROUTED1( 1564 IPC_MESSAGE_ROUTED1(
1558 ViewHostMsg_CompositorSurfaceBuffersSwapped, 1565 ViewHostMsg_CompositorSurfaceBuffersSwapped,
1559 ViewHostMsg_CompositorSurfaceBuffersSwapped_Params /* params */) 1566 ViewHostMsg_CompositorSurfaceBuffersSwapped_Params /* params */)
1560 1567
1561 IPC_MESSAGE_ROUTED2(ViewHostMsg_SwapCompositorFrame, 1568 IPC_MESSAGE_ROUTED2(ViewHostMsg_SwapCompositorFrame,
1562 uint32 /* output_surface_id */, 1569 uint32 /* output_surface_id */,
1563 cc::CompositorFrame /* frame */) 1570 cc::CompositorFrame /* frame */)
1564 1571
1565 // Sent by the compositor when input scroll events are dropped due to bounds 1572 // Sent by the compositor when input scroll events are dropped due to bounds
1566 // restricions on the root scroll offset. 1573 // restricions on the root scroll offset.
1567 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidOverscroll, 1574 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidOverscroll,
1568 gfx::Vector2dF /* accumulated_overscroll */, 1575 content::DidOverscrollParams /* params */)
1569 gfx::Vector2dF /* current_fling_velocity */)
1570 1576
1571 // Sent by the compositor when a flinging animation is stopped. 1577 // Sent by the compositor when a flinging animation is stopped.
1572 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidStopFlinging) 1578 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidStopFlinging)
1573 1579
1574 //--------------------------------------------------------------------------- 1580 //---------------------------------------------------------------------------
1575 // Request for cryptographic operation messages: 1581 // Request for cryptographic operation messages:
1576 // These are messages from the renderer to the browser to perform a 1582 // These are messages from the renderer to the browser to perform a
1577 // cryptographic operation. 1583 // cryptographic operation.
1578 1584
1579 // Asks the browser process to generate a keypair for grabbing a client 1585 // Asks the browser process to generate a keypair for grabbing a client
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
1821 // synchronously (see crbug.com/120597). This IPC message sends the character 1827 // synchronously (see crbug.com/120597). This IPC message sends the character
1822 // bounds after every composition change to always have correct bound info. 1828 // bounds after every composition change to always have correct bound info.
1823 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, 1829 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged,
1824 gfx::Range /* composition range */, 1830 gfx::Range /* composition range */,
1825 std::vector<gfx::Rect> /* character bounds */) 1831 std::vector<gfx::Rect> /* character bounds */)
1826 #endif 1832 #endif
1827 1833
1828 // Adding a new message? Stick to the sort order above: first platform 1834 // Adding a new message? Stick to the sort order above: first platform
1829 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 1835 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
1830 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 1836 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_base.cc ('k') | content/port/browser/render_widget_host_view_port.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698