| 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 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 606 | 606 |
| 607 // Sets the page scale for the current main frame to the given page scale. | 607 // Sets the page scale for the current main frame to the given page scale. |
| 608 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageScale, float /* page_scale_factor */) | 608 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageScale, float /* page_scale_factor */) |
| 609 | 609 |
| 610 // Change the zoom level for the current main frame. If the level actually | 610 // Change the zoom level for the current main frame. If the level actually |
| 611 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser | 611 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser |
| 612 // telling it what url got zoomed and what its current zoom level is. | 612 // telling it what url got zoomed and what its current zoom level is. |
| 613 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, | 613 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, |
| 614 content::PageZoom /* function */) | 614 content::PageZoom /* function */) |
| 615 | 615 |
| 616 // Set the zoom level for a particular url that the renderer is in the | |
| 617 // process of loading. This will be stored, to be used if the load commits | |
| 618 // and ignored otherwise. | |
| 619 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingURL, | |
| 620 GURL /* url */, | |
| 621 double /* zoom_level */) | |
| 622 | |
| 623 // Used to tell a render view whether it should expose various bindings | 616 // Used to tell a render view whether it should expose various bindings |
| 624 // that allow JS content extended privileges. See BindingsPolicy for valid | 617 // that allow JS content extended privileges. See BindingsPolicy for valid |
| 625 // flag values. | 618 // flag values. |
| 626 IPC_MESSAGE_ROUTED1(ViewMsg_AllowBindings, | 619 IPC_MESSAGE_ROUTED1(ViewMsg_AllowBindings, |
| 627 int /* enabled_bindings_flags */) | 620 int /* enabled_bindings_flags */) |
| 628 | 621 |
| 629 // Tell the renderer to add a property to the WebUI binding object. This | 622 // Tell the renderer to add a property to the WebUI binding object. This |
| 630 // only works if we allowed WebUI bindings. | 623 // only works if we allowed WebUI bindings. |
| 631 IPC_MESSAGE_ROUTED2(ViewMsg_SetWebUIProperty, | 624 IPC_MESSAGE_ROUTED2(ViewMsg_SetWebUIProperty, |
| 632 std::string /* property_name */, | 625 std::string /* property_name */, |
| (...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1156 int /* y */) | 1149 int /* y */) |
| 1157 | 1150 |
| 1158 #elif defined(OS_MACOSX) | 1151 #elif defined(OS_MACOSX) |
| 1159 // Receives content of a web page as plain text. | 1152 // Receives content of a web page as plain text. |
| 1160 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) | 1153 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) |
| 1161 #endif | 1154 #endif |
| 1162 | 1155 |
| 1163 // Adding a new message? Stick to the sort order above: first platform | 1156 // Adding a new message? Stick to the sort order above: first platform |
| 1164 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1157 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 1165 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1158 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |