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/common_param_traits.h" | 10 #include "content/common/common_param_traits.h" |
(...skipping 1182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1193 IPC_MESSAGE_ROUTED0(ViewMsg_GetFPS) | 1193 IPC_MESSAGE_ROUTED0(ViewMsg_GetFPS) |
1194 | 1194 |
1195 // Used to instruct the RenderView to go into "view source" mode. | 1195 // Used to instruct the RenderView to go into "view source" mode. |
1196 IPC_MESSAGE_ROUTED0(ViewMsg_EnableViewSourceMode) | 1196 IPC_MESSAGE_ROUTED0(ViewMsg_EnableViewSourceMode) |
1197 | 1197 |
1198 // Instructs the renderer to save the current page to MHTML. | 1198 // Instructs the renderer to save the current page to MHTML. |
1199 IPC_MESSAGE_ROUTED2(ViewMsg_SavePageAsMHTML, | 1199 IPC_MESSAGE_ROUTED2(ViewMsg_SavePageAsMHTML, |
1200 int /* job_id */, | 1200 int /* job_id */, |
1201 IPC::PlatformFileForTransit /* file handle */) | 1201 IPC::PlatformFileForTransit /* file handle */) |
1202 | 1202 |
| 1203 // Exit fullscreen. |
| 1204 IPC_MESSAGE_ROUTED0(ViewMsg_ExitFullscreen) |
| 1205 |
1203 // Messages sent from the renderer to the browser. | 1206 // Messages sent from the renderer to the browser. |
1204 | 1207 |
1205 // Sent by the renderer when it is creating a new window. The browser creates | 1208 // Sent by the renderer when it is creating a new window. The browser creates |
1206 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is | 1209 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is |
1207 // MSG_ROUTING_NONE, the view couldn't be created. | 1210 // MSG_ROUTING_NONE, the view couldn't be created. |
1208 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_CreateWindow, | 1211 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_CreateWindow, |
1209 ViewHostMsg_CreateWindow_Params, | 1212 ViewHostMsg_CreateWindow_Params, |
1210 int /* route_id */, | 1213 int /* route_id */, |
1211 int64 /* cloned_session_storage_namespace_id */) | 1214 int64 /* cloned_session_storage_namespace_id */) |
1212 | 1215 |
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1953 std::string /* scheme */, | 1956 std::string /* scheme */, |
1954 GURL /* url */, | 1957 GURL /* url */, |
1955 string16 /* title */) | 1958 string16 /* title */) |
1956 | 1959 |
1957 // Stores new inspector setting in the profile. | 1960 // Stores new inspector setting in the profile. |
1958 // TODO(jam): this should be in the chrome module | 1961 // TODO(jam): this should be in the chrome module |
1959 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateInspectorSetting, | 1962 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateInspectorSetting, |
1960 std::string, /* key */ | 1963 std::string, /* key */ |
1961 std::string /* value */) | 1964 std::string /* value */) |
1962 | 1965 |
| 1966 // Puts the browser into "tab fullscreen" mode for the sending renderer. |
| 1967 // See the comment in chrome/browser/ui/browser.h for more details. |
| 1968 IPC_MESSAGE_ROUTED1(ViewHostMsg_ToggleFullscreen, |
| 1969 bool /* enter_fullscreen */); |
| 1970 |
1963 // Send back a string to be recorded by UserMetrics. | 1971 // Send back a string to be recorded by UserMetrics. |
1964 IPC_MESSAGE_CONTROL1(ViewHostMsg_UserMetricsRecordAction, | 1972 IPC_MESSAGE_CONTROL1(ViewHostMsg_UserMetricsRecordAction, |
1965 std::string /* action */) | 1973 std::string /* action */) |
1966 | 1974 |
1967 // Provide the browser process with current renderer framerate. | 1975 // Provide the browser process with current renderer framerate. |
1968 IPC_MESSAGE_CONTROL2(ViewHostMsg_FPS, | 1976 IPC_MESSAGE_CONTROL2(ViewHostMsg_FPS, |
1969 int /* routing id */, | 1977 int /* routing id */, |
1970 float /* frames per second */) | 1978 float /* frames per second */) |
1971 | 1979 |
1972 // Notifies the browser that the page was or was not saved as MHTML. | 1980 // Notifies the browser that the page was or was not saved as MHTML. |
1973 IPC_MESSAGE_CONTROL2(ViewHostMsg_SavedPageAsMHTML, | 1981 IPC_MESSAGE_CONTROL2(ViewHostMsg_SavedPageAsMHTML, |
1974 int /* job_id */, | 1982 int /* job_id */, |
1975 bool /* success */) | 1983 bool /* success */) |
OLD | NEW |