| 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 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 616 | 616 |
| 617 // Sets the page scale for the current main frame to the given page scale. | 617 // Sets the page scale for the current main frame to the given page scale. |
| 618 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageScale, float /* page_scale_factor */) | 618 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageScale, float /* page_scale_factor */) |
| 619 | 619 |
| 620 // Change the zoom level for the current main frame. If the level actually | 620 // Change the zoom level for the current main frame. If the level actually |
| 621 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser | 621 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser |
| 622 // telling it what url got zoomed and what its current zoom level is. | 622 // telling it what url got zoomed and what its current zoom level is. |
| 623 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, | 623 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, |
| 624 content::PageZoom /* function */) | 624 content::PageZoom /* function */) |
| 625 | 625 |
| 626 // Set the zoom level for a particular url that the renderer is in the |
| 627 // process of loading. This will be stored, to be used if the load commits |
| 628 // and ignored otherwise. |
| 629 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingURL, |
| 630 GURL /* url */, |
| 631 double /* zoom_level */) |
| 632 |
| 626 // Change encoding of page in the renderer. | 633 // Change encoding of page in the renderer. |
| 627 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageEncoding, | 634 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageEncoding, |
| 628 std::string /*new encoding name*/) | 635 std::string /*new encoding name*/) |
| 629 | 636 |
| 630 // Reset encoding of page in the renderer back to default. | 637 // Reset encoding of page in the renderer back to default. |
| 631 IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageEncodingToDefault) | 638 IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageEncodingToDefault) |
| 632 | 639 |
| 633 // Used to tell a render view whether it should expose various bindings | 640 // Used to tell a render view whether it should expose various bindings |
| 634 // that allow JS content extended privileges. See BindingsPolicy for valid | 641 // that allow JS content extended privileges. See BindingsPolicy for valid |
| 635 // flag values. | 642 // flag values. |
| (...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1173 int /* y */) | 1180 int /* y */) |
| 1174 | 1181 |
| 1175 #elif defined(OS_MACOSX) | 1182 #elif defined(OS_MACOSX) |
| 1176 // Receives content of a web page as plain text. | 1183 // Receives content of a web page as plain text. |
| 1177 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) | 1184 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) |
| 1178 #endif | 1185 #endif |
| 1179 | 1186 |
| 1180 // Adding a new message? Stick to the sort order above: first platform | 1187 // Adding a new message? Stick to the sort order above: first platform |
| 1181 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1188 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 1182 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1189 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |