| OLD | NEW |
| 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 957 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 968 // Sent by the browser to ask the renderer to redraw. | 968 // Sent by the browser to ask the renderer to redraw. |
| 969 // If |request_id| is not zero, it is added to the forced frame's latency info | 969 // If |request_id| is not zero, it is added to the forced frame's latency info |
| 970 // as ui::WINDOW_SNAPSHOT_FRAME_NUMBER_COMPONENT. | 970 // as ui::WINDOW_SNAPSHOT_FRAME_NUMBER_COMPONENT. |
| 971 IPC_MESSAGE_ROUTED1(ViewMsg_ForceRedraw, | 971 IPC_MESSAGE_ROUTED1(ViewMsg_ForceRedraw, |
| 972 int /* request_id */) | 972 int /* request_id */) |
| 973 | 973 |
| 974 // Sent by the browser when the renderer should generate a new frame. | 974 // Sent by the browser when the renderer should generate a new frame. |
| 975 IPC_MESSAGE_ROUTED1(ViewMsg_BeginFrame, | 975 IPC_MESSAGE_ROUTED1(ViewMsg_BeginFrame, |
| 976 cc::BeginFrameArgs /* args */) | 976 cc::BeginFrameArgs /* args */) |
| 977 | 977 |
| 978 // Sent by the browser to deliver a compositor proto to the renderer. |
| 979 IPC_MESSAGE_ROUTED1(ViewMsg_HandleCompositorProto, |
| 980 std::vector<char> /* proto */) |
| 981 |
| 978 // ----------------------------------------------------------------------------- | 982 // ----------------------------------------------------------------------------- |
| 979 // Messages sent from the renderer to the browser. | 983 // Messages sent from the renderer to the browser. |
| 980 | 984 |
| 981 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming | 985 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming |
| 982 // display events. If |enabled| is true, the BeginFrame message will continue | 986 // display events. If |enabled| is true, the BeginFrame message will continue |
| 983 // to be be delivered until the notification is disabled. | 987 // to be be delivered until the notification is disabled. |
| 984 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrames, | 988 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrames, |
| 985 bool /* enabled */) | 989 bool /* enabled */) |
| 986 | 990 |
| 987 // Sent by the renderer when it is creating a new window. The browser creates a | 991 // Sent by the renderer when it is creating a new window. The browser creates a |
| (...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1338 // Sent once a paint happens after the first non empty layout. In other words, | 1342 // Sent once a paint happens after the first non empty layout. In other words, |
| 1339 // after the frame widget has painted something. | 1343 // after the frame widget has painted something. |
| 1340 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidFirstVisuallyNonEmptyPaint) | 1344 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidFirstVisuallyNonEmptyPaint) |
| 1341 | 1345 |
| 1342 // Send after a paint happens after any page commit, including a blank one. | 1346 // Send after a paint happens after any page commit, including a blank one. |
| 1343 // TODO(kenrb): This, and all ViewHostMsg_* messages that actually pertain to | 1347 // TODO(kenrb): This, and all ViewHostMsg_* messages that actually pertain to |
| 1344 // RenderWidget(Host), should be renamed to WidgetHostMsg_*. | 1348 // RenderWidget(Host), should be renamed to WidgetHostMsg_*. |
| 1345 // See https://crbug.com/537793. | 1349 // See https://crbug.com/537793. |
| 1346 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidFirstPaintAfterLoad) | 1350 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidFirstPaintAfterLoad) |
| 1347 | 1351 |
| 1352 // Sent by the renderer to deliver a compositor proto to the browser. |
| 1353 IPC_MESSAGE_ROUTED1(ViewHostMsg_ForwardCompositorProto, |
| 1354 std::vector<char> /* proto */) |
| 1355 |
| 1348 #if defined(OS_ANDROID) | 1356 #if defined(OS_ANDROID) |
| 1349 // Response to ViewMsg_FindMatchRects. | 1357 // Response to ViewMsg_FindMatchRects. |
| 1350 // | 1358 // |
| 1351 // |version| will contain the current version number of the renderer's find | 1359 // |version| will contain the current version number of the renderer's find |
| 1352 // match list (incremented whenever they change), which should be passed in the | 1360 // match list (incremented whenever they change), which should be passed in the |
| 1353 // next call to ViewMsg_FindMatchRects. | 1361 // next call to ViewMsg_FindMatchRects. |
| 1354 // | 1362 // |
| 1355 // |rects| will either contain a list of the enclosing rects of all matches | 1363 // |rects| will either contain a list of the enclosing rects of all matches |
| 1356 // found by the most recent Find operation, or will be empty if |version| is not | 1364 // found by the most recent Find operation, or will be empty if |version| is not |
| 1357 // greater than the |current_version| passed to ViewMsg_FindMatchRects (hence | 1365 // greater than the |current_version| passed to ViewMsg_FindMatchRects (hence |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1398 // Instructs the browser to start plugin IME. | 1406 // Instructs the browser to start plugin IME. |
| 1399 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme) | 1407 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme) |
| 1400 | 1408 |
| 1401 // Receives content of a web page as plain text. | 1409 // Receives content of a web page as plain text. |
| 1402 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) | 1410 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) |
| 1403 #endif | 1411 #endif |
| 1404 | 1412 |
| 1405 // Adding a new message? Stick to the sort order above: first platform | 1413 // Adding a new message? Stick to the sort order above: first platform |
| 1406 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1414 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 1407 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1415 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |