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

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: Created 7 years, 1 month 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
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/debug/trace_event_synthetic_delay.h"
8 #include "base/memory/shared_memory.h" 9 #include "base/memory/shared_memory.h"
9 #include "base/process/process.h" 10 #include "base/process/process.h"
10 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
11 #include "cc/output/begin_frame_args.h" 12 #include "cc/output/begin_frame_args.h"
12 #include "cc/output/compositor_frame.h" 13 #include "cc/output/compositor_frame.h"
13 #include "cc/output/compositor_frame_ack.h" 14 #include "cc/output/compositor_frame_ack.h"
14 #include "content/common/browser_rendering_stats.h" 15 #include "content/common/browser_rendering_stats.h"
15 #include "content/common/content_export.h" 16 #include "content/common/content_export.h"
16 #include "content/common/content_param_traits.h" 17 #include "content/common/content_param_traits.h"
17 #include "content/common/cookie_data.h" 18 #include "content/common/cookie_data.h"
(...skipping 1366 matching lines...) Expand 10 before | Expand all | Expand 10 after
1384 // Sent by browser to tell renderer compositor that some resources that were 1385 // Sent by browser to tell renderer compositor that some resources that were
1385 // given to the browser in a swap are not being used anymore. 1386 // given to the browser in a swap are not being used anymore.
1386 IPC_MESSAGE_ROUTED2(ViewMsg_ReclaimCompositorResources, 1387 IPC_MESSAGE_ROUTED2(ViewMsg_ReclaimCompositorResources,
1387 uint32 /* output_surface_id */, 1388 uint32 /* output_surface_id */,
1388 cc::CompositorFrameAck /* ack */) 1389 cc::CompositorFrameAck /* ack */)
1389 1390
1390 // Sent by the browser to ask the renderer for a snapshot of the current view. 1391 // Sent by the browser to ask the renderer for a snapshot of the current view.
1391 IPC_MESSAGE_ROUTED1(ViewMsg_Snapshot, 1392 IPC_MESSAGE_ROUTED1(ViewMsg_Snapshot,
1392 gfx::Rect /* src_subrect */) 1393 gfx::Rect /* src_subrect */)
1393 1394
1395 IPC_MESSAGE_ROUTED0(ViewMsg_ConfigureSyntheticDelayAck)
1396
1394 // ----------------------------------------------------------------------------- 1397 // -----------------------------------------------------------------------------
1395 // Messages sent from the renderer to the browser. 1398 // Messages sent from the renderer to the browser.
1396 1399
1397 // Sent by the renderer when it is creating a new window. The browser creates 1400 // Sent by the renderer when it is creating a new window. The browser creates
1398 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is 1401 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is
1399 // MSG_ROUTING_NONE, the view couldn't be created. 1402 // MSG_ROUTING_NONE, the view couldn't be created.
1400 IPC_SYNC_MESSAGE_CONTROL1_4(ViewHostMsg_CreateWindow, 1403 IPC_SYNC_MESSAGE_CONTROL1_4(ViewHostMsg_CreateWindow,
1401 ViewHostMsg_CreateWindow_Params, 1404 ViewHostMsg_CreateWindow_Params,
1402 int /* route_id */, 1405 int /* route_id */,
1403 int /* main_frame_route_id */, 1406 int /* main_frame_route_id */,
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
1681 IPC_STRUCT_BEGIN(ViewHostMsg_BeginPinch_Params) 1684 IPC_STRUCT_BEGIN(ViewHostMsg_BeginPinch_Params)
1682 IPC_STRUCT_MEMBER(bool, zoom_in) 1685 IPC_STRUCT_MEMBER(bool, zoom_in)
1683 IPC_STRUCT_MEMBER(int32, pixels_to_move) 1686 IPC_STRUCT_MEMBER(int32, pixels_to_move)
1684 IPC_STRUCT_MEMBER(int32, anchor_x) 1687 IPC_STRUCT_MEMBER(int32, anchor_x)
1685 IPC_STRUCT_MEMBER(int32, anchor_y) 1688 IPC_STRUCT_MEMBER(int32, anchor_y)
1686 IPC_STRUCT_END() 1689 IPC_STRUCT_END()
1687 1690
1688 IPC_MESSAGE_ROUTED1(ViewHostMsg_BeginPinch, 1691 IPC_MESSAGE_ROUTED1(ViewHostMsg_BeginPinch,
1689 ViewHostMsg_BeginPinch_Params /* params */) 1692 ViewHostMsg_BeginPinch_Params /* params */)
1690 1693
1694 IPC_STRUCT_BEGIN(ViewHostMsg_ConfigureSyntheticDelay_Params)
1695 IPC_STRUCT_MEMBER(std::string, name)
1696 IPC_STRUCT_MEMBER(base::TimeDelta, target_duration)
1697 IPC_STRUCT_MEMBER(int32, mode)
1698 IPC_STRUCT_END()
1699
1700 IPC_MESSAGE_ROUTED1(ViewHostMsg_ConfigureSyntheticDelay,
1701 ViewHostMsg_ConfigureSyntheticDelay_Params /* params */)
1702
1691 IPC_MESSAGE_ROUTED0(ViewHostMsg_Focus) 1703 IPC_MESSAGE_ROUTED0(ViewHostMsg_Focus)
1692 IPC_MESSAGE_ROUTED0(ViewHostMsg_Blur) 1704 IPC_MESSAGE_ROUTED0(ViewHostMsg_Blur)
1693 1705
1694 // Message sent from renderer to the browser when focus changes inside the 1706 // Message sent from renderer to the browser when focus changes inside the
1695 // webpage. The parameter says whether the newly focused element needs 1707 // webpage. The parameter says whether the newly focused element needs
1696 // keyboard input (true for textfields, text areas and content editable divs). 1708 // keyboard input (true for textfields, text areas and content editable divs).
1697 IPC_MESSAGE_ROUTED1(ViewHostMsg_FocusedNodeChanged, 1709 IPC_MESSAGE_ROUTED1(ViewHostMsg_FocusedNodeChanged,
1698 bool /* is_editable_node */) 1710 bool /* is_editable_node */)
1699 1711
1700 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetCursor, 1712 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetCursor,
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after
2377 // synchronously (see crbug.com/120597). This IPC message sends the character 2389 // synchronously (see crbug.com/120597). This IPC message sends the character
2378 // bounds after every composition change to always have correct bound info. 2390 // bounds after every composition change to always have correct bound info.
2379 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, 2391 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged,
2380 gfx::Range /* composition range */, 2392 gfx::Range /* composition range */,
2381 std::vector<gfx::Rect> /* character bounds */) 2393 std::vector<gfx::Rect> /* character bounds */)
2382 #endif 2394 #endif
2383 2395
2384 // Adding a new message? Stick to the sort order above: first platform 2396 // Adding a new message? Stick to the sort order above: first platform
2385 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 2397 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
2386 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 2398 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698