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

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

Issue 2506183002: Make window.open() IPCs be frame-based (Closed)
Patch Set: Rebase. Created 3 years, 11 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
« no previous file with comments | « content/common/swapped_out_messages.cc ('k') | content/public/browser/content_browser_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 gfx::Size /* The view size to be repainted */) 482 gfx::Size /* The view size to be repainted */)
483 483
484 // Notification that a move or resize renderer's containing window has 484 // Notification that a move or resize renderer's containing window has
485 // started. 485 // started.
486 IPC_MESSAGE_ROUTED0(ViewMsg_MoveOrResizeStarted) 486 IPC_MESSAGE_ROUTED0(ViewMsg_MoveOrResizeStarted)
487 487
488 IPC_MESSAGE_ROUTED2(ViewMsg_UpdateScreenRects, 488 IPC_MESSAGE_ROUTED2(ViewMsg_UpdateScreenRects,
489 gfx::Rect /* view_screen_rect */, 489 gfx::Rect /* view_screen_rect */,
490 gfx::Rect /* window_screen_rect */) 490 gfx::Rect /* window_screen_rect */)
491 491
492 // Reply to ViewHostMsg_RequestMove, ViewHostMsg_ShowView, and 492 // Reply to ViewHostMsg_RequestMove, ViewHostMsg_ShowWidget, and
493 // ViewHostMsg_ShowWidget to inform the renderer that the browser has 493 // FrameHostMsg_ShowCreatedWindow, to inform the renderer that the browser has
494 // processed the move. The browser may have ignored the move, but it finished 494 // processed the move. The browser may have ignored the move, but it finished
495 // processing. This is used because the renderer keeps a temporary cache of 495 // processing. This is used because the renderer keeps a temporary cache of the
496 // the widget position while these asynchronous operations are in progress. 496 // widget position while these asynchronous operations are in progress.
497 IPC_MESSAGE_ROUTED0(ViewMsg_Move_ACK) 497 IPC_MESSAGE_ROUTED0(ViewMsg_Move_ACK)
498 498
499 // Used to instruct the RenderView to send back updates to the preferred size. 499 // Used to instruct the RenderView to send back updates to the preferred size.
500 IPC_MESSAGE_ROUTED0(ViewMsg_EnablePreferredSizeChangedMode) 500 IPC_MESSAGE_ROUTED0(ViewMsg_EnablePreferredSizeChangedMode)
501 501
502 // Used to instruct the RenderView to automatically resize and send back 502 // Used to instruct the RenderView to automatically resize and send back
503 // updates for the new size. 503 // updates for the new size.
504 IPC_MESSAGE_ROUTED2(ViewMsg_EnableAutoResize, 504 IPC_MESSAGE_ROUTED2(ViewMsg_EnableAutoResize,
505 gfx::Size /* min_size */, 505 gfx::Size /* min_size */,
506 gfx::Size /* max_size */) 506 gfx::Size /* max_size */)
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 610
611 // ----------------------------------------------------------------------------- 611 // -----------------------------------------------------------------------------
612 // Messages sent from the renderer to the browser. 612 // Messages sent from the renderer to the browser.
613 613
614 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming 614 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming
615 // display events. If |enabled| is true, the BeginFrame message will continue 615 // display events. If |enabled| is true, the BeginFrame message will continue
616 // to be be delivered until the notification is disabled. 616 // to be be delivered until the notification is disabled.
617 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrames, 617 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrames,
618 bool /* enabled */) 618 bool /* enabled */)
619 619
620 // These three messages are sent to the parent RenderViewHost to display the 620 // These two messages are sent to the parent RenderViewHost to display a widget
621 // page/widget that was created by 621 // that was created by CreateWidget/CreateFullscreenWidget. |route_id| refers
622 // CreateWindow/CreateWidget/CreateFullscreenWidget. routing_id 622 // to the id that was returned from the corresponding Create message above.
623 // refers to the id that was returned from the Create message above. 623 // |initial_rect| is in screen coordinates.
624 // The initial_rect parameter is in screen coordinates.
625 //
626 // FUTURE: there will probably be flags here to control if the result is
627 // in a new window.
628 IPC_MESSAGE_ROUTED4(ViewHostMsg_ShowView,
629 int /* route_id */,
630 WindowOpenDisposition /* disposition */,
631 gfx::Rect /* initial_rect */,
632 bool /* opened_by_user_gesture */)
633
634 IPC_MESSAGE_ROUTED2(ViewHostMsg_ShowWidget, 624 IPC_MESSAGE_ROUTED2(ViewHostMsg_ShowWidget,
635 int /* route_id */, 625 int /* route_id */,
636 gfx::Rect /* initial_rect */) 626 gfx::Rect /* initial_rect */)
637 627
638 // Message to show a full screen widget. 628 // Message to show a full screen widget.
639 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowFullscreenWidget, 629 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowFullscreenWidget,
640 int /* route_id */) 630 int /* route_id */)
641 631
642 // Sent by the renderer process to request that the browser close the view. 632 // Sent by the renderer process to request that the browser close the view.
643 // This corresponds to the window.close() API, and the browser may ignore 633 // This corresponds to the window.close() API, and the browser may ignore
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
900 int /* y */) 890 int /* y */)
901 891
902 #elif defined(OS_MACOSX) 892 #elif defined(OS_MACOSX)
903 // Receives content of a web page as plain text. 893 // Receives content of a web page as plain text.
904 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) 894 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string)
905 #endif 895 #endif
906 896
907 // Adding a new message? Stick to the sort order above: first platform 897 // Adding a new message? Stick to the sort order above: first platform
908 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 898 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
909 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 899 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW
« no previous file with comments | « content/common/swapped_out_messages.cc ('k') | content/public/browser/content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698