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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
488 gfx::Size /* The view size to be repainted */) | 488 gfx::Size /* The view size to be repainted */) |
489 | 489 |
490 // Notification that a move or resize renderer's containing window has | 490 // Notification that a move or resize renderer's containing window has |
491 // started. | 491 // started. |
492 IPC_MESSAGE_ROUTED0(ViewMsg_MoveOrResizeStarted) | 492 IPC_MESSAGE_ROUTED0(ViewMsg_MoveOrResizeStarted) |
493 | 493 |
494 IPC_MESSAGE_ROUTED2(ViewMsg_UpdateScreenRects, | 494 IPC_MESSAGE_ROUTED2(ViewMsg_UpdateScreenRects, |
495 gfx::Rect /* view_screen_rect */, | 495 gfx::Rect /* view_screen_rect */, |
496 gfx::Rect /* window_screen_rect */) | 496 gfx::Rect /* window_screen_rect */) |
497 | 497 |
498 // Reply to ViewHostMsg_RequestMove, ViewHostMsg_ShowView, and | 498 // Reply to ViewHostMsg_RequestMove, and ViewHostMsg_ShowWidget to inform the |
alexmos
2016/12/13 18:41:41
Should we add FrameHostMsg_ShowCreatedWindow to th
ncarter (slow)
2016/12/15 00:33:17
Done.
| |
499 // ViewHostMsg_ShowWidget to inform the renderer that the browser has | 499 // renderer that the browser has processed the move. The browser may have |
500 // processed the move. The browser may have ignored the move, but it finished | 500 // ignored the move, but it finished processing. This is used because the |
501 // processing. This is used because the renderer keeps a temporary cache of | 501 // renderer keeps a temporary cache of the widget position while these |
502 // the widget position while these asynchronous operations are in progress. | 502 // asynchronous operations are in progress. |
503 IPC_MESSAGE_ROUTED0(ViewMsg_Move_ACK) | 503 IPC_MESSAGE_ROUTED0(ViewMsg_Move_ACK) |
504 | 504 |
505 // Used to instruct the RenderView to send back updates to the preferred size. | 505 // Used to instruct the RenderView to send back updates to the preferred size. |
506 IPC_MESSAGE_ROUTED0(ViewMsg_EnablePreferredSizeChangedMode) | 506 IPC_MESSAGE_ROUTED0(ViewMsg_EnablePreferredSizeChangedMode) |
507 | 507 |
508 // Used to instruct the RenderView to automatically resize and send back | 508 // Used to instruct the RenderView to automatically resize and send back |
509 // updates for the new size. | 509 // updates for the new size. |
510 IPC_MESSAGE_ROUTED2(ViewMsg_EnableAutoResize, | 510 IPC_MESSAGE_ROUTED2(ViewMsg_EnableAutoResize, |
511 gfx::Size /* min_size */, | 511 gfx::Size /* min_size */, |
512 gfx::Size /* max_size */) | 512 gfx::Size /* max_size */) |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
619 | 619 |
620 // ----------------------------------------------------------------------------- | 620 // ----------------------------------------------------------------------------- |
621 // Messages sent from the renderer to the browser. | 621 // Messages sent from the renderer to the browser. |
622 | 622 |
623 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming | 623 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming |
624 // display events. If |enabled| is true, the BeginFrame message will continue | 624 // display events. If |enabled| is true, the BeginFrame message will continue |
625 // to be be delivered until the notification is disabled. | 625 // to be be delivered until the notification is disabled. |
626 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrames, | 626 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrames, |
627 bool /* enabled */) | 627 bool /* enabled */) |
628 | 628 |
629 // These three messages are sent to the parent RenderViewHost to display the | 629 // These two messages are sent to the parent RenderViewHost to display a widget |
630 // page/widget that was created by | 630 // that was created by CreateWidget/CreateFullscreenWidget. |routing_id| refers |
alexmos
2016/12/13 18:41:41
(while you're here) nit: route_id, to match the ar
ncarter (slow)
2016/12/15 00:33:17
Done.
| |
631 // CreateWindow/CreateWidget/CreateFullscreenWidget. routing_id | 631 // to the id that was returned from the corresponding Create message above. |
632 // refers to the id that was returned from the Create message above. | 632 // |initial_rect| is in screen coordinates. |
633 // The initial_rect parameter is in screen coordinates. | |
634 // | |
635 // FUTURE: there will probably be flags here to control if the result is | |
636 // in a new window. | |
637 IPC_MESSAGE_ROUTED4(ViewHostMsg_ShowView, | |
638 int /* route_id */, | |
639 WindowOpenDisposition /* disposition */, | |
640 gfx::Rect /* initial_rect */, | |
641 bool /* opened_by_user_gesture */) | |
642 | |
643 IPC_MESSAGE_ROUTED2(ViewHostMsg_ShowWidget, | 633 IPC_MESSAGE_ROUTED2(ViewHostMsg_ShowWidget, |
644 int /* route_id */, | 634 int /* route_id */, |
645 gfx::Rect /* initial_rect */) | 635 gfx::Rect /* initial_rect */) |
646 | 636 |
647 // Message to show a full screen widget. | 637 // Message to show a full screen widget. |
648 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowFullscreenWidget, | 638 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowFullscreenWidget, |
649 int /* route_id */) | 639 int /* route_id */) |
650 | 640 |
651 // Sent by the renderer process to request that the browser close the view. | 641 // Sent by the renderer process to request that the browser close the view. |
652 // This corresponds to the window.close() API, and the browser may ignore | 642 // This corresponds to the window.close() API, and the browser may ignore |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
925 int /* y */) | 915 int /* y */) |
926 | 916 |
927 #elif defined(OS_MACOSX) | 917 #elif defined(OS_MACOSX) |
928 // Receives content of a web page as plain text. | 918 // Receives content of a web page as plain text. |
929 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) | 919 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) |
930 #endif | 920 #endif |
931 | 921 |
932 // Adding a new message? Stick to the sort order above: first platform | 922 // Adding a new message? Stick to the sort order above: first platform |
933 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 923 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
934 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 924 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |