| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/process.h" | 8 #include "base/process.h" |
| 9 #include "base/shared_memory.h" | 9 #include "base/shared_memory.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 // Indicates that this is a response to a ViewMsg_WasRestored message. | 503 // Indicates that this is a response to a ViewMsg_WasRestored message. |
| 504 // | 504 // |
| 505 // ViewHostMsg_UpdateRect_Flags::IS_REPAINT_ACK | 505 // ViewHostMsg_UpdateRect_Flags::IS_REPAINT_ACK |
| 506 // Indicates that this is a response to a ViewMsg_Repaint message. | 506 // Indicates that this is a response to a ViewMsg_Repaint message. |
| 507 // | 507 // |
| 508 // If flags is zero, then this message corresponds to an unsolicited paint | 508 // If flags is zero, then this message corresponds to an unsolicited paint |
| 509 // request by the render view. Any of the above bits may be set in flags, | 509 // request by the render view. Any of the above bits may be set in flags, |
| 510 // which would indicate that this paint message is an ACK for multiple | 510 // which would indicate that this paint message is an ACK for multiple |
| 511 // request messages. | 511 // request messages. |
| 512 IPC_STRUCT_MEMBER(int, flags) | 512 IPC_STRUCT_MEMBER(int, flags) |
| 513 |
| 514 // Whether or not the renderer expects a ViewMsg_UpdateRect_ACK for this |
| 515 // update. True for 2D painting, but false for accelerated compositing. |
| 516 IPC_STRUCT_MEMBER(bool, needs_ack) |
| 513 IPC_STRUCT_END() | 517 IPC_STRUCT_END() |
| 514 | 518 |
| 515 IPC_STRUCT_BEGIN(ViewHostMsg_DidFailProvisionalLoadWithError_Params) | 519 IPC_STRUCT_BEGIN(ViewHostMsg_DidFailProvisionalLoadWithError_Params) |
| 516 // The frame ID for the failure report. | 520 // The frame ID for the failure report. |
| 517 IPC_STRUCT_MEMBER(int64, frame_id) | 521 IPC_STRUCT_MEMBER(int64, frame_id) |
| 518 // True if this is the top-most frame. | 522 // True if this is the top-most frame. |
| 519 IPC_STRUCT_MEMBER(bool, is_main_frame) | 523 IPC_STRUCT_MEMBER(bool, is_main_frame) |
| 520 // Error code as reported in the DidFailProvisionalLoad callback. | 524 // Error code as reported in the DidFailProvisionalLoad callback. |
| 521 IPC_STRUCT_MEMBER(int, error_code) | 525 IPC_STRUCT_MEMBER(int, error_code) |
| 522 // An error message generated from the error_code. This can be an empty | 526 // An error message generated from the error_code. This can be an empty |
| (...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1386 // the tag sent along with ViewMsg_PaintAtSize. | 1390 // the tag sent along with ViewMsg_PaintAtSize. |
| 1387 IPC_MESSAGE_ROUTED2(ViewHostMsg_PaintAtSize_ACK, | 1391 IPC_MESSAGE_ROUTED2(ViewHostMsg_PaintAtSize_ACK, |
| 1388 int /* tag */, | 1392 int /* tag */, |
| 1389 gfx::Size /* size */) | 1393 gfx::Size /* size */) |
| 1390 | 1394 |
| 1391 // Sent to update part of the view. In response to this message, the host | 1395 // Sent to update part of the view. In response to this message, the host |
| 1392 // generates a ViewMsg_UpdateRect_ACK message. | 1396 // generates a ViewMsg_UpdateRect_ACK message. |
| 1393 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateRect, | 1397 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateRect, |
| 1394 ViewHostMsg_UpdateRect_Params) | 1398 ViewHostMsg_UpdateRect_Params) |
| 1395 | 1399 |
| 1400 // Sent to unblock the browser's UI thread if it is waiting on an UpdateRect, |
| 1401 // which may get delayed until the browser's UI unblocks. |
| 1402 IPC_MESSAGE_ROUTED0(ViewHostMsg_UpdateIsDelayed) |
| 1403 |
| 1396 // Sent by the renderer when accelerated compositing is enabled or disabled to | 1404 // Sent by the renderer when accelerated compositing is enabled or disabled to |
| 1397 // notify the browser whether or not is should do painting. | 1405 // notify the browser whether or not is should do painting. |
| 1398 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidActivateAcceleratedCompositing, | 1406 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidActivateAcceleratedCompositing, |
| 1399 bool /* true if the accelerated compositor is actve */) | 1407 bool /* true if the accelerated compositor is actve */) |
| 1400 | 1408 |
| 1401 // Acknowledges receipt of a ViewMsg_HandleInputEvent message. | 1409 // Acknowledges receipt of a ViewMsg_HandleInputEvent message. |
| 1402 IPC_MESSAGE_ROUTED2(ViewHostMsg_HandleInputEvent_ACK, | 1410 IPC_MESSAGE_ROUTED2(ViewHostMsg_HandleInputEvent_ACK, |
| 1403 WebKit::WebInputEvent::Type, | 1411 WebKit::WebInputEvent::Type, |
| 1404 bool /* processed */) | 1412 bool /* processed */) |
| 1405 | 1413 |
| (...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1916 media::MediaLogEvent /* event */) | 1924 media::MediaLogEvent /* event */) |
| 1917 | 1925 |
| 1918 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message | 1926 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message |
| 1919 // being sent back. | 1927 // being sent back. |
| 1920 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) | 1928 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) |
| 1921 | 1929 |
| 1922 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent | 1930 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent |
| 1923 // whenever the mouse is unlocked (which may or may not be caused by | 1931 // whenever the mouse is unlocked (which may or may not be caused by |
| 1924 // ViewHostMsg_UnlockMouse). | 1932 // ViewHostMsg_UnlockMouse). |
| 1925 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) | 1933 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) |
| OLD | NEW |