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 "base/process.h" | 8 #include "base/process.h" |
9 #include "base/shared_memory.h" | 9 #include "base/shared_memory.h" |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
(...skipping 1260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1271 | 1271 |
1272 // Notifies the renderer whether hiding/showing the top controls is enabled | 1272 // Notifies the renderer whether hiding/showing the top controls is enabled |
1273 // and whether or not to animate to the proper state. | 1273 // and whether or not to animate to the proper state. |
1274 IPC_MESSAGE_ROUTED3(ViewMsg_UpdateTopControlsState, | 1274 IPC_MESSAGE_ROUTED3(ViewMsg_UpdateTopControlsState, |
1275 bool /* enable_hiding */, | 1275 bool /* enable_hiding */, |
1276 bool /* enable_showing */, | 1276 bool /* enable_showing */, |
1277 bool /* animate */) | 1277 bool /* animate */) |
1278 | 1278 |
1279 IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded) | 1279 IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded) |
1280 | 1280 |
1281 // Sent by the browser when the display vsync signal was triggered and the | 1281 // Sent by the browser when the renderer should generate a new frame. |
1282 // renderer should generate a new frame. | 1282 IPC_MESSAGE_ROUTED1(ViewMsg_BeginFrame, |
1283 IPC_MESSAGE_ROUTED1(ViewMsg_DidVSync, | |
1284 base::TimeTicks /* frame_time */) | 1283 base::TimeTicks /* frame_time */) |
1285 | 1284 |
1286 #elif defined(OS_MACOSX) | 1285 #elif defined(OS_MACOSX) |
1287 // Let the RenderView know its window has changed visibility. | 1286 // Let the RenderView know its window has changed visibility. |
1288 IPC_MESSAGE_ROUTED1(ViewMsg_SetWindowVisibility, | 1287 IPC_MESSAGE_ROUTED1(ViewMsg_SetWindowVisibility, |
1289 bool /* visibile */) | 1288 bool /* visibile */) |
1290 | 1289 |
1291 // Let the RenderView know its window's frame has changed. | 1290 // Let the RenderView know its window's frame has changed. |
1292 IPC_MESSAGE_ROUTED2(ViewMsg_WindowFrameChanged, | 1291 IPC_MESSAGE_ROUTED2(ViewMsg_WindowFrameChanged, |
1293 gfx::Rect /* window frame */, | 1292 gfx::Rect /* window frame */, |
(...skipping 951 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2245 // the renderer and all IME related messages should be processed accordingly. | 2244 // the renderer and all IME related messages should be processed accordingly. |
2246 IPC_MESSAGE_ROUTED1(ViewHostMsg_ImeBatchStateChanged_ACK, | 2245 IPC_MESSAGE_ROUTED1(ViewHostMsg_ImeBatchStateChanged_ACK, |
2247 bool /* is_begin */) | 2246 bool /* is_begin */) |
2248 | 2247 |
2249 // This message runs the MediaCodec for decoding audio for webaudio. | 2248 // This message runs the MediaCodec for decoding audio for webaudio. |
2250 IPC_MESSAGE_CONTROL3(ViewHostMsg_RunWebAudioMediaCodec, | 2249 IPC_MESSAGE_CONTROL3(ViewHostMsg_RunWebAudioMediaCodec, |
2251 base::SharedMemoryHandle /* encoded_data_handle */, | 2250 base::SharedMemoryHandle /* encoded_data_handle */, |
2252 base::FileDescriptor /* pcm_output */, | 2251 base::FileDescriptor /* pcm_output */, |
2253 size_t /* data_size*/) | 2252 size_t /* data_size*/) |
2254 | 2253 |
2255 // Sent by renderer to request a ViewMsg_VSync message for upcoming display | 2254 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming |
2256 // vsync events. If |enabled| is true, the vsync message will continue to be be | 2255 // display events. If |enabled| is true, the BeginFrame message will continue |
2257 // delivered until the notification is disabled. | 2256 // to be be delivered until the notification is disabled. |
2258 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetVSyncNotificationEnabled, | 2257 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrame, |
2259 bool /* enabled */) | 2258 bool /* enabled */) |
2260 | 2259 |
2261 #elif defined(OS_MACOSX) | 2260 #elif defined(OS_MACOSX) |
2262 // Request that the browser load a font into shared memory for us. | 2261 // Request that the browser load a font into shared memory for us. |
2263 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont, | 2262 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont, |
2264 FontDescriptor /* font to load */, | 2263 FontDescriptor /* font to load */, |
2265 uint32 /* buffer size */, | 2264 uint32 /* buffer size */, |
2266 base::SharedMemoryHandle /* font data */, | 2265 base::SharedMemoryHandle /* font data */, |
2267 uint32 /* font id */) | 2266 uint32 /* font id */) |
2268 | 2267 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2300 // Since the browser keeps handles to the allocated transport DIBs, this | 2299 // Since the browser keeps handles to the allocated transport DIBs, this |
2301 // message is sent to tell the browser that it may release them when the | 2300 // message is sent to tell the browser that it may release them when the |
2302 // renderer is finished with them. | 2301 // renderer is finished with them. |
2303 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, | 2302 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, |
2304 TransportDIB::Id /* DIB id */) | 2303 TransportDIB::Id /* DIB id */) |
2305 #endif | 2304 #endif |
2306 | 2305 |
2307 // Adding a new message? Stick to the sort order above: first platform | 2306 // Adding a new message? Stick to the sort order above: first platform |
2308 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2307 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
2309 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2308 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |