| 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 | |
| 633 // Change encoding of page in the renderer. | 626 // Change encoding of page in the renderer. |
| 634 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageEncoding, | 627 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageEncoding, |
| 635 std::string /*new encoding name*/) | 628 std::string /*new encoding name*/) |
| 636 | 629 |
| 637 // Reset encoding of page in the renderer back to default. | 630 // Reset encoding of page in the renderer back to default. |
| 638 IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageEncodingToDefault) | 631 IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageEncodingToDefault) |
| 639 | 632 |
| 640 // Used to tell a render view whether it should expose various bindings | 633 // Used to tell a render view whether it should expose various bindings |
| 641 // that allow JS content extended privileges. See BindingsPolicy for valid | 634 // that allow JS content extended privileges. See BindingsPolicy for valid |
| 642 // flag values. | 635 // flag values. |
| (...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1180 int /* y */) | 1173 int /* y */) |
| 1181 | 1174 |
| 1182 #elif defined(OS_MACOSX) | 1175 #elif defined(OS_MACOSX) |
| 1183 // Receives content of a web page as plain text. | 1176 // Receives content of a web page as plain text. |
| 1184 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) | 1177 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) |
| 1185 #endif | 1178 #endif |
| 1186 | 1179 |
| 1187 // Adding a new message? Stick to the sort order above: first platform | 1180 // Adding a new message? Stick to the sort order above: first platform |
| 1188 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1181 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 1189 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1182 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |