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 1226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1237 IPC_MESSAGE_ROUTED0(ViewMsg_GetFPS) | 1237 IPC_MESSAGE_ROUTED0(ViewMsg_GetFPS) |
1238 | 1238 |
1239 // Used to instruct the RenderView to go into "view source" mode. | 1239 // Used to instruct the RenderView to go into "view source" mode. |
1240 IPC_MESSAGE_ROUTED0(ViewMsg_EnableViewSourceMode) | 1240 IPC_MESSAGE_ROUTED0(ViewMsg_EnableViewSourceMode) |
1241 | 1241 |
1242 // Instructs the renderer to save the current page to MHTML. | 1242 // Instructs the renderer to save the current page to MHTML. |
1243 IPC_MESSAGE_ROUTED2(ViewMsg_SavePageAsMHTML, | 1243 IPC_MESSAGE_ROUTED2(ViewMsg_SavePageAsMHTML, |
1244 int /* job_id */, | 1244 int /* job_id */, |
1245 IPC::PlatformFileForTransit /* file handle */) | 1245 IPC::PlatformFileForTransit /* file handle */) |
1246 | 1246 |
| 1247 // Exit fullscreen. |
| 1248 IPC_MESSAGE_ROUTED0(ViewMsg_ExitFullscreen) |
| 1249 |
1247 // Messages sent from the renderer to the browser. | 1250 // Messages sent from the renderer to the browser. |
1248 | 1251 |
1249 // Sent by the renderer when it is creating a new window. The browser creates | 1252 // Sent by the renderer when it is creating a new window. The browser creates |
1250 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is | 1253 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is |
1251 // MSG_ROUTING_NONE, the view couldn't be created. | 1254 // MSG_ROUTING_NONE, the view couldn't be created. |
1252 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_CreateWindow, | 1255 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_CreateWindow, |
1253 ViewHostMsg_CreateWindow_Params, | 1256 ViewHostMsg_CreateWindow_Params, |
1254 int /* route_id */, | 1257 int /* route_id */, |
1255 int64 /* cloned_session_storage_namespace_id */) | 1258 int64 /* cloned_session_storage_namespace_id */) |
1256 | 1259 |
(...skipping 789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2046 string16 /* type */, | 2049 string16 /* type */, |
2047 string16 /* payload data */, | 2050 string16 /* payload data */, |
2048 int /* intent ID */) | 2051 int /* intent ID */) |
2049 | 2052 |
2050 // Stores new inspector setting in the profile. | 2053 // Stores new inspector setting in the profile. |
2051 // TODO(jam): this should be in the chrome module | 2054 // TODO(jam): this should be in the chrome module |
2052 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateInspectorSetting, | 2055 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateInspectorSetting, |
2053 std::string, /* key */ | 2056 std::string, /* key */ |
2054 std::string /* value */) | 2057 std::string /* value */) |
2055 | 2058 |
| 2059 // Puts the browser into "tab fullscreen" mode for the sending renderer. |
| 2060 // See the comment in chrome/browser/ui/browser.h for more details. |
| 2061 IPC_MESSAGE_ROUTED1(ViewHostMsg_ToggleFullscreen, |
| 2062 bool /* enter_fullscreen */) |
| 2063 |
2056 // Send back a string to be recorded by UserMetrics. | 2064 // Send back a string to be recorded by UserMetrics. |
2057 IPC_MESSAGE_CONTROL1(ViewHostMsg_UserMetricsRecordAction, | 2065 IPC_MESSAGE_CONTROL1(ViewHostMsg_UserMetricsRecordAction, |
2058 std::string /* action */) | 2066 std::string /* action */) |
2059 | 2067 |
2060 // Provide the browser process with current renderer framerate. | 2068 // Provide the browser process with current renderer framerate. |
2061 IPC_MESSAGE_CONTROL2(ViewHostMsg_FPS, | 2069 IPC_MESSAGE_CONTROL2(ViewHostMsg_FPS, |
2062 int /* routing id */, | 2070 int /* routing id */, |
2063 float /* frames per second */) | 2071 float /* frames per second */) |
2064 | 2072 |
2065 // Notifies the browser that the page was or was not saved as MHTML. | 2073 // Notifies the browser that the page was or was not saved as MHTML. |
(...skipping 12 matching lines...) Expand all Loading... |
2078 int32 /* complete status */) | 2086 int32 /* complete status */) |
2079 | 2087 |
2080 // Request updated information about the client firewall traversal policy. | 2088 // Request updated information about the client firewall traversal policy. |
2081 // Will result in a ViewMsg_UpdateRemoteAccessClientFirewallTraversal message | 2089 // Will result in a ViewMsg_UpdateRemoteAccessClientFirewallTraversal message |
2082 // being sent back. | 2090 // being sent back. |
2083 IPC_MESSAGE_ROUTED0(ViewHostMsg_RequestRemoteAccessClientFirewallTraversal) | 2091 IPC_MESSAGE_ROUTED0(ViewHostMsg_RequestRemoteAccessClientFirewallTraversal) |
2084 | 2092 |
2085 // Notifies the browser of an event occurring in the media pipeline. | 2093 // Notifies the browser of an event occurring in the media pipeline. |
2086 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvent, | 2094 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvent, |
2087 media::MediaLogEvent /* event */) | 2095 media::MediaLogEvent /* event */) |
OLD | NEW |