OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/process.h" | 8 #include "base/process.h" |
9 #include "base/shared_memory.h" | 9 #include "base/shared_memory.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
913 // telling it what url got zoomed and what its current zoom level is. | 913 // telling it what url got zoomed and what its current zoom level is. |
914 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, | 914 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, |
915 content::PageZoom /* function */) | 915 content::PageZoom /* function */) |
916 | 916 |
917 // Set the zoom level for the current main frame. If the level actually | 917 // Set the zoom level for the current main frame. If the level actually |
918 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser | 918 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser |
919 // telling it what url got zoomed and what its current zoom level is. | 919 // telling it what url got zoomed and what its current zoom level is. |
920 IPC_MESSAGE_ROUTED1(ViewMsg_SetZoomLevel, | 920 IPC_MESSAGE_ROUTED1(ViewMsg_SetZoomLevel, |
921 double /* zoom_level */) | 921 double /* zoom_level */) |
922 | 922 |
| 923 // Zooms the page by the factor defined in the renderer. |
| 924 IPC_MESSAGE_ROUTED3(ViewMsg_ZoomFactor, |
| 925 content::PageZoom, |
| 926 int /* zoom center_x */, |
| 927 int /* zoom center_y */) |
| 928 |
923 // Set the zoom level for a particular url that the renderer is in the | 929 // Set the zoom level for a particular url that the renderer is in the |
924 // process of loading. This will be stored, to be used if the load commits | 930 // process of loading. This will be stored, to be used if the load commits |
925 // and ignored otherwise. | 931 // and ignored otherwise. |
926 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingURL, | 932 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingURL, |
927 GURL /* url */, | 933 GURL /* url */, |
928 double /* zoom_level */) | 934 double /* zoom_level */) |
929 | 935 |
930 // Set the zoom level for a particular url, so all render views | 936 // Set the zoom level for a particular url, so all render views |
931 // displaying this url can update their zoom levels to match. | 937 // displaying this url can update their zoom levels to match. |
932 IPC_MESSAGE_CONTROL2(ViewMsg_SetZoomLevelForCurrentURL, | 938 IPC_MESSAGE_CONTROL2(ViewMsg_SetZoomLevelForCurrentURL, |
(...skipping 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1938 media::MediaLogEvent /* event */) | 1944 media::MediaLogEvent /* event */) |
1939 | 1945 |
1940 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message | 1946 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message |
1941 // being sent back. | 1947 // being sent back. |
1942 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) | 1948 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) |
1943 | 1949 |
1944 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent | 1950 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent |
1945 // whenever the mouse is unlocked (which may or may not be caused by | 1951 // whenever the mouse is unlocked (which may or may not be caused by |
1946 // ViewHostMsg_UnlockMouse). | 1952 // ViewHostMsg_UnlockMouse). |
1947 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) | 1953 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) |
OLD | NEW |