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 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
670 | 670 |
671 // Requests that the RenderView's main frame sets its opener to null. | 671 // Requests that the RenderView's main frame sets its opener to null. |
672 IPC_MESSAGE_ROUTED0(ViewMsg_DisownOpener) | 672 IPC_MESSAGE_ROUTED0(ViewMsg_DisownOpener) |
673 | 673 |
674 // Change the zoom level for the current main frame. If the level actually | 674 // Change the zoom level for the current main frame. If the level actually |
675 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser | 675 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser |
676 // telling it what url got zoomed and what its current zoom level is. | 676 // telling it what url got zoomed and what its current zoom level is. |
677 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, | 677 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, |
678 content::PageZoom /* function */) | 678 content::PageZoom /* function */) |
679 | 679 |
680 // Set the zoom level for the current main frame. If the level actually | |
681 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser | |
682 // telling it what url got zoomed and what its current zoom level is. | |
683 IPC_MESSAGE_ROUTED1(ViewMsg_SetZoomLevel, | |
684 double /* zoom_level */) | |
685 | |
686 // Set the zoom level for a particular url that the renderer is in the | 680 // Set the zoom level for a particular url that the renderer is in the |
687 // process of loading. This will be stored, to be used if the load commits | 681 // process of loading. This will be stored, to be used if the load commits |
688 // and ignored otherwise. | 682 // and ignored otherwise. |
689 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingURL, | 683 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingURL, |
690 GURL /* url */, | 684 GURL /* url */, |
691 double /* zoom_level */) | 685 double /* zoom_level */) |
692 | 686 |
693 // Set the zoom level for a particular url, so all render views | 687 // Set the zoom level for a particular url, so all render views |
694 // displaying this url can update their zoom levels to match. | 688 // displaying this url can update their zoom levels to match. |
695 // If scheme is empty, then only host is used for matching. | 689 // If scheme is empty, then only host is used for matching. |
(...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1449 ui::TextInputMode /* TextInputMode of the focused node */, | 1443 ui::TextInputMode /* TextInputMode of the focused node */, |
1450 bool /* can_compose_inline in the focused node */) | 1444 bool /* can_compose_inline in the focused node */) |
1451 | 1445 |
1452 // Required for updating text input state. | 1446 // Required for updating text input state. |
1453 IPC_MESSAGE_ROUTED1(ViewHostMsg_TextInputStateChanged, | 1447 IPC_MESSAGE_ROUTED1(ViewHostMsg_TextInputStateChanged, |
1454 ViewHostMsg_TextInputState_Params /* input state params */) | 1448 ViewHostMsg_TextInputState_Params /* input state params */) |
1455 | 1449 |
1456 // Required for cancelling an ongoing input method composition. | 1450 // Required for cancelling an ongoing input method composition. |
1457 IPC_MESSAGE_ROUTED0(ViewHostMsg_ImeCancelComposition) | 1451 IPC_MESSAGE_ROUTED0(ViewHostMsg_ImeCancelComposition) |
1458 | 1452 |
| 1453 // Sent when creating a new main-frame document in the renderer and it turns |
| 1454 // out to be a plugin document. Contents needs to keep track of this, since |
| 1455 // zooming is handled differently for plugin documents. |
| 1456 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidCreateDocument, |
| 1457 bool /* uses_temporary_zoom_settings */) |
| 1458 |
1459 // Sent when the renderer changes the zoom level for a particular url, so the | 1459 // Sent when the renderer changes the zoom level for a particular url, so the |
1460 // browser can update its records. If remember is true, then url is used to | 1460 // browser can update its records. If the view is a plugin doc, then url is |
1461 // update the zoom level for all pages in that site. Otherwise, the render | 1461 // used to update the zoom level for all pages in that site. Otherwise, the |
1462 // view's id is used so that only the menu is updated. | 1462 // render view's id is used so that only the menu is updated. |
1463 IPC_MESSAGE_ROUTED3(ViewHostMsg_DidZoomURL, | 1463 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidZoomURL, |
1464 double /* zoom_level */, | 1464 double /* zoom_level */, |
1465 bool /* remember */, | |
1466 GURL /* url */) | 1465 GURL /* url */) |
1467 | 1466 |
1468 // Updates the minimum/maximum allowed zoom percent for this tab from the | 1467 // Updates the minimum/maximum allowed zoom percent for this tab from the |
1469 // default values. If |remember| is true, then the zoom setting is applied to | 1468 // default values. If |remember| is true, then the zoom setting is applied to |
1470 // other pages in the site and is saved, otherwise it only applies to this | 1469 // other pages in the site and is saved, otherwise it only applies to this |
1471 // tab. | 1470 // tab. |
1472 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateZoomLimits, | 1471 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateZoomLimits, |
1473 int /* minimum_percent */, | 1472 int /* minimum_percent */, |
1474 int /* maximum_percent */, | 1473 int /* maximum_percent */) |
1475 bool /* remember */) | |
1476 | 1474 |
1477 // Notify the browser that this render process can or can't be suddenly | 1475 // Notify the browser that this render process can or can't be suddenly |
1478 // terminated. | 1476 // terminated. |
1479 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged, | 1477 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged, |
1480 bool /* enabled */) | 1478 bool /* enabled */) |
1481 | 1479 |
1482 // Informs the browser of updated frame names. | 1480 // Informs the browser of updated frame names. |
1483 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateFrameName, | 1481 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateFrameName, |
1484 int /* frame_id */, | 1482 int /* frame_id */, |
1485 bool /* is_top_level */, | 1483 bool /* is_top_level */, |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1763 // synchronously (see crbug.com/120597). This IPC message sends the character | 1761 // synchronously (see crbug.com/120597). This IPC message sends the character |
1764 // bounds after every composition change to always have correct bound info. | 1762 // bounds after every composition change to always have correct bound info. |
1765 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 1763 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
1766 gfx::Range /* composition range */, | 1764 gfx::Range /* composition range */, |
1767 std::vector<gfx::Rect> /* character bounds */) | 1765 std::vector<gfx::Rect> /* character bounds */) |
1768 #endif | 1766 #endif |
1769 | 1767 |
1770 // Adding a new message? Stick to the sort order above: first platform | 1768 // Adding a new message? Stick to the sort order above: first platform |
1771 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1769 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
1772 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1770 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |