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 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 | 448 |
449 // Sets the page scale for the current main frame to the given page scale. | 449 // Sets the page scale for the current main frame to the given page scale. |
450 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageScale, float /* page_scale_factor */) | 450 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageScale, float /* page_scale_factor */) |
451 | 451 |
452 // Change the zoom level for the current main frame. If the level actually | 452 // Change the zoom level for the current main frame. If the level actually |
453 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser | 453 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser |
454 // telling it what url got zoomed and what its current zoom level is. | 454 // telling it what url got zoomed and what its current zoom level is. |
455 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, | 455 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, |
456 content::PageZoom /* function */) | 456 content::PageZoom /* function */) |
457 | 457 |
458 // Set the zoom level for a particular url that the renderer is in the | |
459 // process of loading. This will be stored, to be used if the load commits | |
460 // and ignored otherwise. | |
461 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingURL, | |
462 GURL /* url */, | |
463 double /* zoom_level */) | |
464 | |
465 // Used to tell a render view whether it should expose various bindings | 458 // Used to tell a render view whether it should expose various bindings |
466 // that allow JS content extended privileges. See BindingsPolicy for valid | 459 // that allow JS content extended privileges. See BindingsPolicy for valid |
467 // flag values. | 460 // flag values. |
468 IPC_MESSAGE_ROUTED1(ViewMsg_AllowBindings, | 461 IPC_MESSAGE_ROUTED1(ViewMsg_AllowBindings, |
469 int /* enabled_bindings_flags */) | 462 int /* enabled_bindings_flags */) |
470 | 463 |
471 // Tell the renderer to add a property to the WebUI binding object. This | 464 // Tell the renderer to add a property to the WebUI binding object. This |
472 // only works if we allowed WebUI bindings. | 465 // only works if we allowed WebUI bindings. |
473 IPC_MESSAGE_ROUTED2(ViewMsg_SetWebUIProperty, | 466 IPC_MESSAGE_ROUTED2(ViewMsg_SetWebUIProperty, |
474 std::string /* property_name */, | 467 std::string /* property_name */, |
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
952 int /* y */) | 945 int /* y */) |
953 | 946 |
954 #elif defined(OS_MACOSX) | 947 #elif defined(OS_MACOSX) |
955 // Receives content of a web page as plain text. | 948 // Receives content of a web page as plain text. |
956 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) | 949 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) |
957 #endif | 950 #endif |
958 | 951 |
959 // Adding a new message? Stick to the sort order above: first platform | 952 // Adding a new message? Stick to the sort order above: first platform |
960 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 953 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
961 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 954 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |