| 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 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 683 // Tells the renderer to perform the given action on the plugin located at | 683 // Tells the renderer to perform the given action on the plugin located at |
| 684 // the given point. | 684 // the given point. |
| 685 IPC_MESSAGE_ROUTED2(ViewMsg_PluginActionAt, | 685 IPC_MESSAGE_ROUTED2(ViewMsg_PluginActionAt, |
| 686 gfx::Point, /* location */ | 686 gfx::Point, /* location */ |
| 687 blink::WebPluginAction) | 687 blink::WebPluginAction) |
| 688 | 688 |
| 689 // Posts a message from a frame in another process to the current renderer. | 689 // Posts a message from a frame in another process to the current renderer. |
| 690 IPC_MESSAGE_ROUTED1(ViewMsg_PostMessageEvent, | 690 IPC_MESSAGE_ROUTED1(ViewMsg_PostMessageEvent, |
| 691 ViewMsg_PostMessage_Params) | 691 ViewMsg_PostMessage_Params) |
| 692 | 692 |
| 693 // Resets the page scale for the current main frame to the default page scale. |
| 694 IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageScale) |
| 695 |
| 693 // Change the zoom level for the current main frame. If the level actually | 696 // Change the zoom level for the current main frame. If the level actually |
| 694 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser | 697 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser |
| 695 // telling it what url got zoomed and what its current zoom level is. | 698 // telling it what url got zoomed and what its current zoom level is. |
| 696 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, | 699 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, |
| 697 content::PageZoom /* function */) | 700 content::PageZoom /* function */) |
| 698 | 701 |
| 699 // Set the zoom level for a particular url that the renderer is in the | 702 // Set the zoom level for a particular url that the renderer is in the |
| 700 // process of loading. This will be stored, to be used if the load commits | 703 // process of loading. This will be stored, to be used if the load commits |
| 701 // and ignored otherwise. | 704 // and ignored otherwise. |
| 702 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingURL, | 705 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingURL, |
| (...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1424 ViewHostMsg_TextInputState_Params /* input state params */) | 1427 ViewHostMsg_TextInputState_Params /* input state params */) |
| 1425 | 1428 |
| 1426 // Sent when the renderer changes the zoom level for a particular url, so the | 1429 // Sent when the renderer changes the zoom level for a particular url, so the |
| 1427 // browser can update its records. If the view is a plugin doc, then url is | 1430 // browser can update its records. If the view is a plugin doc, then url is |
| 1428 // used to update the zoom level for all pages in that site. Otherwise, the | 1431 // used to update the zoom level for all pages in that site. Otherwise, the |
| 1429 // render view's id is used so that only the menu is updated. | 1432 // render view's id is used so that only the menu is updated. |
| 1430 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidZoomURL, | 1433 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidZoomURL, |
| 1431 double /* zoom_level */, | 1434 double /* zoom_level */, |
| 1432 GURL /* url */) | 1435 GURL /* url */) |
| 1433 | 1436 |
| 1437 // Sent when the renderer changes its page scale factor and whether or not the |
| 1438 // page scale factor is one changes. |
| 1439 IPC_MESSAGE_ROUTED1(ViewHostMsg_PageScaleFactorIsOneChanged, bool /* is_one */); |
| 1440 |
| 1434 // Updates the minimum/maximum allowed zoom percent for this tab from the | 1441 // Updates the minimum/maximum allowed zoom percent for this tab from the |
| 1435 // default values. If |remember| is true, then the zoom setting is applied to | 1442 // default values. If |remember| is true, then the zoom setting is applied to |
| 1436 // other pages in the site and is saved, otherwise it only applies to this | 1443 // other pages in the site and is saved, otherwise it only applies to this |
| 1437 // tab. | 1444 // tab. |
| 1438 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateZoomLimits, | 1445 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateZoomLimits, |
| 1439 int /* minimum_percent */, | 1446 int /* minimum_percent */, |
| 1440 int /* maximum_percent */) | 1447 int /* maximum_percent */) |
| 1441 | 1448 |
| 1442 // Notify the browser that this render process can or can't be suddenly | 1449 // Notify the browser that this render process can or can't be suddenly |
| 1443 // terminated. | 1450 // terminated. |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1650 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters | 1657 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters |
| 1651 // for details. | 1658 // for details. |
| 1652 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, | 1659 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, |
| 1653 LOGFONT /* font_data */, | 1660 LOGFONT /* font_data */, |
| 1654 base::string16 /* characters */) | 1661 base::string16 /* characters */) |
| 1655 #endif | 1662 #endif |
| 1656 | 1663 |
| 1657 // Adding a new message? Stick to the sort order above: first platform | 1664 // Adding a new message? Stick to the sort order above: first platform |
| 1658 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1665 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 1659 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1666 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |