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

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

Issue 240163005: Deliver IPC messages together with SwapCompositorFrame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add missing doc 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 | 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/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"
(...skipping 1474 matching lines...) Expand 10 before | Expand all | Expand 10 after
1485 IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info) 1485 IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info)
1486 IPC_STRUCT_END() 1486 IPC_STRUCT_END()
1487 1487
1488 // This message is synthesized by GpuProcessHost to pass through a swap message 1488 // This message is synthesized by GpuProcessHost to pass through a swap message
1489 // to the RenderWidgetHelper. This allows GetBackingStore to block for either a 1489 // to the RenderWidgetHelper. This allows GetBackingStore to block for either a
1490 // software or GPU frame. 1490 // software or GPU frame.
1491 IPC_MESSAGE_ROUTED1( 1491 IPC_MESSAGE_ROUTED1(
1492 ViewHostMsg_CompositorSurfaceBuffersSwapped, 1492 ViewHostMsg_CompositorSurfaceBuffersSwapped,
1493 ViewHostMsg_CompositorSurfaceBuffersSwapped_Params /* params */) 1493 ViewHostMsg_CompositorSurfaceBuffersSwapped_Params /* params */)
1494 1494
1495 IPC_MESSAGE_ROUTED2(ViewHostMsg_SwapCompositorFrame, 1495 IPC_MESSAGE_ROUTED3(
1496 uint32 /* output_surface_id */, 1496 ViewHostMsg_SwapCompositorFrame,
1497 cc::CompositorFrame /* frame */) 1497 uint32 /* output_surface_id */,
1498 cc::CompositorFrame /* frame */,
1499 std::vector<IPC::Message> /* messages_to_deliver_with_frame */)
1498 1500
1499 // Sent by the compositor when a flinging animation is stopped. 1501 // Sent by the compositor when a flinging animation is stopped.
1500 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidStopFlinging) 1502 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidStopFlinging)
1501 1503
1502 //--------------------------------------------------------------------------- 1504 //---------------------------------------------------------------------------
1503 // Request for cryptographic operation messages: 1505 // Request for cryptographic operation messages:
1504 // These are messages from the renderer to the browser to perform a 1506 // These are messages from the renderer to the browser to perform a
1505 // cryptographic operation. 1507 // cryptographic operation.
1506 1508
1507 // Asks the browser process to generate a keypair for grabbing a client 1509 // Asks the browser process to generate a keypair for grabbing a client
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
1601 1603
1602 // Notifies the browser that document has parsed the body. This is used by the 1604 // Notifies the browser that document has parsed the body. This is used by the
1603 // ResourceScheduler as an indication that bandwidth contention won't block 1605 // ResourceScheduler as an indication that bandwidth contention won't block
1604 // first paint. 1606 // first paint.
1605 IPC_MESSAGE_ROUTED0(ViewHostMsg_WillInsertBody) 1607 IPC_MESSAGE_ROUTED0(ViewHostMsg_WillInsertBody)
1606 1608
1607 // Notification that the urls for the favicon of a site has been determined. 1609 // Notification that the urls for the favicon of a site has been determined.
1608 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateFaviconURL, 1610 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateFaviconURL,
1609 std::vector<content::FaviconURL> /* candidates */) 1611 std::vector<content::FaviconURL> /* candidates */)
1610 1612
1611 // Sent once a paint happens after the first non empty layout. In other words
1612 // after the page has painted something.
1613 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidFirstVisuallyNonEmptyPaint)
1614
1615 // Sent by the renderer to the browser to start a vibration with the given 1613 // Sent by the renderer to the browser to start a vibration with the given
1616 // duration. 1614 // duration.
1617 IPC_MESSAGE_CONTROL1(ViewHostMsg_Vibrate, 1615 IPC_MESSAGE_CONTROL1(ViewHostMsg_Vibrate,
1618 int64 /* milliseconds */) 1616 int64 /* milliseconds */)
1619 1617
1620 // Sent by the renderer to the browser to cancel the currently running 1618 // Sent by the renderer to the browser to cancel the currently running
1621 // vibration, if there is one. 1619 // vibration, if there is one.
1622 IPC_MESSAGE_CONTROL0(ViewHostMsg_CancelVibration) 1620 IPC_MESSAGE_CONTROL0(ViewHostMsg_CancelVibration)
1623 1621
1624 // Message sent from renderer to the browser when the element that is focused 1622 // Message sent from renderer to the browser when the element that is focused
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
1747 // synchronously (see crbug.com/120597). This IPC message sends the character 1745 // synchronously (see crbug.com/120597). This IPC message sends the character
1748 // bounds after every composition change to always have correct bound info. 1746 // bounds after every composition change to always have correct bound info.
1749 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, 1747 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged,
1750 gfx::Range /* composition range */, 1748 gfx::Range /* composition range */,
1751 std::vector<gfx::Rect> /* character bounds */) 1749 std::vector<gfx::Rect> /* character bounds */)
1752 #endif 1750 #endif
1753 1751
1754 // Adding a new message? Stick to the sort order above: first platform 1752 // Adding a new message? Stick to the sort order above: first platform
1755 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 1753 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
1756 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 1754 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698