| 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_BeginChildFrame, |
| 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 946 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2240 // the renderer and all IME related messages should be processed accordingly. | 2239 // the renderer and all IME related messages should be processed accordingly. |
| 2241 IPC_MESSAGE_ROUTED1(ViewHostMsg_ImeBatchStateChanged_ACK, | 2240 IPC_MESSAGE_ROUTED1(ViewHostMsg_ImeBatchStateChanged_ACK, |
| 2242 bool /* is_begin */) | 2241 bool /* is_begin */) |
| 2243 | 2242 |
| 2244 // This message runs the MediaCodec for decoding audio for webaudio. | 2243 // This message runs the MediaCodec for decoding audio for webaudio. |
| 2245 IPC_MESSAGE_CONTROL3(ViewHostMsg_RunWebAudioMediaCodec, | 2244 IPC_MESSAGE_CONTROL3(ViewHostMsg_RunWebAudioMediaCodec, |
| 2246 base::SharedMemoryHandle /* encoded_data_handle */, | 2245 base::SharedMemoryHandle /* encoded_data_handle */, |
| 2247 base::FileDescriptor /* pcm_output */, | 2246 base::FileDescriptor /* pcm_output */, |
| 2248 size_t /* data_size*/) | 2247 size_t /* data_size*/) |
| 2249 | 2248 |
| 2250 // Sent by renderer to request a ViewMsg_VSync message for upcoming display | 2249 // Sent by renderer to request a ViewMsg_BeginChildFrame message for upcoming |
| 2251 // vsync events. If |enabled| is true, the vsync message will continue to be be | 2250 // display events. If |enabled| is true, the BeginChildFrame message will |
| 2252 // delivered until the notification is disabled. | 2251 // continue to be be delivered until the notification is disabled. |
| 2253 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetVSyncNotificationEnabled, | 2252 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginChildFrame, |
| 2254 bool /* enabled */) | 2253 bool /* enabled */) |
| 2255 | 2254 |
| 2256 #elif defined(OS_MACOSX) | 2255 #elif defined(OS_MACOSX) |
| 2257 // Request that the browser load a font into shared memory for us. | 2256 // Request that the browser load a font into shared memory for us. |
| 2258 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont, | 2257 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont, |
| 2259 FontDescriptor /* font to load */, | 2258 FontDescriptor /* font to load */, |
| 2260 uint32 /* buffer size */, | 2259 uint32 /* buffer size */, |
| 2261 base::SharedMemoryHandle /* font data */, | 2260 base::SharedMemoryHandle /* font data */, |
| 2262 uint32 /* font id */) | 2261 uint32 /* font id */) |
| 2263 | 2262 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 2293 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters | 2292 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters |
| 2294 // for details. | 2293 // for details. |
| 2295 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, | 2294 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, |
| 2296 LOGFONT /* font_data */, | 2295 LOGFONT /* font_data */, |
| 2297 string16 /* characters */) | 2296 string16 /* characters */) |
| 2298 #endif | 2297 #endif |
| 2299 | 2298 |
| 2300 // Adding a new message? Stick to the sort order above: first platform | 2299 // Adding a new message? Stick to the sort order above: first platform |
| 2301 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2300 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 2302 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2301 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |