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 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 | 442 |
443 // Tells the renderer to perform the given action on the plugin located at | 443 // Tells the renderer to perform the given action on the plugin located at |
444 // the given point. | 444 // the given point. |
445 IPC_MESSAGE_ROUTED2(ViewMsg_PluginActionAt, | 445 IPC_MESSAGE_ROUTED2(ViewMsg_PluginActionAt, |
446 gfx::Point, /* location */ | 446 gfx::Point, /* location */ |
447 blink::WebPluginAction) | 447 blink::WebPluginAction) |
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 | |
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. | |
455 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, | |
456 content::PageZoom /* function */) | |
457 | |
458 // Used to tell a render view whether it should expose various bindings | 452 // Used to tell a render view whether it should expose various bindings |
459 // that allow JS content extended privileges. See BindingsPolicy for valid | 453 // that allow JS content extended privileges. See BindingsPolicy for valid |
460 // flag values. | 454 // flag values. |
461 IPC_MESSAGE_ROUTED1(ViewMsg_AllowBindings, | 455 IPC_MESSAGE_ROUTED1(ViewMsg_AllowBindings, |
462 int /* enabled_bindings_flags */) | 456 int /* enabled_bindings_flags */) |
463 | 457 |
464 // Tell the renderer to add a property to the WebUI binding object. This | 458 // Tell the renderer to add a property to the WebUI binding object. This |
465 // only works if we allowed WebUI bindings. | 459 // only works if we allowed WebUI bindings. |
466 IPC_MESSAGE_ROUTED2(ViewMsg_SetWebUIProperty, | 460 IPC_MESSAGE_ROUTED2(ViewMsg_SetWebUIProperty, |
467 std::string /* property_name */, | 461 std::string /* property_name */, |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
784 bool /* reverse */) | 778 bool /* reverse */) |
785 | 779 |
786 // Required for opening a date/time dialog | 780 // Required for opening a date/time dialog |
787 IPC_MESSAGE_ROUTED1(ViewHostMsg_OpenDateTimeDialog, | 781 IPC_MESSAGE_ROUTED1(ViewHostMsg_OpenDateTimeDialog, |
788 ViewHostMsg_DateTimeDialogValue_Params /* value */) | 782 ViewHostMsg_DateTimeDialogValue_Params /* value */) |
789 | 783 |
790 // Required for updating text input state. | 784 // Required for updating text input state. |
791 IPC_MESSAGE_ROUTED1(ViewHostMsg_TextInputStateChanged, | 785 IPC_MESSAGE_ROUTED1(ViewHostMsg_TextInputStateChanged, |
792 content::TextInputState /* text_input_state */) | 786 content::TextInputState /* text_input_state */) |
793 | 787 |
794 // Sent when the renderer changes the zoom level for a particular url, so the | |
795 // browser can update its records. If the view is a plugin doc, then url is | |
796 // used to update the zoom level for all pages in that site. Otherwise, the | |
797 // render view's id is used so that only the menu is updated. | |
798 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidZoomURL, | |
799 double /* zoom_level */, | |
800 GURL /* url */) | |
801 | |
802 // Sent when the renderer changes its page scale factor. | 788 // Sent when the renderer changes its page scale factor. |
803 IPC_MESSAGE_ROUTED1(ViewHostMsg_PageScaleFactorChanged, | 789 IPC_MESSAGE_ROUTED1(ViewHostMsg_PageScaleFactorChanged, |
804 float /* page_scale_factor */) | 790 float /* page_scale_factor */) |
805 | 791 |
806 // Updates the minimum/maximum allowed zoom percent for this tab from the | 792 // Updates the minimum/maximum allowed zoom percent for this tab from the |
807 // default values. If |remember| is true, then the zoom setting is applied to | 793 // default values. If |remember| is true, then the zoom setting is applied to |
808 // other pages in the site and is saved, otherwise it only applies to this | 794 // other pages in the site and is saved, otherwise it only applies to this |
809 // tab. | 795 // tab. |
810 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateZoomLimits, | 796 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateZoomLimits, |
811 int /* minimum_percent */, | 797 int /* minimum_percent */, |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
914 int /* y */) | 900 int /* y */) |
915 | 901 |
916 #elif defined(OS_MACOSX) | 902 #elif defined(OS_MACOSX) |
917 // Receives content of a web page as plain text. | 903 // Receives content of a web page as plain text. |
918 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) | 904 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) |
919 #endif | 905 #endif |
920 | 906 |
921 // Adding a new message? Stick to the sort order above: first platform | 907 // Adding a new message? Stick to the sort order above: first platform |
922 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 908 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
923 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 909 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |