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

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

Issue 83483007: Expose synthetic delays through the GPU benchmarking extension (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Forward delays in RenderWidgetHostImpl properly. Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « content/common/synthetic_delay_configuration.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/browser_rendering_stats.h" 14 #include "content/common/browser_rendering_stats.h"
15 #include "content/common/content_export.h" 15 #include "content/common/content_export.h"
16 #include "content/common/content_param_traits.h" 16 #include "content/common/content_param_traits.h"
17 #include "content/common/cookie_data.h" 17 #include "content/common/cookie_data.h"
18 #include "content/common/navigation_gesture.h" 18 #include "content/common/navigation_gesture.h"
19 #include "content/common/pepper_renderer_instance_data.h" 19 #include "content/common/pepper_renderer_instance_data.h"
20 #include "content/common/synthetic_delay_configuration.h"
20 #include "content/common/view_message_enums.h" 21 #include "content/common/view_message_enums.h"
21 #include "content/common/webplugin_geometry.h" 22 #include "content/common/webplugin_geometry.h"
22 #include "content/port/common/input_event_ack_state.h" 23 #include "content/port/common/input_event_ack_state.h"
23 #include "content/public/common/color_suggestion.h" 24 #include "content/public/common/color_suggestion.h"
24 #include "content/public/common/common_param_traits.h" 25 #include "content/public/common/common_param_traits.h"
25 #include "content/public/common/context_menu_params.h" 26 #include "content/public/common/context_menu_params.h"
26 #include "content/public/common/favicon_url.h" 27 #include "content/public/common/favicon_url.h"
27 #include "content/public/common/file_chooser_params.h" 28 #include "content/public/common/file_chooser_params.h"
28 #include "content/public/common/frame_navigate_params.h" 29 #include "content/public/common/frame_navigate_params.h"
29 #include "content/public/common/javascript_message_type.h" 30 #include "content/public/common/javascript_message_type.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 IPC_ENUM_TRAITS(blink::WebTextDirection) 81 IPC_ENUM_TRAITS(blink::WebTextDirection)
81 IPC_ENUM_TRAITS(WindowContainerType) 82 IPC_ENUM_TRAITS(WindowContainerType)
82 IPC_ENUM_TRAITS(content::FaviconURL::IconType) 83 IPC_ENUM_TRAITS(content::FaviconURL::IconType)
83 IPC_ENUM_TRAITS(content::FileChooserParams::Mode) 84 IPC_ENUM_TRAITS(content::FileChooserParams::Mode)
84 IPC_ENUM_TRAITS(content::JavaScriptMessageType) 85 IPC_ENUM_TRAITS(content::JavaScriptMessageType)
85 IPC_ENUM_TRAITS(content::MenuItem::Type) 86 IPC_ENUM_TRAITS(content::MenuItem::Type)
86 IPC_ENUM_TRAITS(content::NavigationGesture) 87 IPC_ENUM_TRAITS(content::NavigationGesture)
87 IPC_ENUM_TRAITS(content::PageZoom) 88 IPC_ENUM_TRAITS(content::PageZoom)
88 IPC_ENUM_TRAITS(content::RendererPreferencesHintingEnum) 89 IPC_ENUM_TRAITS(content::RendererPreferencesHintingEnum)
89 IPC_ENUM_TRAITS(content::RendererPreferencesSubpixelRenderingEnum) 90 IPC_ENUM_TRAITS(content::RendererPreferencesSubpixelRenderingEnum)
91 IPC_ENUM_TRAITS(content::SyntheticDelayConfiguration::Mode)
90 IPC_ENUM_TRAITS_MAX_VALUE(content::TapMultipleTargetsStrategy, 92 IPC_ENUM_TRAITS_MAX_VALUE(content::TapMultipleTargetsStrategy,
91 content::TAP_MULTIPLE_TARGETS_STRATEGY_MAX) 93 content::TAP_MULTIPLE_TARGETS_STRATEGY_MAX)
92 IPC_ENUM_TRAITS(content::StopFindAction) 94 IPC_ENUM_TRAITS(content::StopFindAction)
93 IPC_ENUM_TRAITS(content::ThreeDAPIType) 95 IPC_ENUM_TRAITS(content::ThreeDAPIType)
94 IPC_ENUM_TRAITS(media::ChannelLayout) 96 IPC_ENUM_TRAITS(media::ChannelLayout)
95 IPC_ENUM_TRAITS(media::MediaLogEvent::Type) 97 IPC_ENUM_TRAITS(media::MediaLogEvent::Type)
96 IPC_ENUM_TRAITS(ui::MenuSourceType) 98 IPC_ENUM_TRAITS(ui::MenuSourceType)
97 IPC_ENUM_TRAITS_MAX_VALUE(ui::TextInputMode, ui::TEXT_INPUT_MODE_MAX) 99 IPC_ENUM_TRAITS_MAX_VALUE(ui::TextInputMode, ui::TEXT_INPUT_MODE_MAX)
98 IPC_ENUM_TRAITS(ui::TextInputType) 100 IPC_ENUM_TRAITS(ui::TextInputType)
99 101
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 IPC_STRUCT_TRAITS_MEMBER(input_event_count) 318 IPC_STRUCT_TRAITS_MEMBER(input_event_count)
317 IPC_STRUCT_TRAITS_MEMBER(total_input_latency) 319 IPC_STRUCT_TRAITS_MEMBER(total_input_latency)
318 IPC_STRUCT_TRAITS_MEMBER(touch_ui_count) 320 IPC_STRUCT_TRAITS_MEMBER(touch_ui_count)
319 IPC_STRUCT_TRAITS_MEMBER(total_touch_ui_latency) 321 IPC_STRUCT_TRAITS_MEMBER(total_touch_ui_latency)
320 IPC_STRUCT_TRAITS_MEMBER(touch_acked_count) 322 IPC_STRUCT_TRAITS_MEMBER(touch_acked_count)
321 IPC_STRUCT_TRAITS_MEMBER(total_touch_acked_latency) 323 IPC_STRUCT_TRAITS_MEMBER(total_touch_acked_latency)
322 IPC_STRUCT_TRAITS_MEMBER(scroll_update_count) 324 IPC_STRUCT_TRAITS_MEMBER(scroll_update_count)
323 IPC_STRUCT_TRAITS_MEMBER(total_scroll_update_latency) 325 IPC_STRUCT_TRAITS_MEMBER(total_scroll_update_latency)
324 IPC_STRUCT_TRAITS_END() 326 IPC_STRUCT_TRAITS_END()
325 327
328 IPC_STRUCT_TRAITS_BEGIN(content::SyntheticDelayConfiguration)
329 IPC_STRUCT_TRAITS_MEMBER(name)
330 IPC_STRUCT_TRAITS_MEMBER(target_duration)
331 IPC_STRUCT_TRAITS_MEMBER(mode)
332 IPC_STRUCT_TRAITS_END()
333
326 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWindow_Params) 334 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWindow_Params)
327 // Routing ID of the view initiating the open. 335 // Routing ID of the view initiating the open.
328 IPC_STRUCT_MEMBER(int, opener_id) 336 IPC_STRUCT_MEMBER(int, opener_id)
329 337
330 // True if this open request came in the context of a user gesture. 338 // True if this open request came in the context of a user gesture.
331 IPC_STRUCT_MEMBER(bool, user_gesture) 339 IPC_STRUCT_MEMBER(bool, user_gesture)
332 340
333 // Type of window requested. 341 // Type of window requested.
334 IPC_STRUCT_MEMBER(WindowContainerType, window_container_type) 342 IPC_STRUCT_MEMBER(WindowContainerType, window_container_type)
335 343
(...skipping 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after
1387 // Sent by browser to tell renderer compositor that some resources that were 1395 // Sent by browser to tell renderer compositor that some resources that were
1388 // given to the browser in a swap are not being used anymore. 1396 // given to the browser in a swap are not being used anymore.
1389 IPC_MESSAGE_ROUTED2(ViewMsg_ReclaimCompositorResources, 1397 IPC_MESSAGE_ROUTED2(ViewMsg_ReclaimCompositorResources,
1390 uint32 /* output_surface_id */, 1398 uint32 /* output_surface_id */,
1391 cc::CompositorFrameAck /* ack */) 1399 cc::CompositorFrameAck /* ack */)
1392 1400
1393 // Sent by the browser to ask the renderer for a snapshot of the current view. 1401 // Sent by the browser to ask the renderer for a snapshot of the current view.
1394 IPC_MESSAGE_ROUTED1(ViewMsg_Snapshot, 1402 IPC_MESSAGE_ROUTED1(ViewMsg_Snapshot,
1395 gfx::Rect /* src_subrect */) 1403 gfx::Rect /* src_subrect */)
1396 1404
1405 IPC_MESSAGE_ROUTED0(ViewMsg_ConfigureSyntheticDelaysAck)
1406
1397 // ----------------------------------------------------------------------------- 1407 // -----------------------------------------------------------------------------
1398 // Messages sent from the renderer to the browser. 1408 // Messages sent from the renderer to the browser.
1399 1409
1400 // Sent by the renderer when it is creating a new window. The browser creates 1410 // Sent by the renderer when it is creating a new window. The browser creates
1401 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is 1411 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is
1402 // MSG_ROUTING_NONE, the view couldn't be created. 1412 // MSG_ROUTING_NONE, the view couldn't be created.
1403 IPC_SYNC_MESSAGE_CONTROL1_4(ViewHostMsg_CreateWindow, 1413 IPC_SYNC_MESSAGE_CONTROL1_4(ViewHostMsg_CreateWindow,
1404 ViewHostMsg_CreateWindow_Params, 1414 ViewHostMsg_CreateWindow_Params,
1405 int /* route_id */, 1415 int /* route_id */,
1406 int /* main_frame_route_id */, 1416 int /* main_frame_route_id */,
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
1664 1674
1665 // Sent to unblock the browser's UI thread if it is waiting on an UpdateRect, 1675 // Sent to unblock the browser's UI thread if it is waiting on an UpdateRect,
1666 // which may get delayed until the browser's UI unblocks. 1676 // which may get delayed until the browser's UI unblocks.
1667 IPC_MESSAGE_ROUTED0(ViewHostMsg_UpdateIsDelayed) 1677 IPC_MESSAGE_ROUTED0(ViewHostMsg_UpdateIsDelayed)
1668 1678
1669 // Sent by the renderer when accelerated compositing is enabled or disabled to 1679 // Sent by the renderer when accelerated compositing is enabled or disabled to
1670 // notify the browser whether or not is should do painting. 1680 // notify the browser whether or not is should do painting.
1671 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidActivateAcceleratedCompositing, 1681 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidActivateAcceleratedCompositing,
1672 bool /* true if the accelerated compositor is actve */) 1682 bool /* true if the accelerated compositor is actve */)
1673 1683
1684 IPC_MESSAGE_ROUTED1(ViewHostMsg_ConfigureSyntheticDelays,
1685 std::vector<content::SyntheticDelayConfiguration> /* delays */)
1686
1674 IPC_MESSAGE_ROUTED0(ViewHostMsg_Focus) 1687 IPC_MESSAGE_ROUTED0(ViewHostMsg_Focus)
1675 IPC_MESSAGE_ROUTED0(ViewHostMsg_Blur) 1688 IPC_MESSAGE_ROUTED0(ViewHostMsg_Blur)
1676 1689
1677 // Message sent from renderer to the browser when focus changes inside the 1690 // Message sent from renderer to the browser when focus changes inside the
1678 // webpage. The parameter says whether the newly focused element needs 1691 // webpage. The parameter says whether the newly focused element needs
1679 // keyboard input (true for textfields, text areas and content editable divs). 1692 // keyboard input (true for textfields, text areas and content editable divs).
1680 IPC_MESSAGE_ROUTED1(ViewHostMsg_FocusedNodeChanged, 1693 IPC_MESSAGE_ROUTED1(ViewHostMsg_FocusedNodeChanged,
1681 bool /* is_editable_node */) 1694 bool /* is_editable_node */)
1682 1695
1683 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetCursor, 1696 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetCursor,
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
2367 // synchronously (see crbug.com/120597). This IPC message sends the character 2380 // synchronously (see crbug.com/120597). This IPC message sends the character
2368 // bounds after every composition change to always have correct bound info. 2381 // bounds after every composition change to always have correct bound info.
2369 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, 2382 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged,
2370 gfx::Range /* composition range */, 2383 gfx::Range /* composition range */,
2371 std::vector<gfx::Rect> /* character bounds */) 2384 std::vector<gfx::Rect> /* character bounds */)
2372 #endif 2385 #endif
2373 2386
2374 // Adding a new message? Stick to the sort order above: first platform 2387 // Adding a new message? Stick to the sort order above: first platform
2375 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 2388 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
2376 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 2389 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW
« no previous file with comments | « content/common/synthetic_delay_configuration.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698