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 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_Zoom, | 920 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, |
921 PageZoom::Function /* function */) | 921 PageZoom::Function /* function */) |
922 | 922 |
923 // Set the zoom level for the current main frame. If the level actually | 923 // Set the zoom level for the current main frame. If the level actually |
924 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser | 924 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser |
925 // telling it what url got zoomed and what its current zoom level is. | 925 // telling it what url got zoomed and what its current zoom level is. |
926 IPC_MESSAGE_ROUTED1(ViewMsg_SetZoomLevel, | 926 IPC_MESSAGE_ROUTED1(ViewMsg_SetZoomLevel, |
927 double /* zoom_level */) | 927 double /* zoom_level */) |
928 | 928 |
| 929 // Zooms the page by the factor defined in the renderer. |
| 930 IPC_MESSAGE_ROUTED3(ViewMsg_ZoomFactor, |
| 931 PageZoom::Function, |
| 932 int /* zoom center_x */, |
| 933 int /* zoom center_y */) |
| 934 |
929 // Set the zoom level for a particular url that the renderer is in the | 935 // Set the zoom level for a particular url that the renderer is in the |
930 // process of loading. This will be stored, to be used if the load commits | 936 // process of loading. This will be stored, to be used if the load commits |
931 // and ignored otherwise. | 937 // and ignored otherwise. |
932 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingURL, | 938 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingURL, |
933 GURL /* url */, | 939 GURL /* url */, |
934 double /* zoom_level */) | 940 double /* zoom_level */) |
935 | 941 |
936 // Set the zoom level for a particular url, so all render views | 942 // Set the zoom level for a particular url, so all render views |
937 // displaying this url can update their zoom levels to match. | 943 // displaying this url can update their zoom levels to match. |
938 IPC_MESSAGE_CONTROL2(ViewMsg_SetZoomLevelForCurrentURL, | 944 IPC_MESSAGE_CONTROL2(ViewMsg_SetZoomLevelForCurrentURL, |
(...skipping 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1946 media::MediaLogEvent /* event */) | 1952 media::MediaLogEvent /* event */) |
1947 | 1953 |
1948 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message | 1954 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message |
1949 // being sent back. | 1955 // being sent back. |
1950 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) | 1956 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) |
1951 | 1957 |
1952 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent | 1958 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent |
1953 // whenever the mouse is unlocked (which may or may not be caused by | 1959 // whenever the mouse is unlocked (which may or may not be caused by |
1954 // ViewHostMsg_UnlockMouse). | 1960 // ViewHostMsg_UnlockMouse). |
1955 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) | 1961 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) |
OLD | NEW |